- make-pixel-format #!optional formatprocedure
- make-pixel-format* #!optional formatprocedure
Allocate and initialize a new sdl2:pixel-format with the given format.
format defaults to 'unknown. It must be a pixel format symbol or equivalent integer. See SDL_AllocFormat.
- make-pixel-format returns a memory-managed sdl2:pixel-format.
- make-pixel-format* returns an unmanaged sdl2:pixel-format, which should be freed with free-pixel-format! when you are done with it.
Both procedures signal an exception of kind (exn sdl2) if an error occurs.