Function PixelFormat.mapRGBA
Wraps SDL_MapRGBA
which converts a dsdl2
to its pixel uint
value according to the pixel format
defined by the dsdl2
Parameters
Name | Description |
---|---|
color | the dsdl2 struct to convert |
Returns
the converted pixel value