chickadee » sdl2 » create-renderer!

create-renderer! window #!optional index flagsprocedure

Create a new sdl2:renderer associated with the given window. See SDL_CreateRenderer. This procedure is available in sdl2 egg version 0.2.0 and higher.

  • window must be a sdl2:window
  • index must be an integer specifying the index of the driver to initialize, or -1 to use the first driver supporting the requested flags. It defaults to -1.
  • flags must be a list of zero or more renderer flag symbols. It defaults to '().
    • 'software
    • 'accelerated
    • 'present-vsync
    • 'target-texture

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