diff options
author | Pixel <Pixel> | 2002-11-04 15:19:18 +0000 |
---|---|---|
committer | Pixel <Pixel> | 2002-11-04 15:19:18 +0000 |
commit | ec510c6361cf39fe3d1cad02c77de887b9d70e7a (patch) | |
tree | cb4d50380b0dfb5ef693b691156d26742d0c7de9 /includes | |
parent | 419a05e177eb34815d6f8fad64654376805f1552 (diff) |
Working on mogltk
Diffstat (limited to 'includes')
-rw-r--r-- | includes/engine.h | 16 | ||||
-rw-r--r-- | includes/glbase.h | 20 |
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 |