diff options
author | pixel <pixel> | 2003-10-20 16:21:24 +0000 |
---|---|---|
committer | pixel <pixel> | 2003-10-20 16:21:24 +0000 |
commit | d7575bef1e530eac004c973b0384a12561f0bb8b (patch) | |
tree | 9708064eeaa48be1dc4e871cc9aa0241ca32c15f /include | |
parent | 5b14b34d6e11611fb395e3cffaf888bcca0f3661 (diff) |
Commit of the month
Diffstat (limited to 'include')
-rw-r--r-- | include/engine.h | 2 | ||||
-rw-r--r-- | include/glsprite.h | 3 | ||||
-rw-r--r-- | include/sprite.h | 8 |
3 files changed, 8 insertions, 5 deletions
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: |