Texture.update - multiple declarations

Function Texture.update

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

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

Parameters

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

Throws

dsdl2.SDLException if failed to update the texture pixel data

Function Texture.update

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

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

Parameters

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

Throws

dsdl2.SDLException if failed to update the texture pixel data