summaryrefslogtreecommitdiff
path: root/include/engine.h
blob: 58ca46fbf464812b71ffd059beff31651cffc3af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef __ENGINE_H__
#define __ENGINE_H__

#include <SDL.h>
#include <Handle.h>
#include <Exceptions.h>

namespace mogltk {
    class engine : public Base {
      public:
        static int setup() 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();
      private:
        static int inited;
	static bool appactive;
	static bool cursorvisible;
    };
};

#endif