TerraForge3D  2.3.1
3D Terrain And Landscape Generator
Module Class Referenceabstract

Module Info. More...

#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
 
ApplicationStateappState
 
void * nativeHandle
 
bool isEnabled
 

Detailed Description

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.

Definition at line 39 of file Module.h.


The documentation for this class was generated from the following files: