annotate lamertetris/sources/text.h @ 11:78390e0e674f

remove DPF
author prymula <prymula76@outlook.com>
date Thu, 08 Feb 2024 20:21:56 +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