Main Page   Class Hierarchy   Compound List   Header Files   Compound Members  

ddgMeshRender Class Reference

This class takes a TBinMesh and recalculates it (Used for profiling). More...

#include <ddgmeshrender.h>

Class diagram for ddgMeshRender:

ddgVBuffer ddgDLNode ddgNode

List of all members.


Public Members

 ddgMeshRender ( ddgTBinMesh *m, ddgHeightMap *height = NULL, ddgStr *tfile = NULL, ddgStr *efile = NULL, int size = 0, int scale = 0, bool meshcolor = false )
Constructor.

 ~ddgMeshRender ( )
Destructor.

bool init (ddgContext *ctx )
Initialize the class.

bool draw (ddgContext *ctx )
Recalculate the mesh.

bool drawTriangle ( ddgTBinTree *bt, ddgVBIndex tvc )
Push a triangle into the buffer.

bool drawTriangleWire ( ddgTBinTree *bt, ddgVBIndex tvc )
Draw a wire frame triangle.

void curvature (float c)
Set the curvature.

ddgVBIndex selected
Selected triangle to be rendered in yellow.


Detailed Description

This class takes a TBinMesh and recalculates it (Used for profiling).

It allows all calculation to be done at start of scene drawing even though terrain may be rendered at the end.


The documentation for this class was generated from the following file:
Generated at Sun Sep 17 19:27:55 2000 for Digital Dawn Graphics Toolkit by doxygen 0.49-991205 written by Dimitri van Heesch, © 1997-1999