annotate lamertetris/sources/text.h @ 3:84e66ea83026

DPF-Prymula-audioplugins-0.231015-2
author prymula <prymula76@outlook.com>
date Mon, 16 Oct 2023 21:53:34 +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