Drag[en]gine Game Engine
1.21
|
Debug drawer shape. More...
#include <deDebugDrawerShape.h>
Public Member Functions | |
Constructors and Destructors | |
deDebugDrawerShape () | |
Create debug drawer shape. More... | |
~deDebugDrawerShape () | |
Clean up debug drawer shape. More... | |
Management | |
const decVector & | GetPosition () const |
Position. More... | |
void | SetPosition (const decVector &position) |
Set position. More... | |
const decQuaternion & | GetOrientation () const |
Orientation. More... | |
void | SetOrientation (const decQuaternion &orientation) |
Set orientation. More... | |
const decVector & | GetScale () const |
Scale. More... | |
void | SetScale (const decVector &scale) |
Set scale. More... | |
const decColor & | GetEdgeColor () const |
Edge color. More... | |
void | SetEdgeColor (const decColor &color) |
Set edge color. More... | |
const decColor & | GetFillColor () const |
Fill color. More... | |
void | SetFillColor (const decColor &color) |
Set fill color. More... | |
decShapeList & | GetShapeList () |
Shape list. More... | |
const decShapeList & | GetShapeList () const |
Volume Faces | |
int | GetFaceCount () const |
Number of volume faces. More... | |
deDebugDrawerShapeFace * | GetFaceAt (int index) const |
Face at index. More... | |
void | AddFace (deDebugDrawerShapeFace *face) |
Add face. More... | |
void | RemoveAllFaces () |
Remove all faces. More... | |
Debug drawer shape.
Describes the a shape to be drawn. There are a couple of parameters that can be set to define the appearance. The edge and fill color flag determine the color and transparency of the edges and the faces of the shape. By default the edge is set to white fully opaque and the fill is set to white fully transparent. Both shapes and faces can be used at the same time. If none of them are present nothing is drawn.
deDebugDrawerShape::deDebugDrawerShape | ( | ) |
Create debug drawer shape.
deDebugDrawerShape::~deDebugDrawerShape | ( | ) |
Clean up debug drawer shape.
void deDebugDrawerShape::AddFace | ( | deDebugDrawerShapeFace * | face | ) |
Add face.
|
inline |
Edge color.
deDebugDrawerShapeFace* deDebugDrawerShape::GetFaceAt | ( | int | index | ) | const |
Face at index.
int deDebugDrawerShape::GetFaceCount | ( | ) | const |
Number of volume faces.
|
inline |
Fill color.
|
inline |
Orientation.
|
inline |
Position.
|
inline |
Scale.
|
inline |
Shape list.
|
inline |
void deDebugDrawerShape::RemoveAllFaces | ( | ) |
Remove all faces.
void deDebugDrawerShape::SetEdgeColor | ( | const decColor & | color | ) |
Set edge color.
void deDebugDrawerShape::SetFillColor | ( | const decColor & | color | ) |
Set fill color.
void deDebugDrawerShape::SetOrientation | ( | const decQuaternion & | orientation | ) |
Set orientation.
void deDebugDrawerShape::SetPosition | ( | const decVector & | position | ) |
Set position.
void deDebugDrawerShape::SetScale | ( | const decVector & | scale | ) |
Set scale.