Texture.update - multiple declarations
Function Texture.update
Wraps SDL_UpdateTexture which updates the entire dsdl's pixel data
void update
(
const(void[]) pixels,
ulong pitch
) @trusted;
Parameters
| Name | Description |
|---|---|
| pixels | array of pixels for the entire dsdl's pixels to be replaced with |
| pitch | skips in bytes per line/row of the pixels |
Throws
dsdl if failed to update the texture pixel data
Function Texture.update
Wraps SDL_UpdateTexture which updates the dsdl's pixel data at a certain dsdl boundary
Parameters
| Name | Description |
|---|---|
| rect | dsdl boundary marking the part of the texture whose pixels are to be updated |
| pixels | array of pixels for the dsdl's rect pixels to be replaced with |
| pitch | skips in bytes per line/row of the pixels |
Throws
dsdl if failed to update the texture pixel data