summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
Diffstat (limited to 'includes')
-rw-r--r--includes/engine.h16
-rw-r--r--includes/glbase.h20
2 files changed, 36 insertions, 0 deletions
diff --git a/includes/engine.h b/includes/engine.h
new file mode 100644
index 0000000..e7a4f6b
--- /dev/null
+++ b/includes/engine.h
@@ -0,0 +1,16 @@
+#ifndef __ENGINE_H__
+#define __ENGINE_H__
+
+#include "Exceptions.h"
+
+namespace mogltk {
+ class engine {
+ public:
+ static int setup() throw(GeneralException);
+ static int GetInited();
+ private:
+ static int inited;
+ };
+};
+
+#endif
diff --git a/includes/glbase.h b/includes/glbase.h
new file mode 100644
index 0000000..98fd537
--- /dev/null
+++ b/includes/glbase.h
@@ -0,0 +1,20 @@
+#ifndef __GLBASE_H__
+#define __GLBASE_H__
+
+#include <SDL.h>
+#include "Exceptions.h"
+
+namespace mogltk {
+ class glbase {
+ public:
+ static int setup(int w = 640, int h = 480, int flags = 0) throw(GeneralException);
+ static int GetWidth(void);
+ static int GetHeight(void);
+ static int GetInited(void);
+ private:
+ static int width, height, inited;
+ static SDL_Surface * surface;
+ };
+};
+
+#endif