chickadee » sdl2 » make-display-mode

make-display-mode #!optional format w h refresh-rateprocedure
make-display-mode* #!optional format w h refresh-rateprocedure

Allocate and initialize a new sdl2:display-mode.

format defaults to 'unknown. It must be a pixel format symbol or equivalent integer.

w, h, and refresh-rate default to 0. They must be integers.

  • make-display-mode returns a memory-managed sdl2:display-mode.
  • make-display-mode* returns an unmanaged sdl2:display-mode, which should be freed with free-display-mode! when you are done with it.