Function load

Wraps IMG_Load which loads an image from a filesystem path into a software dsdl2.Surface

Surface load (
  string file
) @trusted;

Parameters

NameDescription
file path to the image file

Returns

dsdl2.Surface of the loaded image

Throws

dsdl2.SDLException if failed to load the image