libSDL2pp
C++ bindings/wrapper for SDL2
|
Helper class taking care of SDL_ttf library initialization and deinitialization. More...
#include <SDL2pp/SDLTTF.hh>
Public Member Functions | |
SDLTTF () | |
Initializes SDL_ttf library. | |
virtual | ~SDLTTF () |
Destructor, deinitializes SDL_ttf library. | |
SDLTTF (const SDLTTF &other)=delete | |
Deleted copy constructor. | |
SDLTTF & | operator= (const SDLTTF &other)=delete |
Deleted assignment operator. | |
SDLTTF (SDLTTF &&other)=delete | |
Deleted move constructor. | |
SDLTTF & | operator= (SDLTTF &&other)=delete |
Deleted move assignment operator. | |
Helper class taking care of SDL_ttf library initialization and deinitialization.
To use SDL_ttf functions, SDL_ttf library must be initialized first. This initialization and automatic deinitialization is handled by this class. You may only use SDL_ttf (Font class) functionality as long as SDLTTF object lives. SDL itself must not be initialized to use TTF.
Usage example:
SDL2pp::SDLTTF::SDLTTF | ( | ) |
Initializes SDL_ttf library.
SDL2pp::Exception |
|
virtual |
Destructor, deinitializes SDL_ttf library.
|
delete |
Deleted copy constructor.
This class is not copyable
|
delete |
Deleted move constructor.
This class is not movable
Deleted assignment operator.
This class is not copyable
Deleted move assignment operator.
This class is not movable