Function load

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

Surface load (
  string file
) @trusted;

Parameters

NameDescription
file path to the image file

Returns

dsdl.Surface of the loaded image

Throws

dsdl.SDLException if failed to load the image