loadMaterial
AssetManagerInterface::loadMaterial
Loads a material from a file and returns a pointer to the loaded material.
Declaration
virtual Material* loadMaterial(const std::string& filePath) = 0;
Parameters
Name |
Type |
Description |
---|---|---|
filePath |
const std::string& |
Path to the file to load. |
Returns
A pointer to a Material containing information about the loaded material.
If the material could not be loaded (for example: if the file does not exist, or the Asset Manager or Asset Loader Module does not support this material file format (including the case where there is no Asset Loader Module)), the returned pointer is nullptr.