chickadee » sdl2 » render-copy!

render-copy! renderer texture #!optional srcrect dstrectprocedure

Copy all or part of the given texture onto the renderer. See SDL_RenderCopy.

  • renderer is the sdl2:renderer to copy the texture to.
  • texture is the source sdl2:texture.
  • srcrect is a sdl2:rect specifying the part of the texture to copy, or #f to copy the whole texture. It defaults to #f.
  • dstrect is a sdl2:rect specifying where on the renderer to copy the texture to, or #f to copy onto the entire renderer. It defaults to #f.

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

Requires sdl2 egg 0.2.0 or higher.