Function PixelFormat.getRGB
Wraps SDL_GetRGB
which converts a pixel uint
value to a comprehensible dsdl2
struct without
accounting the alpha value (automatically set to opaque [255]), based on the pixel format defined by the
dsdl2
Parameters
Name | Description |
---|---|
pixel | the pixel uint value to convert |
Returns
the dsdl2
struct of the given pixel
value