Main Page   Class Hierarchy   Compound List   File List   Compound Members  

csCurveTesselated Class Reference

Tesselated curve. More...

#include <curve.h>

List of all members.

Public Methods

 csCurveTesselated (int NumVertices, int NumTriangles)
 Allocate a new tesselated curve with the given number of vertices and triangles.

 ~csCurveTesselated ()
 destructor.

int GetVertexCount () const
 Return the number of vertices.

int GetTriangleCount () const
 Return the number of triangles.

csVector3* GetVertices ()
 Return the array of vertices.

csVector2* GetTxtCoords ()
 Return the array of texture coordinates.

csVector2* GetControlPoints ()
 Return the array of control points.

csColor* GetColors ()
 Return the array of vertex colors.

csTriangle* GetTriangles ()
 Return the array of triangles.

csTriangle& GetTriangle (int i)
 Return a single triangle @ why? More...

bool AreColorsValid () const
 Return true if the colors table is valid.

void UpdateColors (csLightMap *lightmap)
 Update the 'colors' array in this tesselation given a lightmap. More...


Detailed Description

Tesselated curve.

This is basicly a list of triangles.


Member Function Documentation

csTriangle & csCurveTesselated::GetTriangle ( int i ) [inline]
 

Return a single triangle @ why?

@

void csCurveTesselated::UpdateColors ( csLightMap * lightmap )
 

Update the 'colors' array in this tesselation given a lightmap.

This should be called whenever the lightmap changes and the curve needs to be rendered.


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.2.5 written by Dimitri van Heesch, ©1997-2000