chickadee » sdl2 » create-window-and-renderer!

create-window-and-renderer! width height #!optional window-flagsprocedure

Create a sdl2:window and a sdl2:renderer that renders to the window. This is more convenient, but less flexible, than using create-window! and then create-renderer!. See SDL_CreateWindowAndRenderer. This procedure is available in sdl2 egg version 0.2.0 and higher.

width and height must be inditegers specifying the height of the window and renderer to create.

window-flags defaults to '(). It must be a list of zero or more window flag symbols (or an equivalent integer bitfield).

This procedure returns multiple values:

The sdl2:window that was created.
The sdl2:renderer that was created.