Function PixelFormat.mapRGBA

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

uint mapRGBA (
  Color color
) @trusted const;

Parameters

NameDescription
color the dsdl.Color struct to convert

Returns

the converted pixel value