Crazy Eddie's GUI System  0.8.3
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
CEGUI::TplWindowRendererFactory< T > Class Template Reference

Template based WindowRendererFactory that can be used to automatically generate a WindowRendererFactory given a WindowRenderer based class. More...

+ Inheritance diagram for CEGUI::TplWindowRendererFactory< T >:
+ Collaboration diagram for CEGUI::TplWindowRendererFactory< T >:

Public Member Functions

 TplWindowRendererFactory ()
 Default constructor.
 
WindowRenderercreate ()
 Creates and returns a new window renderer object.
 
void destroy (WindowRenderer *wr)
 Destroys a window renderer object previously created by us.
 
- Public Member Functions inherited from CEGUI::WindowRendererFactory
 WindowRendererFactory (const String &name)
 Contructor. More...
 
virtual ~WindowRendererFactory ()
 Destructor.
 
const StringgetName () const
 Returns the type name of this window renderer factory.
 

Additional Inherited Members

- Protected Attributes inherited from CEGUI::WindowRendererFactory
String d_factoryName
 Our factory type name.
 

Detailed Description

template<typename T>
class CEGUI::TplWindowRendererFactory< T >

Template based WindowRendererFactory that can be used to automatically generate a WindowRendererFactory given a WindowRenderer based class.

The advantage of this over the previous macro based methods is that there is
no longer any need to have any supporting code or structure in order to add
new WindowRenderer types to the system, rather you can just do:
CEGUI::WindowRendererManager::addFactory<TplWindowRendererFactory<MyWindowRenderer> >();
Template Parameters
TSpecifies the WindowRenderer based class that the factory will create and destroy instances of.