TextActionRenderer Class Reference

#include <TextActionRenderer.h>

Inheritance diagram for TextActionRenderer:

ActionRenderer

List of all members.

Public Member Functions

 TextActionRenderer (Vector &position, Vector &color, const std::string &text)
virtual ~TextActionRenderer ()
virtual void simulate (Action *action, float timepassed, bool &remove)
virtual void draw (Action *action)

Protected Attributes

Vector position_
Vector color_
float frameTime_
std::string text_


Detailed Description

Definition at line 29 of file TextActionRenderer.h.


Constructor & Destructor Documentation

TextActionRenderer::TextActionRenderer ( Vector position,
Vector color,
const std::string text 
)

Definition at line 26 of file TextActionRenderer.cpp.

TextActionRenderer::~TextActionRenderer (  )  [virtual]

Definition at line 37 of file TextActionRenderer.cpp.


Member Function Documentation

void TextActionRenderer::simulate ( Action action,
float  timepassed,
bool &  remove 
) [virtual]

Reimplemented from ActionRenderer.

Definition at line 41 of file TextActionRenderer.cpp.

References frameTime_, and position_.

void TextActionRenderer::draw ( Action action  )  [virtual]

Implements ActionRenderer.

Definition at line 48 of file TextActionRenderer.cpp.

References color_, GLState::DEPTH_ON, GLFont2d::drawBilboard(), frameTime_, GLWFont::getGameFont(), GL_FALSE, GL_TRUE, glDepthMask(), GLWFont::instance(), GLCameraFrustum::instance(), position_, text_, and GLState::TEXTURE_ON.


Member Data Documentation

Vector TextActionRenderer::position_ [protected]

Definition at line 42 of file TextActionRenderer.h.

Referenced by draw(), and simulate().

Vector TextActionRenderer::color_ [protected]

Definition at line 43 of file TextActionRenderer.h.

Referenced by draw().

float TextActionRenderer::frameTime_ [protected]

Definition at line 44 of file TextActionRenderer.h.

Referenced by draw(), and simulate().

std::string TextActionRenderer::text_ [protected]

Definition at line 45 of file TextActionRenderer.h.

Referenced by draw().


The documentation for this class was generated from the following files:
Generated on Mon Feb 16 15:15:08 2009 for Scorched3D by  doxygen 1.5.3