summaryrefslogtreecommitdiff
path: root/include/base.h
diff options
context:
space:
mode:
authorpixel <pixel>2003-03-26 14:07:43 +0000
committerpixel <pixel>2003-03-26 14:07:43 +0000
commitc00cd54ca5ed959cbccff7aa7261fb5025d1832c (patch)
treee706afd7029361a9f59882452a8ad2ecf2da0db6 /include/base.h
parenta749e5e0f870dc2acde2de55cba2cd074d524442 (diff)
bleh
Diffstat (limited to 'include/base.h')
-rw-r--r--include/base.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/include/base.h b/include/base.h
new file mode 100644
index 0000000..65326bc
--- /dev/null
+++ b/include/base.h
@@ -0,0 +1,25 @@
+#ifndef __BASE_H__
+#define __BASE_H__
+
+#include <SDL.h>
+#include <SDL_opengl.h>
+#include <Exceptions.h>
+
+namespace mogltk {
+ class base : public Base {
+ public:
+ base(int w = 640, int h = 480, int flags = 0) throw(GeneralException);
+ virtual ~base();
+ int GetWidth(void);
+ int GetHeight(void);
+ virtual void Flip(void);
+ protected:
+ base(int, int, int, int);
+ void setsurface(SDL_Surface *) throw (GeneralException);
+ private:
+ int width, height;
+ SDL_Surface * surface;
+ };
+};
+
+#endif