class
MeshManager
Inherits:
Module<MeshManager>
Manager that handles creation of Meshes.
Public
Methods
GetDummyMeshData
SPtr<MeshData> GetDummyMeshData() const
Returns some dummy mesh data with one triangle you may use for initializing a mesh.
GetDummyMesh
HMesh GetDummyMesh() const
Returns a dummy mesh containing one triangle.
staticInstance
static T &Instance()
Returns a reference to the module instance.
Module has to have been started up first otherwise an exception will be thrown.
staticInstancePtr
static T *InstancePtr()
Returns a pointer to the module instance.
Module has to have been started up first otherwise an exception will be thrown.
staticShutDown
static void ShutDown()
Shuts down this module and frees any resources it is using.
staticIsStarted
static bool IsStarted()
Query if the module has been started.
Protected
Methods
OnStartUp
void OnStartUp() override
Override if you want your module to be notified once it has been constructed and started.
~Module<T>
virtual ~Module<T>() = default
OnShutDown
virtual void OnShutDown()
Override if you want your module to be notified just before it is deleted.
staticInstanceInternal
static T *&InstanceInternal()
Returns a singleton instance of this module.
Private
Fields
mDummyMeshData
SPtr<MeshData> mDummyMeshData
mDummyMesh
HMesh mDummyMesh