Wasabi
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
WMaterialsStore Class Reference

#include <WMaterialsStore.hpp>

Inheritance diagram for WMaterialsStore:
WObject WParticles WSprite WTerrain

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 WMaterialGetMaterial (class WEffect *effect)
 
class WMaterialCollectionGetMaterials ()
 

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 WMaterialCollectionm_materialsCollection
 

Detailed Description

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.

Member Data Documentation

◆ m_materialMap

std::unordered_map<class WEffect*, class WMaterial*> WMaterialsStore::m_materialMap
protected

Collection of materials


The documentation for this class was generated from the following file: