Main Page   Class Hierarchy   Compound List   Header Files   Compound Members  

ddgTerrain Class Reference

Terrain storage and rendering class. More...

#include <ddgterrain.h>

Class diagram for ddgTerrain:

ddgNode

List of all members.


Public Members

 ddgTerrain ()
Create terrain object, but don't allocate any memory.

 ddgTerrain ( unsigned int r, unsigned int c )
Create and allocate memory.

 ~ddgTerrain ()
Destroy terrain object.

void offset ( float x, float y, float z )
Set terrain position 0,0 in world coords.

ddgVector3* offset ( void )
Get terrain position 0,0 in world coords.

void scale ( float x, float y, float z )
Set the terrain scale in world coords.

ddgVector3 scale ( void )
Get terrain scale in world coords.

unsigned int rows ( void )
Return the number of rows in the terrain.

unsigned int cols ( void )
Return the number of columns in the terrain.

void qsize ( unsigned int q )
Size of a single quad.

unsigned int qsize (void)
return quad size.

void tsize ( unsigned int t )
set terrain square size.

unsigned int tsize (void)
return terrain square size.

void hfile ( char * f)
Set the name of the height field file.

char* hfile (void)
Return the name of the height field file.

void nfile ( char *f )
Set the name of the normal field file.

char* nfile (void)
Return the name of the normal field file.

void setLOD ( unsigned int r, unsigned int c, short t)
Set the Level of detail in the LOD grid.

short getLOD ( unsigned int r, unsigned int c )
Get the level of detail.

short maxLOD (void)
Return the maximum LOD.

bool init ( ddgContext *ctx )
Initialize the terrain object.

bool draw ( ddgContext *ctx )
Render the terrain object.

ddgHeightMapheights
Height field.

ddgImagenormals
Normal field.

ddgParamSet paramset
Set of paramters to control the terrain.

ddgParamB culling
Turn backface culling on/off.

ddgParamB smooth
Turn smooth shading on/off.

ddgParamB debug
Enable disable debug mode.

ddgParamB lod
Enable disable LOD culling.

ddgParam lodFactor
Factor to affect LOD cutoff points.

ddgParamB bbox
Enable disable BBOX/Frustrum culling.

ddgContextcontext
Viewer location.

int tri
Count the number of triangles drawn (debugging).

int bcount
Number of boxes rendered. (debugging).

ddgContext::Quality quality
Current rendering mode (for debugging).


Detailed Description

Terrain storage and rendering class.


The documentation for this class was generated from the following files:
Generated at Thu Apr 6 00:42:30 2000 for Digital Dawn Graphics Toolkit by doxygen 0.49-991205 written by Dimitri van Heesch, © 1997-1999