Texture.update - multiple declarations

Function Texture.update

Wraps SDL_UpdateTexture which updates the entire dsdl.Texture's pixel data

void update (
  const(void[]) pixels,
  ulong pitch
) @trusted;

Parameters

NameDescription
pixels array of pixels for the entire dsdl.Texture's pixels to be replaced with
pitch skips in bytes per line/row of the pixels

Throws

dsdl.SDLException if failed to update the texture pixel data

Function Texture.update

Wraps SDL_UpdateTexture which updates the dsdl.Texture's pixel data at a certain dsdl.Rect boundary

void update (
  Rect rect,
  void[] pixels,
  ulong pitch
) @trusted;

Parameters

NameDescription
rect dsdl.Rect boundary marking the part of the texture whose pixels are to be updated
pixels array of pixels for the dsdl.Texture's rect pixels to be replaced with
pitch skips in bytes per line/row of the pixels

Throws

dsdl.SDLException if failed to update the texture pixel data