25 #ifndef GRAPHICS_SHADER_MATERIALMAN_H 26 #define GRAPHICS_SHADER_MATERIALMAN_H 66 std::map<Common::UString, ShaderMaterial *>::iterator
delResource(std::map<Common::UString, ShaderMaterial *>::iterator iter);
74 #define MaterialMan Graphics::Shader::MaterialManager::instance() 76 #endif // GRAPHICS_SHADER_MATERIALMAN_H void addMaterial(ShaderMaterial *material)
Adds a material to be managed.
Class and macro for implementing singletons.
std::map< Common::UString, ShaderMaterial * > _resourceMap
std::map< Common::UString, ShaderMaterial * >::iterator delResource(std::map< Common::UString, ShaderMaterial *>::iterator iter)
A class holding an UTF-8 string.
void cleanup()
Remove any resource that has a usage count of zero.
void delMaterial(ShaderMaterial *material)
Forcibly remove the material from the map.
Generic template base class for implementing the singleton design pattern.
Shader material, responsible for tracking data relating to a fragment shader.
void init()
Initialise material management, including default material creation.
ShaderMaterial * getMaterial(const Common::UString &name)
Returns a material with the given name, or zero if it does not exist.
void deinit()
Deinitialise material management subsystem.