diff options
Diffstat (limited to 'include/base.h')
-rw-r--r-- | include/base.h | 25 |
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 |