Platformer
Platformer
SDLFontWrapper.hpp
1 #ifndef SDL_FONT_WRAPPER_HPP
2 #define SDL_FONT_WRAPPER_HPP
3 
4 #include <SDL2/SDL_ttf.h>
5 
10  public:
11 
14  TTF_Font* f);
15 
18 
23  TTF_Font* GetFont() const;
24 
25  private:
26 
28  TTF_Font* font;
29 };
30 
31 #endif
TTF_Font * font
The wrapped TTF_Font.
Definition: SDLFontWrapper.hpp:28
TTF_Font * GetFont() const
Gets the font of this wrapper.
Definition: SDLFontWrapper.cpp:6
~SDLFontWrapper()
Destructs an SDLFontWrapper.
Definition: SDLFontWrapper.cpp:4
SDLFontWrapper(TTF_Font *f)
Constructs an SDLFontWrapper.
Definition: SDLFontWrapper.cpp:3
A wrapper class for TTF_Fonts.
Definition: SDLFontWrapper.hpp:9