summaryrefslogtreecommitdiff
path: root/include/base.h
diff options
context:
space:
mode:
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);