29 #include "nomlib/system/SDL_App.hpp"
33 SDL_App::SDL_App (
void )
35 NOM_LOG_TRACE ( NOM );
39 this->set_show_fps (
true );
44 SDL_App::~SDL_App (
void )
46 NOM_LOG_TRACE ( NOM );
52 if ( SDL_WasInit ( SDL_INIT_JOYSTICK ) )
54 SDL_QuitSubSystem ( SDL_INIT_JOYSTICK );
58 bool SDL_App::isRunning (
void )
65 void SDL_App::Running (
void )
70 bool SDL_App::onInit (
void )
75 void SDL_App::Quit (
void )
85 void SDL_App::onEvent ( EventType* event )
87 Input::HandleInput ( event );
90 uint32 SDL_App::ticks (
void )
95 bool SDL_App::show_fps (
void )
const
100 void SDL_App::set_show_fps (
bool toggle )
107 if ( this->show_fps() )
109 this->set_show_fps (
false );
113 this->set_show_fps (
true );
121 if ( SDL_PollEvent ( event ) )
virtual void onQuit(void)
Re-implements nom::Input::onQuit()
bool show_fps_
fps counter
bool PollEvents(EventType *)
Let the user know if there are pending events.
bool app_state
global app state
Timer appTime
global app timer