zenilib
0.5.3.0
|
#include <Core.h>
Inherits Zeni::Singleton< Core >.
Public Member Functions | |
bool | is_screen_saver_enabled () |
Check to see if the screen saver is enabled. More... | |
void | set_screen_saver (const bool &enabled) |
Enable/Disable the screen saver. More... | |
Public Member Functions inherited from Zeni::Singleton< Core > | |
void | fax_post_reinit (Event::Handler *const &handler) |
void | fax_pre_uninit (Event::Handler *const &handler) |
void | give_post_reinit (Event::Handler *const &handler) |
void | give_pre_uninit (Event::Handler *const &handler) |
void | lend_post_reinit (Event::Handler *const &handler) |
void | lend_pre_uninit (Event::Handler *const &handler) |
Static Public Member Functions | |
static void | assert_no_error () |
If there is an SDL error, print it and assert(false) More... | |
static bool | print_error () |
If there is an SDL error, print it and then clear it; returns true iff there was an error. More... | |
Static Public Member Functions inherited from Zeni::Singleton< Core > | |
static void | completely_destroy () |
static void | destroy () |
static Core & | get () |
static bool | is_initialized () |
static void | remove_post_reinit (Event::Handler *const &handler) |
static void | remove_pre_uninit (Event::Handler *const &handler) |
Friends | |
class | Singleton< Core > |
Additional Inherited Members | |
Protected Member Functions inherited from Zeni::Singleton< Core > | |
Singleton () | |
virtual | ~Singleton () |
The Core singleton essentially initializes and uninitializes SDL. It is depended upon by most other classes in some way.
Contact: bazal d@ze nipex .com
|
static |
If there is an SDL error, print it and assert(false)
Definition at line 122 of file Core.cpp.
References assert, SDL_ClearError(), and SDL_GetError().
Referenced by Zeni::Window::alert_window_resized(), Zeni::Video_GL_Shader::init(), Zeni::Video_GL_Shader::set_vertical_sync(), Zeni::Window::Window(), and Zeni::Window::~Window().
bool Zeni::Core::is_screen_saver_enabled | ( | ) |
Check to see if the screen saver is enabled.
Definition at line 85 of file Core.cpp.
References BOOL(), and SDL_IsScreenSaverEnabled().
|
static |
If there is an SDL error, print it and then clear it; returns true iff there was an error.
Definition at line 132 of file Core.cpp.
References SDL_ClearError(), and SDL_GetError().
Referenced by Zeni::Window::Window(), and Zeni::Window::~Window().
Enable/Disable the screen saver.
Definition at line 99 of file Core.cpp.
References SDL_DisableScreenSaver(), SDL_EnableScreenSaver(), and UINT().
Referenced by android_main(), engine_handle_input(), Zeni::Popup_State::on_pop(), Zeni::Popup_State::on_push(), Zeni::Window::Window(), and Zeni::Window::~Window().