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