chickadee » sdl2 » blit-surface!

blit-surface! src src-rect dst dst-rectprocedure

Blit (copy) image data from the src (source) sdl2:surface to the dst (destination) sdl2:surface. See SDL_BlitSurface.

  • src-rect may be an sdl2:rect to blit part of src, or #f to blit all of src.
  • dst-rect may be an sdl2:rect to specify where in dst the image data should be blitted, or #f to blit at the top-left corner of dst. Only the x and y parts of the dst-rect are used; width and height are ignored.

If dst-rect is a sdl2:rect, it will be modified to save the final blit rectangle after all clipping is performed.

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