summaryrefslogtreecommitdiff
path: root/include/base.h
diff options
context:
space:
mode:
authorpixel <pixel>2004-07-04 11:56:18 +0000
committerpixel <pixel>2004-07-04 11:56:18 +0000
commit5cc874802b0b8c4462e7e873654e6daa54be00de (patch)
treed97bfbfe26998b1ee9cf01d830ba446e61094a86 /include/base.h
parentbf452e7f6a3fa0e41964fc8e2c57e1e577cd1682 (diff)
SOL Demo
Diffstat (limited to 'include/base.h')
-rw-r--r--include/base.h5
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);