annotate lamertetris/sources/text.h @ 19:fff7215ba1e8

package for arch
author Przemyslaw <prymula76@outlook.com>
date Sun, 31 Mar 2024 16:10:46 +0200
parents 2787f5e749ae
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
prymula <prymula76@outlook.com>
parents:
diff changeset
1 #ifndef TEXT_H
prymula <prymula76@outlook.com>
parents:
diff changeset
2 #define TEXT_H
prymula <prymula76@outlook.com>
parents:
diff changeset
3
prymula <prymula76@outlook.com>
parents:
diff changeset
4 #include <SDL2/SDL.h>
prymula <prymula76@outlook.com>
parents:
diff changeset
5 #include <SDL_ttf.h>
prymula <prymula76@outlook.com>
parents:
diff changeset
6 #include <iostream>
prymula <prymula76@outlook.com>
parents:
diff changeset
7
prymula <prymula76@outlook.com>
parents:
diff changeset
8 class Text
prymula <prymula76@outlook.com>
parents:
diff changeset
9 {
prymula <prymula76@outlook.com>
parents:
diff changeset
10 public:
prymula <prymula76@outlook.com>
parents:
diff changeset
11 Text();
prymula <prymula76@outlook.com>
parents:
diff changeset
12 SDL_Surface* loadFromRenderedText( std::string textureText, SDL_Color textColor, TTF_Font* font);
prymula <prymula76@outlook.com>
parents:
diff changeset
13
prymula <prymula76@outlook.com>
parents:
diff changeset
14 private:
prymula <prymula76@outlook.com>
parents:
diff changeset
15 int mWidth, mHeight;
prymula <prymula76@outlook.com>
parents:
diff changeset
16 };
prymula <prymula76@outlook.com>
parents:
diff changeset
17
prymula <prymula76@outlook.com>
parents:
diff changeset
18 #endif //TEXT_H