#include <SimpleObj.H>
Inherits IS3D::DrawObj.
Public Member Functions | |
| ScreenTextObj (const std::string &str, const double textHeight, const Color4 &textColor=Color3::white(), const Color4 &outlineColor=Color4::clear()) | |
| virtual | ~ScreenTextObj () |
| void | setString (const std::string &newStr) |
| void | setPosition (Vector2 pos) |
| 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 |
| Vector2 | _pos |
| IS3D::ScreenTextObj::ScreenTextObj | ( | const std::string & | str, | |
| const double | textHeight, | |||
| const Color4 & | textColor = Color3::white(), |
|||
| const Color4 & | outlineColor = Color4::clear() | |||
| ) | [inline] |
References _font, _height, _outlineColor, _pos, _str, _textColor, and IS3D::IS3DEngine::getFont().
| virtual IS3D::ScreenTextObj::~ScreenTextObj | ( | ) | [inline, virtual] |
| void IS3D::ScreenTextObj::setString | ( | const std::string & | newStr | ) | [inline] |
References _str.
| void IS3D::ScreenTextObj::setPosition | ( | Vector2 | pos | ) | [inline] |
References _pos.
| void IS3D::ScreenTextObj::draw | ( | ) | [inline, virtual] |
Override this function and place your G3D draw calls inside it.
Implements IS3D::DrawObj.
References _font, _height, _outlineColor, _pos, _str, and _textColor.
std::string IS3D::ScreenTextObj::_str [protected] |
Referenced by draw(), ScreenTextObj(), and setString().
double IS3D::ScreenTextObj::_height [protected] |
Referenced by draw(), and ScreenTextObj().
Color4 IS3D::ScreenTextObj::_textColor [protected] |
Referenced by draw(), and ScreenTextObj().
Color4 IS3D::ScreenTextObj::_outlineColor [protected] |
Referenced by draw(), and ScreenTextObj().
GFontRef IS3D::ScreenTextObj::_font [protected] |
Referenced by draw(), and ScreenTextObj().
Vector2 IS3D::ScreenTextObj::_pos [protected] |
Referenced by draw(), ScreenTextObj(), and setPosition().
1.5.6