Text Object.
More...
#include <game.h>
|
asw::Quad< float > | transform |
| The transform of the object.
|
|
float | rotation {0} |
| The rotation of the object in degrees.
|
|
int | zIndex {0} |
| The layer that the object is on.
|
|
bool | active {true} |
| Whether or not the object is active.
|
|
float | alpha {1.0F} |
| Opacity of the object.
|
|
Physics | body |
| Physics body of the object.
|
|
bool | alive {true} |
| Alive state.
|
|
Text Object.
Definition at line 152 of file game.h.
◆ draw()
void asw::game::Text::draw |
( |
| ) |
|
|
inlineoverridevirtual |
◆ setColor()
void asw::game::Text::setColor |
( |
const asw::Color & | color | ) |
|
|
inline |
Set the color of the text.
- Parameters
-
Definition at line 170 of file game.h.
◆ setFont()
void asw::game::Text::setFont |
( |
const asw::Font & | font | ) |
|
|
inline |
Set the font of the text.
- Parameters
-
Definition at line 158 of file game.h.
◆ setText()
void asw::game::Text::setText |
( |
const std::string & | text | ) |
|
|
inline |
Set the text of the text object.
- Parameters
-
Definition at line 164 of file game.h.
◆ update()
void asw::game::Text::update |
( |
float | deltaTime | ) |
|
|
inlineoverridevirtual |
◆ color
◆ font
◆ text
std::string asw::game::Text::text |
|
private |
The documentation for this class was generated from the following file: