From 541c00c93fcd98f766cce661aa83ef4ffe713e57 Mon Sep 17 00:00:00 2001 From: pixel Date: Fri, 28 Mar 2003 12:30:26 +0000 Subject: First part of the backend separation --- include/glsprite.h | 30 +++--------------------------- 1 file changed, 3 insertions(+), 27 deletions(-) (limited to 'include/glsprite.h') diff --git a/include/glsprite.h b/include/glsprite.h index 3f481c5..a7b2bfd 100644 --- a/include/glsprite.h +++ b/include/glsprite.h @@ -4,9 +4,9 @@ #include #include #include -#include -#include "gltexture.h" -#include "sprite.h" +#include +#include +#include namespace mogltk { class glSprite : public Sprite { @@ -15,31 +15,7 @@ namespace mogltk { glSprite(Uint8 *, int, int); virtual ~glSprite(); virtual void draw(int, int, ColorP = WHITE); - private: - class TexList : public Base { - public: - TexList(int); - virtual ~TexList(); - glSprite * sprheader; - const texture * GetTex() const; - texture * GetTex(); - static const TexList * GetHead(); - const TexList * GetNext() const; - TexList * GetNext(); - void Bind() const; - private: - texture * tex; - static TexList * header; - TexList * next, * prev; - }; - glSprite * next, * prev; - TexList * tlist; - int sx, sy, posx, posy; - void alloc(); - bool canfit(int, int, int, int) const; - bool intersect(int, int, int, int) const; }; - }; #endif -- cgit v1.2.3