|
Turbo Engine 0.3
A C++ game engine using Allegro 5
|
Represent a drawable text. More...
#include <Text.hpp>
Public Member Functions | |
| Text (Font *font, const char *text="") | |
| Construct a new Text drawable. | |
| ~Text () | |
| void | draw () const override |
| Draw the drawable -_-. | |
| operator const char * () const | |
Public Attributes | |
| const char * | text |
| Text content. | |
Protected Attributes | |
| Font * | font |
| Selected font. | |
Represent a drawable text.
| turbo::Text::Text | ( | Font * | font, |
| const char * | text = "" ) |
Construct a new Text drawable.
| font | Selected text font |
| text | content |
| turbo::Text::~Text | ( | ) |
|
overridevirtual |
Draw the drawable -_-.
Implements turbo::Drawable.
| turbo::Text::operator const char * | ( | ) | const |
|
protected |
Selected font.
| const char* turbo::Text::text |
Text content.