SUNENGINE 0.0.2
A simple and bright C++ game engine.
 
Loading...
Searching...
No Matches
TerrainManager Class Reference

Manages the active Terrain instance in the scene. More...

#include <TerrainManager.h>

Public Member Functions

 TerrainManager (const TerrainManager &)=delete
 
TerrainManageroperator= (const TerrainManager &)=delete
 
void SetTerrain (Terrain *t)
 Sets the active Terrain.
 
TerrainGetTerrain () const
 Retrieves the active Terrain.
 
void ProcessTerrain ()
 Processes the terrain (e.g., for rendering).
 

Private Attributes

Terrainterrain
 Pointer to the current Terrain object.
 

Detailed Description

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.

Member Function Documentation

◆ GetTerrain()

Terrain * TerrainManager::GetTerrain ( ) const

Retrieves the active Terrain.

Returns
Pointer to the current Terrain object.

◆ SetTerrain()

void TerrainManager::SetTerrain ( Terrain * t)

Sets the active Terrain.

Parameters
tPointer to the Terrain object.

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