Argentum Online - Cliente
in_game_text.h
1 #ifndef __IN_GAME_TEXT_H
2 #define __IN_GAME_TEXT_H
3 #include "SDL/sdl_bitmap_text.h"
4 #include "renderizable_object.h"
5 
11  private:
12  SDLBitmapText render_text;
13 
14  public:
23  InGameText(const std::string& text, SDL_Color color, int font_id,
24  visual_info_t visual_info);
25 
31  void render(SDL_Rect dest) override;
32 
38  void update_text(const std::string& new_text);
39 };
40 
41 #endif
RenderizableObject
Interfaz que deben implementar todos los componentes que vayan a ser renderizados por la camara.
Definition: renderizable_object.h:29
SDLBitmapText
Clase de texto a partir de una fuente bitmap.
Definition: sdl_bitmap_text.h:9
InGameText::render
void render(SDL_Rect dest) override
Renderiza el texto en pantalla.
Definition: in_game_text.cpp:30
part_visual_info
Struct de informacion visual.
Definition: renderizable_object.h:15
InGameText::InGameText
InGameText(const std::string &text, SDL_Color color, int font_id, visual_info_t visual_info)
Crea un objeto In Game Text.
Definition: in_game_text.cpp:5
InGameText
Clase usada para mostrar texto del render, mediante texto bitmap.
Definition: in_game_text.h:10
InGameText::update_text
void update_text(const std::string &new_text)
Actualiza el texto.
Definition: in_game_text.cpp:20