summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/engine.h2
-rw-r--r--include/glsprite.h3
-rw-r--r--include/sprite.h8
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: