Crazy Eddie's GUI System
0.8.4
|
Template based WindowRendererFactory that can be used to automatically generate a WindowRendererFactory given a WindowRenderer based class. More...
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. | |
Public Member Functions inherited from CEGUI::WindowRendererFactory | |
WindowRendererFactory (const String &name) | |
Contructor. More... | |
virtual | ~WindowRendererFactory () |
Destructor. | |
const String & | getName () 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. | |
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:
T | Specifies the WindowRenderer based class that the factory will create and destroy instances of. |