SDL2Texture.updateTexture

Updates a part of a texture with new pixel data.

  1. void updateTexture(const(void)* pixels, int pitch)
  2. void updateTexture(const(SDL_Rect)* rect, const(void)* pixels, int pitch)
    class SDL2Texture
    void
    updateTexture
    (
    const(SDL_Rect)* rect
    ,
    const(void)* pixels
    ,
    int pitch
    )

Throws

SDL2Exception on error.

See Also

Meta