51 status(
"Initialising default surfaces...");
55 for (std::map<Common::UString, ShaderSurface *>::iterator iter =
_resourceMap.begin(); iter !=
_resourceMap.end(); ++iter) {
62 std::map<Common::UString, ShaderSurface *>::iterator iter =
_resourceMap.begin();
79 std::map<Common::UString, ShaderSurface *>::iterator iter =
_resourceMap.find(surface->
getName());
90 std::map<Common::UString, ShaderSurface *>::iterator iter =
_resourceMap.find(surface->
getName());
97 std::map<Common::UString, ShaderSurface *>::iterator iter =
_resourceMap.find(name);
106 std::map<Common::UString, ShaderSurface *>::iterator inext = iter;
A class holding an UTF-8 string.
void init()
Initialise surface management, including default surface creation.
Utility templates and functions.
#define DECLARE_SINGLETON(T)
Note that you need to use this macro from the global namespace.
void addSurface(ShaderSurface *surface)
Adds a surface to be managed.
The global shader surface manager.
void cleanup()
Remove any resource that has a usage count of zero.
void delSurface(ShaderSurface *surface)
Forcibly remove the surface from the map.
#define ShaderMan
Shortcut for accessing the shader manager.
void status(const char *s,...)
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.
const Common::UString & getName() const
void deinit()
Deinitialise surface management subsystem.