Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

LsgTerrain Struct Reference
[Geometry]

Heightfield/Terrain. More...

#include <terrain.h>

Collaboration diagram for LsgTerrain:

Collaboration graph
[legend]

Data Fields

LsgGLList super

Related Functions

(Note that these are not member functions.)

LsgTerrainLsgTerrain_create (LsgImage *hf, Vertex dim)
void LsgTerrain_init (LsgTerrain *self, LsgImage *hf, Vertex dim)

Detailed Description

Heightfield/Terrain.

Heightfield/Terrain using a single OpenGL list to store vertex / normal data.


Friends And Related Function Documentation

LsgTerrain * LsgTerrain_create LsgImage hf,
Vertex  dim
[related]
 

Allocate and initialize a terrain node.

Parameters:
hf The bitmap used to construct the terrain
dim The dimension of the constructed terrain
Returns:
A new terrain node

void LsgTerrain_init LsgTerrain self,
LsgImage hf,
Vertex  dim
[related]
 

Constructor method for LsgTerrain. Convert a bitmaps pixel values to vertices and store them in an OpenGL list alongside with calculated normals.

Parameters:
self The instance variable
hf The bitmap used to construct the terrain
dim The dimension of the constructed terrain


The documentation for this struct was generated from the following file:
(c) 2003, by Enno Cramer
generated on 13 Jul 2003
lescegra - doxygen