Google

Main Page   Class Hierarchy   Compound List   File List   Compound Members  

csWireFrame Class Reference

A WireFrame is a set of lines, vertices and polygons in 3D. More...

#include <wirefrm.h>

List of all members.

Public Methods

 csWireFrame (iTextureManager *txtmgr)
virtual ~csWireFrame ()
void Clear ()
size_t Entries ()
csWfColorGetWhite ()
 Get the default white color.

csWfColorGetRed ()
 Get the default red color.

csWfColorGetBlue ()
 Get the default blue color.

csWfColorGetGreen ()
 Get the default green color.

csWfColorGetYellow ()
 Get the default yellow color.

csWfColorFindColor (int r, int g, int b)
 Find a registered color.

csWfColorRegisterColor (int r, int g, int b)
 Register a color so that it can be used by objects in the wireframe. More...

csWfVertexAddVertex (const csVector3 &v)
csWfLineAddLine (csVector3 &v1, csVector3 &v2)
csWfPolygonAddPolygon ()
void Draw (iGraphics3D *g, csCamera *c, int ortho=WF_ORTHO_PERSP)
void Apply (void(*func)(csWfObject *, void *), void *)
 Apply a function to all objects contained in the WireFrame.


Detailed Description

A WireFrame is a set of lines, vertices and polygons in 3D.

You can draw it given a camera.


Member Function Documentation

csWfColor * csWireFrame::RegisterColor ( int r,
int g,
int b )
 

Register a color so that it can be used by objects in the wireframe.

This is needed because colors are represented by an array (darker colors for objects in the distance).

The returned value is the one that should be given to the csWfObject::SetColor function.


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