|
VR-Engage
2.2
|
Renders an axis-aligned cube defined by its min and max corner points
#include <debugRenderCommands.h>
Public Member Functions | |
| DebugDrawCubeCommand (const DtVector &start, const DtVector &end, const DtColor &c, DtColor::Fill fill, bool clip, const double &time) | |
| virtual | ~DebugDrawCubeCommand () override |
| virtual void | draw (DtDebugCanvas &canvas) override |
Public Member Functions inherited from makVre::DtDebugDrawCommand | |
| DtDebugDrawCommand (DtColor color, DtColor::Fill fill, bool clip, const double &time, bool is3D) | |
| virtual | ~DtDebugDrawCommand () |
| virtual void | reduceTime (double delta) |
| virtual bool | ended () |
| virtual bool | get3D () |
Protected Attributes | |
| DtVector | myStart |
| DtVector | myEnd |
Protected Attributes inherited from makVre::DtDebugDrawCommand | |
| DtVector | myEyepoint |
| DtColor | myColor |
| DtColor::Fill | myFill |
| double | myTime |
| bool | myClip |
| bool | my3D |
| makVre::DebugDrawCubeCommand::DebugDrawCubeCommand | ( | const DtVector & | start, |
| const DtVector & | end, | ||
| const DtColor & | c, | ||
| DtColor::Fill | fill, | ||
| bool | clip, | ||
| const double & | time ) |
Constructor for cube drawing command.
| start | Minimum corner point of the cube |
| end | Maximum corner point of the cube |
| c | Color of the cube |
| fill | Fill mode (solid, wireframe, etc.) |
| clip | Whether to clip the cube against the view frustum |
| time | Duration in seconds for this command to remain active |
|
overridevirtual |
Virtual destructor.
|
overridevirtual |
Pure virtual draw method that must be implemented by derived classes.
| drawList | Canvas to draw the debug visual on |
Implements makVre::DtDebugDrawCommand.
|
protected |
|
protected |