MainLoop.h

Go to the documentation of this file.
00001 
00005 /* Copyright © 2009, 2010 James Legg.
00006     This program is free software: you can redistribute it and/or modify
00007     it under the terms of the GNU General Public License as published by
00008     the Free Software Foundation, either version 3 of the License, or
00009     (at your option) any later version.
00010 */
00011 #ifndef MAINLOOP_H_
00012 #define MAINLOOP_H_
00013 
00014 #include "Engine/Scene.h"
00015 
00022 class MainLoop
00023 {
00024     public:
00025         MainLoop();
00026         
00027         virtual ~MainLoop();
00032         void pop_scene();
00033         
00038         void push_scene(Engine::Scene & scene);
00039     private:
00041         void run(Engine::Scene & scene);
00043         void process_events();
00045         void do_logic(Engine::Scene & scene);
00047         void redraw(Engine::Scene & scene);
00049         void update_sound(Engine::Scene & scene);
00050         
00051         unsigned int milliseconds;
00053         bool done;
00055         bool quit;
00056 };
00057 
00058 #endif /*MAINLOOP_H_*/

Get Racer at SourceForge.net. Fast, secure and Free Open Source software downloads

Generated at Mon Sep 6 00:41:13 2010 by Doxygen version 1.4.7 for Racer version svn335.