#include <TerrainObjectManager.h>
|
| static void | Load (std::string key, const char *OSpath, std::string TextureKey, float sideLength, float maxHeight, int repeatU, int repeatV) |
| | Call to load the heightmap and create a terrainObject that will be stored internally. More...
|
| |
| static TerrainObject * | Get (std::string key) |
| | Gets a terrain object* using the given key. More...
|
| |
◆ MapKey
Defines an alias representing the map key associated with the object.
◆ StorageMap
Defines an alias representing the storage map.
◆ TerrainObjectManager() [1/3]
| TerrainObjectManager::TerrainObjectManager |
( |
| ) |
|
|
private |
◆ TerrainObjectManager() [2/3]
◆ TerrainObjectManager() [3/3]
◆ ~TerrainObjectManager()
| TerrainObjectManager::~TerrainObjectManager |
( |
| ) |
|
|
privatedefault |
◆ Delete()
| static void TerrainObjectManager::Delete |
( |
| ) |
|
|
inlinestaticprivate |
◆ Get()
| static TerrainObject * TerrainObjectManager::Get |
( |
std::string |
key | ) |
|
|
inlinestatic |
Gets a terrain object* using the given key.
- Parameters
-
| key | The key to find the associated terrain object. |
- Returns
- Null if it fails, else a pointer to a TerrainObject.
◆ Instance()
◆ Load()
| static void TerrainObjectManager::Load |
( |
std::string |
key, |
|
|
const char * |
OSpath, |
|
|
std::string |
TextureKey, |
|
|
float |
sideLength, |
|
|
float |
maxHeight, |
|
|
int |
repeatU, |
|
|
int |
repeatV |
|
) |
| |
|
inlinestatic |
Call to load the heightmap and create a terrainObject that will be stored internally.
- Parameters
-
| key | The key to associate the newly stored terrain object. |
| OSpath | Full pathname to the specified heightmap (note, DefaultPath is appended to the beginning). |
| TextureKey | The key to a texture stored within the TextureManager to place on the heightmap |
| sideLength | Length of the side. |
| maxHeight | The maximum height. |
| repeatU | The repeat u. |
| repeatV | The repeat v. |
◆ operator=() [1/2]
◆ operator=() [2/2]
Move assignment operator.
◆ privDelete()
| void TerrainObjectManager::privDelete |
( |
| ) |
|
|
private |
Internal call to delete pointer instance. Only to be called by the engine.
◆ privGet()
Internal call to get the requested terrain object from the terrainObjectMap.
- Parameters
-
| key | The key associated with the stored map |
- Returns
- Null if it fails, else a pointer to a TerrainObject.
◆ privLoad()
| void TerrainObjectManager::privLoad |
( |
std::string |
key, |
|
|
const char * |
OSpath, |
|
|
std::string |
TextureKey, |
|
|
float |
sideLength, |
|
|
float |
maxHeight, |
|
|
int |
repeatU, |
|
|
int |
repeatV |
|
) |
| |
|
private |
Internal call to load the heightmap and create a terrainObject that will be stored internally.
- Parameters
-
| key | The key to associate the newly stored terrain object. |
| OSpath | Full pathname to the specified heightmap (note, DefaultPath is appended to the beginning). |
| TextureKey | A key to a texture that has already been stored within the TextureManager. |
| sideLength | Length of the side. |
| maxHeight | The maximum height. |
| repeatU | The repeat u. |
| repeatV | The repeat v. |
◆ TerrainObjectManagerAttorney
◆ defaultPath
| std::string TerrainObjectManager::defaultPath |
|
private |
The default path for the Heightmap.
◆ ptrInstance
◆ terrainObjectMap
The map containing all terrain objects by MapKey.
The documentation for this class was generated from the following files: