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