Clase usada para mostrar texto del render, mediante texto bitmap. Más...
#include <in_game_text.h>
Métodos públicos | |
InGameText (const std::string &text, SDL_Color color, int font_id, visual_info_t visual_info) | |
Crea un objeto In Game Text. Más... | |
void | render (SDL_Rect dest) override |
Renderiza el texto en pantalla. Más... | |
void | update_text (const std::string &new_text) |
Actualiza el texto. Más... | |
![]() | |
RenderizableObject (visual_info_t visual_info) | |
Crea un objeto RenderizableObject. Más... | |
int | get_width () const |
Devuelve el ancho en centesimas de tile. Más... | |
int | get_height () const |
Devuelve el alto en centesimas de tile. Más... | |
virtual int | get_x_offset () const |
Devuelve el offset X total. Más... | |
virtual int | get_y_offset () const |
Devuelve el offset Y total. Más... | |
RenderizableObject (const RenderizableObject &other) | |
RenderizableObject & | operator= (const RenderizableObject &other) |
void | set_visual_info (visual_info_t new_visual_info) |
Setea la informacion visual. Más... | |
void | set_offset (int new_x_offset, int new_y_offset) |
virtual void | update () |
Actualiza el objeto. Más... | |
Otros miembros heredados | |
![]() | |
visual_info_t | visual_info |
Clase usada para mostrar texto del render, mediante texto bitmap.
InGameText::InGameText | ( | const std::string & | text, |
SDL_Color | color, | ||
int | font_id, | ||
visual_info_t | visual_info | ||
) |
Crea un objeto In Game Text.
text | Texto a mostrar. |
color | Color del texto. |
font_id | id de la fuente bitmap a usar. |
visual_info | Informacion visual para renderizar el texto. |
|
overridevirtual |
Renderiza el texto en pantalla.
dest | Rectangulo de pantalla donde se debe renderizar el texto. |
Implementa RenderizableObject.
void InGameText::update_text | ( | const std::string & | new_text | ) |
Actualiza el texto.
new_text | Nuevo texto a mostrar. |