PixelFormat.toMasks

Wraps SDL_PixelFormatEnumToMasks which gets the bit mask for all four channels of the dsdl2.PixelFormat

class PixelFormat
const @trusted
uint[4]
toMasks
()

Return Value

Type: uint[4]

an array of 4 bit masks for each channel (red, green, blue, and alpha)

Meta