Function loadTexture
Wraps IMG_LoadTexture
which loads an image from a filesystem path into a hardware dsdl2
Parameters
Name | Description |
---|---|
renderer | given dsdl2 to initialize the texture |
file | path to the image file |
Returns
dsdl2
of the loaded image
Throws
dsdl2
if failed to load the image