Crazy Eddie's GUI System  0.8.4
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 >:

List of all members.

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.

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.
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends