libSDL2pp
C++ bindings/wrapper for SDL2
|
Helper class taking care of SDL_image library initialization and deinitialization. More...
#include <SDL2pp/SDLImage.hh>
Public Member Functions | |
SDLImage (int flags=0) | |
Initializes SDL_image library. | |
virtual | ~SDLImage () |
Destructor, deinitializes SDL_image library. | |
int | InitMore (int flags) |
Try to init more SDL_image formats. | |
int | GetInitFlags () |
Get mask of initialized SDL_image formats. | |
SDLImage (const SDLImage &other)=delete | |
Deleted copy constructor. | |
SDLImage & | operator= (const SDLImage &other)=delete |
Deleted assignment operator. | |
SDLImage (SDLImage &&other)=delete | |
Deleted move constructor. | |
SDLImage & | operator= (SDLImage &&other)=delete |
Deleted move assignment operator. | |
Helper class taking care of SDL_image library initialization and deinitialization.
Though it's possible to use SDL_image without initializing it, library provides initialization/deinitialization functions to be able to preload libraries for specific file format support (png, jpeg or tiff) beforehand. In SDL2pp, this is handled by this class.
Usage example:
|
explicit |
Initializes SDL_image library.
[in] | flags | Flags to pass to IMG_Init() |
SDL2pp::Exception |
|
virtual |
Destructor, deinitializes SDL_image library.
|
delete |
Deleted copy constructor.
This class is not copyable
|
delete |
Deleted move constructor.
This class is not movable
int SDL2pp::SDLImage::GetInitFlags | ( | ) |
Get mask of initialized SDL_image formats.
int SDL2pp::SDLImage::InitMore | ( | int | flags | ) |
Try to init more SDL_image formats.
[in] | flags | Flags to pass to IMG_Init() |
SDL2pp::Exception |
Deleted assignment operator.
This class is not copyable
Deleted move assignment operator.
This class is not movable