diff options
author | pixel <pixel> | 2004-07-04 11:56:18 +0000 |
---|---|---|
committer | pixel <pixel> | 2004-07-04 11:56:18 +0000 |
commit | 5cc874802b0b8c4462e7e873654e6daa54be00de (patch) | |
tree | d97bfbfe26998b1ee9cf01d830ba446e61094a86 /include/base.h | |
parent | bf452e7f6a3fa0e41964fc8e2c57e1e577cd1682 (diff) |
SOL Demo
Diffstat (limited to 'include/base.h')
-rw-r--r-- | include/base.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/base.h b/include/base.h index 66e3172..0aecf8c 100644 --- a/include/base.h +++ b/include/base.h @@ -3,6 +3,7 @@ #include <SDL.h> #include <Exceptions.h> +#include <texture.h> namespace mogltk { struct rect { @@ -14,13 +15,15 @@ namespace mogltk { virtual ~base(); int GetWidth(void); int GetHeight(void); - virtual void Flip(void); + virtual void Flip(bool clear = true); SDL_Surface * getsurface(); virtual void Enter2DMode(); virtual void Leave2DMode(); virtual bool is2D(); virtual void changeviewport(int x = 0, int y = 0, unsigned int w = 0, unsigned int h = 0); void ToggleFullscreen(); + virtual texture * GrabTexture(); + virtual SDL_Surface * GrabSurface(); protected: base(int, int, int, int); void setsurface(SDL_Surface *) throw (GeneralException); |