From ec510c6361cf39fe3d1cad02c77de887b9d70e7a Mon Sep 17 00:00:00 2001 From: Pixel Date: Mon, 4 Nov 2002 15:19:18 +0000 Subject: Working on mogltk --- includes/engine.h | 16 ++++++++++++++++ includes/glbase.h | 20 ++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 includes/engine.h create mode 100644 includes/glbase.h (limited to 'includes') 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 +#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 -- cgit v1.2.3