- 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.
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:
- window
- The sdl2:window that was created.
- renderer
- The sdl2:renderer that was created.
Requires sdl2 egg 0.2.0 or higher.