IS3D::ScreenTextObj Class Reference

#include <SimpleObj.H>

Inherits IS3D::DrawObj.

List of all members.

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


Constructor & Destructor Documentation

IS3D::ScreenTextObj::ScreenTextObj ( const std::string &  str,
const double  textHeight,
const Color4 &  textColor = Color3::white(),
const Color4 &  outlineColor = Color4::clear() 
) [inline]

virtual IS3D::ScreenTextObj::~ScreenTextObj (  )  [inline, virtual]


Member Function Documentation

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.


Member Data Documentation

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().

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().


The documentation for this class was generated from the following file:

Generated on Wed Jan 26 06:31:21 2011 for IS3D by  doxygen 1.5.6