From be0486797260377246c1ea1229cca27c19c64ad2 Mon Sep 17 00:00:00 2001 From: pixel Date: Wed, 26 Mar 2003 17:19:23 +0000 Subject: bleh --- include/gltexture.h | 29 +++++++++-------------------- 1 file changed, 9 insertions(+), 20 deletions(-) (limited to 'include/gltexture.h') diff --git a/include/gltexture.h b/include/gltexture.h index 4f5e162..a5137db 100644 --- a/include/gltexture.h +++ b/include/gltexture.h @@ -6,33 +6,22 @@ #include #include #include +#include namespace mogltk { - class texture : public Base { + class gltexture : public texture { public: - texture(int = 256, int = 256, bool = false) throw (GeneralException); - texture(Handle *, bool = false) throw (GeneralException); - virtual ~texture(); - SDL_Surface * GetSurface(); - Uint32 * GetPixels(); - static SDL_Surface * LoadNTEX(Handle * h) throw (GeneralException) ; + gltexture(int = 256, int = 256, bool = false) throw (GeneralException); + gltexture(Handle *, bool = false) throw (GeneralException); + virtual ~gltexture(); void Generate(); + void Taint(); void Bind(bool = true); - GLuint GetWidth(); - GLuint GetHeight(); static void Unbind(void); - void Taint(void); private: - GLuint width, height, tex; - bool texture_allocated; - SDL_Surface * surface; - bool planar, tainted; -#ifdef TRACE_TEXTURES - static texture * header; - static texture * footer; - texture * next, * prev; -#endif - static texture * active; + GLuint tex; + bool texture_allocated, planar, tainted; + static gltexture * active; }; }; -- cgit v1.2.3