From 5cc874802b0b8c4462e7e873654e6daa54be00de Mon Sep 17 00:00:00 2001 From: pixel Date: Sun, 4 Jul 2004 11:56:18 +0000 Subject: SOL Demo --- include/base.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include/base.h') 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 #include +#include 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); -- cgit v1.2.3