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