#include <Console.h>

Public Member Functions | |
| void | printLine (const string &text) |
| The output function. | |
| void | printLine (const Object &object) |
| The output function. | |
| void | renderGl () |
| Renders the console. | |
| void | selectGl () |
| Renders the console using selection color. | |
| void | processEvent (SDL_Event &event) |
| A method to deal with SDL_Event. | |
| virtual string | toString () const |
| Returns a textual representation. | |
| virtual string | className () const |
| Returns the class name of the object. | |
| virtual enum classId | classId () const |
| Returns the class id of the object. | |
Static Public Member Functions | |
| static Console * | getInstance () |
| The singleton getter. | |
Private Member Functions | |
| Console () | |
| The constructor. | |
| Console (const Console &source) | |
| The copy constructor. | |
| ~Console () | |
| The destructor. | |
Private Attributes | |
| bool | visible |
| Visibility toggle. | |
| Font | font |
| The selected Font. | |
| GLfloat | size |
| The size of the letters. | |
| GLfloat | width |
| The width of the console. | |
| GLfloat | height |
| The height of the console. | |
| Color | color |
| The color of the font. | |
| vector< Label > | lines |
| The lines to be drawn. | |
Static Private Attributes | |
| static Console * | instance = 0 |
| The singleton instance. | |
This simple output can be used for debugging
| Console::Console | ( | ) | [private] |
The constructor.
Initializes the console.
| Console::Console | ( | const Console & | source | ) | [private] |
The copy constructor.
Should not be called.
| Console::~Console | ( | ) | [private] |
The destructor.
Destroyes the console. Should only be called for program termination.
| Console * Console::getInstance | ( | ) | [static] |
The singleton getter.
The only way to access the console
| void Console::printLine | ( | const string & | text | ) |
The output function.
Outputs something to the console
| void Console::printLine | ( | const Object & | object | ) |
The output function.
Outputs something to the console
| void Console::renderGl | ( | ) | [virtual] |
| void Console::selectGl | ( | ) | [virtual] |
| void Console::processEvent | ( | SDL_Event & | event | ) | [virtual] |
| string Console::toString | ( | ) | const [virtual] |
Returns a textual representation.
Implements EventListener.
| string Console::className | ( | ) | const [virtual] |
Returns the class name of the object.
Implements EventListener.
| enum classId Console::classId | ( | ) | const [virtual] |
Console * Console::instance = 0 [static, private] |
The singleton instance.
bool Console::visible [private] |
Visibility toggle.
Font Console::font [private] |
The selected Font.
GLfloat Console::size [private] |
The size of the letters.
GLfloat Console::width [private] |
The width of the console.
GLfloat Console::height [private] |
The height of the console.
Color Console::color [private] |
The color of the font.
vector<Label> Console::lines [private] |
The lines to be drawn.
1.5.6