palTerrainHeightmap Class Reference

#include <palTerrain.h>

Inheritance diagram for palTerrainHeightmap:

palTerrain palStatic palBodyBase

List of all members.

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)


Detailed Description

A Heightmap This defines the terrain as a heightmap. The heightmap is in the xz-plane.
heightfield.jpg
The diagram illustrates a height map. The heights are spaced on an evenly partitioned grid, where each height in the input data represents a corresponding height in the resulting mesh.

Member Function Documentation

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.

Parameters:
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.


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

Generated on Mon Aug 31 13:58:02 2009 for pal by  doxygen 1.5.7.1