Crazy Eddies GUI System: CEGUI::TplWindowRendererFactory< T > Class Template Reference

Crazy Eddies GUI System 0.7.6

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions
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 >:
[legend]
Collaboration diagram for CEGUI::TplWindowRendererFactory< T >:
[legend]

List of all members.

## Public Member Functions
| TplWindowRendererFactory ()
| Default constructor.
WindowRenderer * | create ()
| 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:

  T | Specifies the WindowRenderer based class that the factory will create and destroy instances of.