In file include/csengine/wirefrm.h:

## class csWireFrame

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

### Public Methods

  csWfLine* | AddLine (csVector3& v1, csVector3& v2)
  csWfPolygon* | AddPolygon ()
  csWfVertex* | AddVertex (const csVector3& v)
  void | Apply (void (*func)( csWfObject*, void*), void*) Apply a function to all objects contained in the WireFrame
  void | Clear ()
  | csWireFrame (ITextureManager* txtmgr)
  void | Draw (IGraphics3D* g, csCamera* c)
  size_t | Entries ()
  csWfColor* | FindColor (int r, int g, int b) Find a registered color
  csWfColor* | GetBlue () Get the default blue color.
  csWfColor* | GetGreen () Get the default green color.
  csWfColor* | GetRed () Get the default red color.
  csWfColor* | GetWhite () Get the default white color.
  csWfColor* | GetYellow () Get the default yellow color.
  csWfColor* | RegisterColor (int r, int g, int b) Register a color so that it can be used by objects in the wireframe
  virtual | ~csWireFrame ()

## Documentation

> A WireFrame is a set of lines, vertices and polygons in 3D. You can draw it given a camera.

`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. 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.

`csWfVertex* AddVertex(const csVector3& v)`

`csWfLine* AddLine(csVector3& v1, csVector3& v2)`

`csWfPolygon* AddPolygon()`

`void Draw(IGraphics3D* g, csCamera* c)`

`void Apply(void (*func)( csWfObject*, void*), void*)`
  Apply a function to all objects contained in the WireFrame

This class has no child classes.

alphabetic index hierarchy of classes

this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de