chickadee » sdl2 » update-texture-raw!

update-texture-raw! texture rect pixels pitchprocedure

Overwrite part or all of the texture's pixel data. This is for advanced users, and must be used with caution. See SDL_UpdateTexture.

  • texture is the sdl2:texture that you wish to update
  • rect is either an sdl2:rect (to update part of the texture), or #f (to update all of the texture)
  • pixels is a pointer or locative to raw pixel data
  • pitch is an integer describing the pitch of the pixel data

Signals an exception of kind (exn sdl2) if an error occurs.

This procedure is available in sdl2 egg version 0.2.0 and higher.