libSDL2pp
C++ bindings/wrapper for SDL2
|
Helper class taking care of SDL_mixer library initialization and deinitialization. More...
#include <SDL2pp/SDLMixer.hh>
Public Member Functions | |
SDLMixer (int flags=0) | |
Initializes SDL_mixer library. | |
virtual | ~SDLMixer () |
Destructor, deinitializes SDL_mixer library. | |
int | InitMore (int flags) |
Try to init more SDL_mixer formats. | |
int | GetInitFlags () |
Get mask of initialized SDL_mixer formats. | |
SDLMixer (const SDLMixer &other)=delete | |
Deleted copy constructor. | |
SDLMixer & | operator= (const SDLMixer &other)=delete |
Deleted assignment operator. | |
SDLMixer (SDLMixer &&other)=delete | |
Deleted move constructor. | |
SDLMixer & | operator= (SDLMixer &&other)=delete |
Deleted move assignment operator. | |
Helper class taking care of SDL_mixer library initialization and deinitialization.
Usage example:
|
explicit |
Initializes SDL_mixer library.
[in] | flags | Flags to pass to Mix_Init() |
SDL2pp::Exception |
|
virtual |
Destructor, deinitializes SDL_mixer library.
|
delete |
Deleted copy constructor.
This class is not copyable
|
delete |
Deleted move constructor.
This class is not movable
int SDL2pp::SDLMixer::GetInitFlags | ( | ) |
Get mask of initialized SDL_mixer formats.
int SDL2pp::SDLMixer::InitMore | ( | int | flags | ) |
Try to init more SDL_mixer formats.
[in] | flags | Flags to pass to Mix_Init() |
SDL2pp::Exception |
Deleted assignment operator.
This class is not copyable
Deleted move assignment operator.
This class is not movable