PixelFormat.this

Constructs a dsdl2.PixelFormat from user-provided bit masks for RGB color and alpha channels by internally using SDL_MasksToPixelFormatEnum to retrieve the SDL_PixelFormatEnum

Parameters

bitsPerPixel ubyte

size of one pixel in bits

rgbaMasks uint[4]

bit masks for the red, green, blue, and alpha channels

Throws

dsdl2.SDLException if pixel format conversion not possible

Meta