Mercurial > hg > pub > prymula > com
annotate lamertetris/sources/text.h @ 2:cf2cb71d31dd
immposiblerush-0.230919-0.2
author | prymula <prymula76@outlook.com> |
---|---|
date | Tue, 26 Sep 2023 21:50:44 +0200 |
parents | 2787f5e749ae |
children |
rev | line source |
---|---|
0 | 1 #ifndef TEXT_H |
2 #define TEXT_H | |
3 | |
4 #include <SDL2/SDL.h> | |
5 #include <SDL_ttf.h> | |
6 #include <iostream> | |
7 | |
8 class Text | |
9 { | |
10 public: | |
11 Text(); | |
12 SDL_Surface* loadFromRenderedText( std::string textureText, SDL_Color textColor, TTF_Font* font); | |
13 | |
14 private: | |
15 int mWidth, mHeight; | |
16 }; | |
17 | |
18 #endif //TEXT_H |