summaryrefslogtreecommitdiff
path: root/include/sprite.h
diff options
context:
space:
mode:
authorpixel <pixel>2003-03-08 02:49:42 +0000
committerpixel <pixel>2003-03-08 02:49:42 +0000
commit02ee82a20cc5462ab43fdfa3b0237cd8618bdd97 (patch)
treea8d1053b3f520765573936ba380547d048bc39f2 /include/sprite.h
parent054738ff7c07cf86e72fa7fb6d4136349eef5b1c (diff)
Sprites working(?)
Diffstat (limited to 'include/sprite.h')
-rw-r--r--include/sprite.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/sprite.h b/include/sprite.h
index 803bd4a..fbc50ff 100644
--- a/include/sprite.h
+++ b/include/sprite.h
@@ -8,7 +8,6 @@
#include "gltexture.h"
namespace mogltk {
-
class Sprite : public Base {
public:
Sprite(Handle *, int, int);
@@ -22,8 +21,10 @@ namespace mogltk {
virtual ~TexList();
Sprite * sprheader;
const texture * GetTex() const;
- static const TexList * GetHead() const;
+ texture * GetTex();
+ static const TexList * GetHead();
const TexList * GetNext() const;
+ TexList * GetNext();
void Bind() const;
private:
texture * tex;
@@ -33,7 +34,7 @@ namespace mogltk {
Sprite * next, * prev;
TexList * tlist;
int sx, sy, posx, posy;
- void alloc() const;
+ void alloc();
bool canfit(int, int, int, int) const;
bool intersect(int, int, int, int) const;
};