TomGine::tgLabel Class Reference
#include <tgLabel.h>
List of all members.
Detailed Description
Definition at line 22 of file tgLabel.h.
Constructor & Destructor Documentation
Constructor of tgLabel.
- Parameters:
-
| w | width of label in pixels |
| h | height of label in pixels |
| ttf_filename | file name of true type font (ttf) to use for text |
Definition at line 9 of file tgLabel.cpp.
tgLabel::tgLabel |
( |
const char * |
ttf_filename |
) |
|
Member Function Documentation
void tgLabel::AddText |
( |
const char * |
text, |
|
|
unsigned |
size = 20 | |
|
) |
| | |
adds text to the label, should not be called at framerate, since it creates a texture on the GPU
Definition at line 34 of file tgLabel.cpp.
const char* TomGine::tgLabel::c_str |
( |
|
) |
[inline] |
clears the text of the label and destroys texture for it on the GPU
Definition at line 83 of file tgLabel.cpp.
void tgLabel::CreateLabel |
( |
|
) |
|
void tgLabel::Draw |
( |
|
) |
const |
draws the label at frame rate, should be called after everything else is rendered, since depth-testing is disabled
Definition at line 94 of file tgLabel.cpp.
void TomGine::tgLabel::SetFont |
( |
const char * |
ttf_filename |
) |
[inline] |
void TomGine::tgLabel::SetPose |
( |
tgPose |
pose |
) |
[inline] |
Member Data Documentation
The documentation for this class was generated from the following files:
blort
Author(s): Michael Zillich,
Thomas Mörwald,
Johann Prankl,
Andreas Richtsfeld,
Bence Magyar (ROS version)
autogenerated on Fri Mar 1 16:57:58 2013