chickadee » sdl2 » pixel-format-enum-to-masks

pixel-format-enum-to-masks format-enumprocedure

See SDL_PixelFormatEnumToMasks.

format-enum must be a pixel format symbol or equivalent integer.

This procedure returns multiple values:

bpp
The color depth (bits per pixel) of the format.
rmask
The red mask of the format.
gmask
The green mask of the format.
bmask
The blue mask of the format.
amask
The alpha mask of the format.

Signals an exception of kind (exn sdl2) if conversion was not possible.