SpiecsEngine
 
Loading...
Searching...
No Matches

◆ Material() [2/2]

Spices::Material::Material ( const std::string & materialPath)
explicit

Constructor Function. Deserialize immediately. Usually call it.

Parameters
[in]materialPathMaterial Path in disk.

@breif Call Dserialize() while in Constructor.

@breif Call Dserialize() while in Constructor.

Definition at line 20 of file Material.cpp.

21 : m_MaterialPath(materialPath)
22 , m_IsDrawWindow(false)
23 , m_AlreadyBuild(false)
24 {
26
31 }
#define SPICES_PROFILE_ZONE
bool m_AlreadyBuild
True if this material already build a buffer.
Definition Material.h:252
void Deserialize()
Deserialize the data from a disk file(.material) to this class.
Definition Material.cpp:63
bool m_IsDrawWindow
True if this material needs to draw a window.
Definition Material.h:247
std::string m_MaterialPath
Definition Material.h:206

References Deserialize(), m_AlreadyBuild, m_IsDrawWindow, and m_MaterialPath.