Mercurial > hg > pub > prymula > com
annotate lamertetris/sources/text.h @ 4:0962f0296c8a
ColorsMemory-0.210503-1.1
author | prymula <prymula76@outlook.com> |
---|---|
date | Tue, 30 Jan 2024 16:43:10 +0100 |
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 |