annotate lamertetris/sources/text.h @ 8:923377f8ebcb

immposiblerush-0.230919-0_ALLDISTRIBUTIONS
author prymula <prymula76@outlook.com>
date Sat, 03 Feb 2024 18:23:04 +0100
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