SDLKeeper Class Reference
SDL Reference keeper. More...
#include <fvwidgets/sdl_keeper.h>
Static Public Member Functions | |
| static void | init (unsigned int flags) |
| Init SDL. | |
| static void | quit () throw () |
| Conditionally quit SDL. | |
| static void | force_quit () |
| Force quit of SDL. | |
Detailed Description
SDL Reference keeper.Use this keeper to initialize and quit the SDL library. As there may be many modules using the SDL a central place for reference counting is needed.
Definition at line 29 of file sdl_keeper.h.
Member Function Documentation
| void SDLKeeper::force_quit | ( | ) | [static] |
Force quit of SDL.
This will quit the SDL no matter of the reference count. Use with extreme care.
Definition at line 101 of file sdl_keeper.cpp.
| void SDLKeeper::init | ( | unsigned int | flags | ) | [static] |
Init SDL.
Keeps track of SDL_Init calls and only calls SDL_InitSubSystem on consecutive calls.
- Parameters:
-
flags Same flags as for SDL_Init
Definition at line 59 of file sdl_keeper.cpp.
Referenced by ImageDisplay::ImageDisplay().
| void SDLKeeper::quit | ( | ) | throw () [static] |
Conditionally quit SDL.
Use this after you are done with the SDL. No subsystem will be closed after all users of SDL quit the usage. Then the whole SDL will be released at once.
Definition at line 87 of file sdl_keeper.cpp.
Referenced by ImageDisplay::~ImageDisplay().
The documentation for this class was generated from the following files:
- src/firevision/fvwidgets/sdl_keeper.h
- src/firevision/fvwidgets/sdl_keeper.cpp

