#include <TextActionRenderer.h>

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_ |
Definition at line 29 of file TextActionRenderer.h.
| 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.
| 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.
Vector TextActionRenderer::position_ [protected] |
Vector TextActionRenderer::color_ [protected] |
float TextActionRenderer::frameTime_ [protected] |
std::string TextActionRenderer::text_ [protected] |
1.5.3