EzGL
|
The base class to inherit from for all components. More...
#include <Component.hpp>
Public Member Functions | |
void | IInit (Object &self, Object &main) override |
Initialize all components. More... | |
void | IUpdate (Object &self, Object &main) override |
Initialize all components. More... | |
Static Public Member Functions | |
static ComponentPtr | Create () |
Automatically generated per-class component factory. More... | |
The base class to inherit from for all components.
To inherit from this class the curiously recurring template pattern (CRTP) must be used. The main reason this is done is so that the Create() function can be automatically generated.
|
inlinestatic |
Automatically generated per-class component factory.
Only ComponentFactory should be calling this.
|
inlineoverridevirtual |
Initialize all components.
Inheritors to Component must define a function exactly like this one except with the name init
.
self | Reference to object in question. |
main | Reference to main object. |
Implements EzGL::IComponent.
|
inlineoverridevirtual |
Initialize all components.
Inheritors to Component must define a function exactly like this one except with the name update
.
self | Reference to object in question. |
main | Reference to main object. |
Implements EzGL::IComponent.