Wasabi
|
#include <WMaterialsStore.hpp>
Public Member Functions | |
void | AddEffect (class WEffect *effect, uint32_t bindingSet=0) |
void | RemoveEffect (class WEffect *effect) |
void | RemoveEffect (class WMaterial *material) |
void | ClearEffects () |
class WMaterial * | GetMaterial (class WEffect *effect) |
class WMaterialCollection & | GetMaterials () |
Protected Member Functions | |
void | _AddMaterial (class WMaterial *material) |
virtual void | OnMaterialAdded (class WMaterial *newMaterial) |
Protected Attributes | |
std::unordered_map< class WEffect *, class WMaterial * > | m_materialMap |
class WMaterialCollection * | m_materialsCollection |
Represents a collection of materials that can be used by render-able entities. Materials that are added to a collection usually represent per-entity resources such as per-object UBOs/textures for a WObject. This collection will hold a reference to every material it stores.
Collection of materials