diff options
author | pixel <pixel> | 2003-03-26 17:19:23 +0000 |
---|---|---|
committer | pixel <pixel> | 2003-03-26 17:19:23 +0000 |
commit | be0486797260377246c1ea1229cca27c19c64ad2 (patch) | |
tree | 2d6f03e0e8cad191250239b69205c727c5551323 /include/gltexture.h | |
parent | c00cd54ca5ed959cbccff7aa7261fb5025d1832c (diff) |
bleh
Diffstat (limited to 'include/gltexture.h')
-rw-r--r-- | include/gltexture.h | 29 |
1 files changed, 9 insertions, 20 deletions
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 <Handle.h> #include <Exceptions.h> #include <generic.h> +#include <texture.h> 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; }; }; |