ezEngine Release 25.08
Loading...
Searching...
No Matches
ezMaterialManager Class Reference

Classes

struct  MaterialData
 The material's render data. Accessed via ezMaterialManager::GetMaterialData. More...
 

Static Public Member Functions

static void MaterialAdded (ezMaterialResource *pMaterial)
 Called by ezMaterialResource::UpdateContent and ezMaterialResource::CreateResource to add the material to the manager.
 
static void MaterialModified (ezMaterialResourceHandle hMaterial)
 Called by ezMaterialResource::SetModified to inform the material manager of changes.
 
static void MaterialRemoved (ezMaterialResource *pMaterial)
 Called by ezMaterialResource destructor to remove the material from the manager. Note that we don't call this during unload to maintain the material index during reloading of materials.
 
static const MaterialDataGetMaterialData (const ezMaterialResource *pMaterial)
 Returns the render data for a material resource. Can be nullptr if the material is not loaded yet or extraction + update was not executed yet.
 

Static Public Attributes

static ezEvent< const ezMaterialShaderChanged &, ezMutexs_MaterialShaderChangedEvent
 Fired in case a material is reloaded and now occupies another index / shader.
 

Friends

class ezMemoryUtils
 

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