Public called API, it is entrance.
- Parameters
-
| [in] | fileName | Material name. |
| [in,out] | outMaterial | Material pointer, only pass this to it. Feel free for using row pointer here, it's very safe, for this API only called during Material. |
- Returns
- Returns true if load data successfully.
Load from .sasset file first.
Load from .material file second.
Load from .sasset file first.
Load from .material file second.
Definition at line 66 of file MaterialLoader.cpp.
67 {
69
74
79
80 else
81 {
82 std::stringstream ss;
83 ss << "MaterialLoader: Could not find a valid file from the give filename: [" << fileName << "]";
84
85 SPICES_CORE_WARN(ss.str());
86 return false;
87 }
88 }
#define SPICES_PROFILE_ZONE
static bool LoadFromSASSET(const std::string &fileName, Material *outMaterial)
Load data from a .sasset file.
static bool LoadFromMaterial(const std::string &fileName, Material *outMaterial)
Load data from a .material file.
References LoadFromMaterial(), and LoadFromSASSET().
Referenced by Spices::Material::Deserialize().