|
VR-Engage
2.2
|
Renders text at a specific 2D position in screen space
#include <debugRenderCommands.h>
Public Member Functions | |
| DebugDrawText2dCommand (const DtVector &position, const std::string &text, const DtColor &c, const double &time) | |
| virtual | ~DebugDrawText2dCommand () 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 | myPosition |
| std::string | myText |
Protected Attributes inherited from makVre::DtDebugDrawCommand | |
| DtVector | myEyepoint |
| DtColor | myColor |
| DtColor::Fill | myFill |
| double | myTime |
| bool | myClip |
| bool | my3D |
| makVre::DebugDrawText2dCommand::DebugDrawText2dCommand | ( | const DtVector & | position, |
| const std::string & | text, | ||
| const DtColor & | c, | ||
| const double & | time ) |
Constructor for 2D text drawing command.
| position | Position in screen space where the text should appear |
| text | The text to display |
| c | Color of the text |
| 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 |