PixelFormat.mapRGBA

Wraps SDL_MapRGBA which converts a dsdl2.Color to its pixel uint value according to the pixel format defined by the dsdl2.PixelFormat

class PixelFormat
const @trusted
uint
mapRGBA

Parameters

color Color

the dsdl2.Color struct to convert

Return Value

Type: uint

the converted pixel value

Meta