Manages the active Terrain instance in the scene. More...
#include <TerrainManager.h>
Public Member Functions | |
TerrainManager (const TerrainManager &)=delete | |
TerrainManager & | operator= (const TerrainManager &)=delete |
void | SetTerrain (Terrain *t) |
Sets the active Terrain. | |
Terrain * | GetTerrain () const |
Retrieves the active Terrain. | |
void | ProcessTerrain () |
Processes the terrain (e.g., for rendering). | |
Private Attributes | |
Terrain * | terrain |
Pointer to the current Terrain object. | |
Manages the active Terrain instance in the scene.
The TerrainManager class is responsible for storing and providing access to the current Terrain object. It allows setting, retrieving, and processing the terrain for rendering or other operations.
Terrain * TerrainManager::GetTerrain | ( | ) | const |
void TerrainManager::SetTerrain | ( | Terrain * | t | ) |