From d7575bef1e530eac004c973b0384a12561f0bb8b Mon Sep 17 00:00:00 2001 From: pixel Date: Mon, 20 Oct 2003 16:21:24 +0000 Subject: Commit of the month --- include/engine.h | 2 ++ include/glsprite.h | 3 ++- include/sprite.h | 8 ++++---- 3 files changed, 8 insertions(+), 5 deletions(-) (limited to 'include') diff --git a/include/engine.h b/include/engine.h index b39841d..420f576 100644 --- a/include/engine.h +++ b/include/engine.h @@ -27,6 +27,7 @@ namespace mogltk { static bool quitrequested(); static int mouseX(); static int mouseY(); + static int mouseZ(); static int mousebuttons(); static double FPS(); static void lockmouse(); @@ -42,6 +43,7 @@ namespace mogltk { static bool quitrequest; static int mx; static int my; + static int mz; static int mbuttons; static int frames; static double curfps; diff --git a/include/glsprite.h b/include/glsprite.h index 77d0d7f..237a922 100644 --- a/include/glsprite.h +++ b/include/glsprite.h @@ -14,7 +14,8 @@ namespace mogltk { glSprite(Handle *, int, int); glSprite(Uint8 *, int, int); virtual ~glSprite(); - virtual void draw(int, int, ColorP = WHITE); + virtual void draw(int, int, ColorP = WHITE, float = 1.0, float = 1.0); + void bindcorner(float, float); virtual void drawrotate(int, int, double, ColorP = WHITE); }; }; diff --git a/include/sprite.h b/include/sprite.h index feb9e51..b4ef54a 100644 --- a/include/sprite.h +++ b/include/sprite.h @@ -13,11 +13,11 @@ namespace mogltk { Sprite(Handle *, int, int); Sprite(Uint8 *, int, int); virtual ~Sprite(); - virtual void draw(int, int, ColorP = WHITE); - protected: - void Bind(); - int GetSX(); + virtual void draw(int, int, ColorP = WHITE, float = 1.0, float = 1.0); + int GetSX(); int GetSY(); + protected: + void Bind(); int GetPX(); int GetPY(); private: -- cgit v1.2.3