flimEngine
Loading Terrain

How to load a terrain. More...

Collaboration diagram for Loading Terrain:

How to load a terrain.

To load a Terrain, call the LoadTerrain method and specify a string key to referece the terrain, the name of the heightmap (.tga) relative to the Heightmaps folder, the scale of the terrain, the maximum height, the altitude of the terrain at height zero, and U and V repeating values.

{
TerrainManager::LoadTerrain("Level1", "level1.tga", "ground", 10000.0f, 1000.0f, 0.0f, 10.0f, 10.0f);
//...
}