unique_ptr based management for SDL_Surfaces

This commit is contained in:
2015-03-08 13:59:08 +01:00
parent 31e3a307b5
commit ffbc59140a
6 changed files with 80 additions and 50 deletions

View File

@@ -10,14 +10,17 @@ class Texture2D;
class Font {
public:
Font(std::string const& filename, unsigned ptsize);
Font(Font&& move);
Font(Font const& copy) = delete;
Font& operator=(Font&& move);
Font& operator=(Font const& copy) = delete;
~Font();
Texture2D render(std::string const& text, bool fast = false) const;
TTF_Font* getFont() const;
private:
TTF_Font* font_;
};