13 #include <SDL2/SDL_ttf.h> 34 void setText(
const std::string &text);
60 void draw(uint32_t time)
override;
61 int getX()
const override;
62 int getY()
const override;
68 SDL_Renderer *renderer =
nullptr;
70 Rect geometry = {0, 0, 0, 0};
71 SDL_Rect rectangle, textPosition;
72 Color fillColor = {0, 0, 0, 0xFF};
73 Color textColor = {0, 0, 0, 0xFF};
76 SDL_Surface *textSurface =
nullptr;
77 SDL_Texture *textTexture =
nullptr;
78 std::unique_ptr<Font> font =
nullptr;
The main application class header.
An abstract class implementing both the GraphicsObject and the TouchEnabledObject, which gives an interactive graphic object as result.
Definition: InteractiveGraphicsObject.h:20