loadImage

AssetLoaderModuleInterface::loadImage

Loads an image from a file.

Declaration

virtual bool loadImage(const std::string& filePath, Image& image) = 0;

Parameters

Name

Type

Description

filePath

const std::string&

Path to the file to load.

image

Image&

The image to put the information in.

Returns

true if the image has been successfully loaded, else, if the image could not be loaded (for example: if the file does not exist, or the Asset Manager or Asset Loader Module does not support this image file format (including the case where there is no Asset Loader Module)), returns false.