loadTextureRaw - multiple declarations
Function loadTextureRaw
Wraps IMG_LoadTexture_RW
which loads an image from a data buffer into a hardware dsdl2
Parameters
Name | Description |
---|---|
renderer | given dsdl2 to initialize the texture |
data | data buffer of the image |
Returns
dsdl2
of the loaded image
Throws
dsdl2
if failed to load the image
Function loadTextureRaw
Wraps IMG_LoadTextureTyped_RW
which loads a typed image from a data buffer into a hardware dsdl2
Parameters
Name | Description |
---|---|
renderer | given dsdl2 to initialize the texture |
data | data buffer of the image |
type | specified type of the image |
Returns
dsdl2
of the loaded image
Throws
dsdl2
if failed to load the image