Function Surface.convert
Wraps SDL_ConvertPixels
which converts the dsdl2
from its RGB(A) dsdl2
to another
dsdl2
with a different RGB(A) dsdl2
Parameters
Name | Description |
---|---|
rgbPixelFormat | the RGB(A) dsdl2 to target the conversion |
Returns
result dsdl2
with the targetPixelFormat
Throws
dsdl2
if pixels failed to convert