#ifndef __ENGINE_H__ #define __ENGINE_H__ #include #include #include #include #include namespace mogltk { class engine : public Base { public: static int setup() throw(GeneralException); static int postsetup() throw(GeneralException); static int GetInited(); static SDL_RWops * RWFromHandle(Handle *) throw (GeneralException); static void pollevents(); static void setappactive(bool); static bool getappactive(); static void setcursorvisible(bool); static bool getcursorvisible(); static bool quitrequested(); static int mouseX(); static int mouseY(); static int mousebuttons(); static double FPS(); static void lockmouse(); static void unlockmouse(); static glbase * glbase_o; static base * base_o; private: static bool inited; static bool postsetuped; static bool appactive; static bool cursorvisible; static bool quitrequest; static int mx; static int my; static int mbuttons; static int frames; static double curfps; static Uint32 curticks; static int locked; static void updatemouse(); }; }; #endif