#include <palTerrain.h>
Public Member Functions | |
virtual void | Init (Float x, Float y, Float z, Float width, Float depth, int terrain_data_width, int terrain_data_depth, const Float *pHeightmap) |
void palTerrainHeightmap::Init | ( | Float | x, | |
Float | y, | |||
Float | z, | |||
Float | width, | |||
Float | depth, | |||
int | terrain_data_width, | |||
int | terrain_data_depth, | |||
const Float * | pHeightmap | |||
) | [virtual] |
Initializes a heightmap terrain.
x | Position of the heightmapped terrain (x) | |
y | Position of the heightmapped terrain (y) | |
z | Position of the heightmapped terrain (z) | |
width | The width (size as a distance) of the terrain | |
depth | The depth (size as a distance) of the terrain | |
terrain_data_width | The number of heightmap values used to describe a slice of the terrains width. | |
terrain_data_depth | The number of heightmap values used to describe a slice of the terrains depth. | |
pHeightmap | A pointer to an array of Float values of size (terrain_data_width*terrain_data_depth) which contains all the heights of the terrain. |