diff options
author | pixel <pixel> | 2003-03-08 02:49:42 +0000 |
---|---|---|
committer | pixel <pixel> | 2003-03-08 02:49:42 +0000 |
commit | 02ee82a20cc5462ab43fdfa3b0237cd8618bdd97 (patch) | |
tree | a8d1053b3f520765573936ba380547d048bc39f2 /include | |
parent | 054738ff7c07cf86e72fa7fb6d4136349eef5b1c (diff) |
Sprites working(?)
Diffstat (limited to 'include')
-rw-r--r-- | include/sprite.h | 7 |
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; }; |