#include <SimpleObj.H>
Inherits IS3D::DrawObj.
Public Member Functions | |
| TextObj (const std::string &str, const double textHeight, const Color4 &textColor=Color3::white(), const Color4 &outlineColor=Color4::clear()) | |
| virtual | ~TextObj () |
| void | setString (const std::string &newStr) |
| void | setOffsetFrame (CoordinateFrame cf) |
| void | draw () |
| Override this function and place your G3D draw calls inside it. | |
Protected Attributes | |
| std::string | _str |
| double | _height |
| Color4 | _textColor |
| Color4 | _outlineColor |
| GFontRef | _font |
| CoordinateFrame | _offset |
| IS3D::TextObj::TextObj | ( | const std::string & | str, | |
| const double | textHeight, | |||
| const Color4 & | textColor = Color3::white(), |
|||
| const Color4 & | outlineColor = Color4::clear() | |||
| ) | [inline] |
References _font, _height, _outlineColor, _str, _textColor, and IS3D::IS3DEngine::getFont().
| virtual IS3D::TextObj::~TextObj | ( | ) | [inline, virtual] |
| void IS3D::TextObj::setString | ( | const std::string & | newStr | ) | [inline] |
References _str.
| void IS3D::TextObj::setOffsetFrame | ( | CoordinateFrame | cf | ) | [inline] |
References _offset.
| void IS3D::TextObj::draw | ( | ) | [inline, virtual] |
Override this function and place your G3D draw calls inside it.
Implements IS3D::DrawObj.
References _font, _height, _offset, _outlineColor, _str, and _textColor.
std::string IS3D::TextObj::_str [protected] |
Referenced by draw(), setString(), and TextObj().
double IS3D::TextObj::_height [protected] |
Color4 IS3D::TextObj::_textColor [protected] |
Color4 IS3D::TextObj::_outlineColor [protected] |
GFontRef IS3D::TextObj::_font [protected] |
CoordinateFrame IS3D::TextObj::_offset [protected] |
Referenced by draw(), and setOffsetFrame().
1.5.6