![]() |
TerraForge3D
2.3.1
3D Terrain And Landscape Generator
|
#include <Module.h>
Public Member Functions | |
Module (std::string uid, ApplicationState *appState) | |
Module Constructor. More... | |
~Module () | |
Module Destructor. More... | |
void | Update () |
Module Update Function. More... | |
void | RenderImGui (void *imguiContext) |
Module ImGui Render Function. More... | |
virtual void | OnInstall () |
OnInstall. More... | |
virtual void | OnLoad ()=0 |
OnLoad. More... | |
virtual void | OnUpdate ()=0 |
OnUpdate. More... | |
virtual void | OnImGuiRender ()=0 |
OnImGuiRender. More... | |
virtual void | OnUnload ()=0 |
OnUnload. More... | |
virtual void | OnUninstall () |
OnUninstall. More... | |
Public Attributes | |
std::string | uid |
ModuleInfo | info |
ApplicationState * | appState |
void * | nativeHandle |
bool | isEnabled |
Module Info.
To make a module you are supposed to inherit this class. You have to Override 3 methods :
OnLoad -> Called once when module is being loaded OnUpdate -> Called every Frame OnImGuiRender -> Called for every ImGui Frame OnUnload -> Called at application shutdown
You can optionally Override the OnInstall and OnUninstall methods.