#include <wirefrm.h>
Public Methods | |
csWireFrame (iTextureManager *txtmgr) | |
virtual | ~csWireFrame () |
void | Clear () |
size_t | Entries () |
csWfColor* | GetWhite () |
Get the default white color. | |
csWfColor* | GetRed () |
Get the default red color. | |
csWfColor* | GetBlue () |
Get the default blue color. | |
csWfColor* | GetGreen () |
Get the default green color. | |
csWfColor* | GetYellow () |
Get the default yellow color. | |
csWfColor* | FindColor (int r, int g, int b) |
Find a registered color. | |
csWfColor* | RegisterColor (int r, int g, int b) |
Register a color so that it can be used by objects in the wireframe. More... | |
csWfVertex* | AddVertex (const csVector3 &v) |
csWfLine* | AddLine (csVector3 &v1, csVector3 &v2) |
csWfPolygon* | AddPolygon () |
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. |
You can draw it given a camera.
|
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. |