loadImage
AssetLoaderModuleInterface::loadImage
Loads an image from a file.
Declaration
virtual Image loadImage(const std::string& filePath) = 0;
Parameters
Name |
Type |
Description |
---|---|---|
filePath |
const std::string& |
Path to the file to load. |
Returns
An Image containing information about the loaded image.
If the image could not be loaded (for example: if the file does not exist, or the Asset Loader Module does not support this image file format), the returned Image contains the structure’s default information.