loadMaterial

AssetLoaderModuleInterface::loadMaterial

Loads a material from a file.

Declaration

virtual bool loadMaterial(const std::string& filePath, Material& material) = 0;

Parameters

Name

Type

Description

filePath

const std::string&

Path to the file to load.

material

Material&

The material to put the information in.

Returns

true if the material has been successfully loaded, else, 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)), returns false.