Crazy Eddie's GUI System
0.8.7
|
27 #ifndef _CEGUIRenderEffectManager_h_
28 #define _CEGUIRenderEffectManager_h_
30 #include "CEGUI/Singleton.h"
31 #include "CEGUI/IteratorBase.h"
32 #include "CEGUI/Logger.h"
33 #include "CEGUI/Exceptions.h"
34 #include "CEGUI/RenderEffectFactory.h"
38 # pragma warning(push)
39 # pragma warning(disable : 4251)
60 typedef std::map<RenderEffect*, RenderEffectFactory*, std::less<RenderEffect*>
64 RenderEffectRegistry d_effectRegistry;
66 EffectCreatorMap d_effects;
99 void addEffect(
const String& name);
176 template <
typename T>
181 "A RenderEffect is already registered under the name '" +
187 Logger::getSingleton().logEvent(
188 "Registered RenderEffect named '" + name +
"'");
196 #if defined(_MSC_VER)
197 # pragma warning(pop)
200 #endif // end of guard _CEGUIRenderEffectManager_h_
void addEffect(const String &name)
Register a RenderEffect type with the system and associate it with the identifier name.
Definition: RenderEffectManager.h:177
void destroy(RenderEffect &effect)
Destroy the given RenderEffect object.
~RenderEffectManager()
Destructor for RenderEffectManager objects.
Definition: Singleton.h:56
RenderEffectManager()
Constructor for RenderEffectManager objects.
Functor that can be used as comparator in a std::map with String keys. It's faster than using the def...
Definition: String.h:5580
RenderEffect & create(const String &name, Window *window)
Create an instance of the RenderEffect based class identified by the specified name.
Templatised RenderEffectFactory subclass used internally by the system.
Definition: RenderEffectFactory.h:57
ConstMapIterator< RenderEffectRegistry > RenderEffectIterator
Iterator type that iterates over entries in the RenderEffectRegistry.
Definition: RenderEffectManager.h:70
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1
Definition: MemoryAllocatedObject.h:110
void removeEffect(const String &name)
Remove / unregister any RenderEffect using the specified identifier.
Interface for factory objects that create RenderEffect instances. Currently this interface is intende...
Definition: RenderEffectFactory.h:42
Exception class used when an attempt is made create a named object of a particular type when an objec...
Definition: Exceptions.h:484
bool isEffectAvailable(const String &name) const
Return whether a RenderEffect has been registered under the specified name.
iterator class for maps
Definition: IteratorBase.h:197
An abstract base class providing common functionality and specifying the required interface for deriv...
Definition: Window.h:151
String class used within the GUI system.
Definition: String.h:64
Singleton class that manages creation and destruction of RenderEffect based objects.
Definition: RenderEffectManager.h:53
Interface for objects that hook into RenderingWindow to affect the rendering process,...
Definition: RenderEffect.h:42