diff lamertetris/sources/text.h @ 0:2787f5e749ae

INIT
author prymula <prymula76@outlook.com>
date Thu, 21 Sep 2023 22:33:57 +0200
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/lamertetris/sources/text.h	Thu Sep 21 22:33:57 2023 +0200
@@ -0,0 +1,18 @@
+#ifndef TEXT_H
+#define TEXT_H
+		
+#include <SDL2/SDL.h>
+#include <SDL_ttf.h>
+#include <iostream>
+
+class Text
+{
+    public:
+    Text();
+	SDL_Surface* loadFromRenderedText( std::string textureText, SDL_Color textColor, TTF_Font* font);
+
+	private:
+	int mWidth, mHeight;
+};
+
+#endif //TEXT_H