Function PixelFormat.mapRGB
Wraps SDL_MapRGB which converts a dsdl to its pixel uint value according to the pixel format
defined by the dsdl without accounting the alpha value, assuming that it's opaque
Parameters
| Name | Description |
|---|---|
| color | the dsdl struct to convert |
Returns
the converted pixel value