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