view lamertetris/sources/text.h @ 2:cf2cb71d31dd

immposiblerush-0.230919-0.2
author prymula <prymula76@outlook.com>
date Tue, 26 Sep 2023 21:50:44 +0200
parents 2787f5e749ae
children
line wrap: on
line source

#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