Cafu Engine
EditorMatManT Class Reference

This class manages the editor materials for a game configuration. More...

#include "EditorMaterialManager.hpp"

Public Member Functions

 EditorMatManT (const GameConfigT &GameConfig)
 
const ArrayT< EditorMaterialI * > & GetMaterials () const
 
EditorMaterialIGetDefaultMaterial ()
 
void SetDefaultMaterial (EditorMaterialI *DefaultMat)
 
EditorMaterialIFindMaterial (const wxString &MatName, bool CreateDummy)
 This method finds an editor material by name. More...
 
void LazilyUpdateProxies ()
 

Detailed Description

This class manages the editor materials for a game configuration.

Member Function Documentation

EditorMaterialI * EditorMatManT::FindMaterial ( const wxString &  MatName,
bool  CreateDummy 
)

This method finds an editor material by name.

Parameters
MatNameName of the material to find.
CreateDummyCreates and returns a dummy material when the requested material was not found.
Returns
a pointer to the requested editor material. If the material was not found and CreateDummy is true, a dummy material is added and its pointer is returned. If the material was not found and CreateDummy is false, NULL is returned.

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