blob: 56c9279f34cb954bc01f0828dd36acc924672de8 (
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
#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 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();
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
|