summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorpixel <pixel>2002-12-08 20:00:50 +0000
committerpixel <pixel>2002-12-08 20:00:50 +0000
commit4fde43181e0c726a1e0de1e26ffe1983774d1ed0 (patch)
tree4ad33126d854b941d972fc744056077f4adae30d /include
parent218f34ad9e9026493fad5ead4dcafafc295b68cd (diff)
Commit of the day
Diffstat (limited to 'include')
-rw-r--r--include/gltexture.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/include/gltexture.h b/include/gltexture.h
index c18e6ec..7305eb5 100644
--- a/include/gltexture.h
+++ b/include/gltexture.h
@@ -10,16 +10,22 @@ namespace mogltk {
public:
texture(int = 256, int = 256, bool = false) throw (GeneralException);
virtual ~texture();
- SDL_Surface * GetSurface() throw (GeneralException);
- void Generate() throw (GeneralException);
- void Bind(bool = true) throw (GeneralException);
+ SDL_Surface * GetSurface();
+ void Generate();
+ void Bind(bool = true);
GLuint GetWidth();
GLuint GetHeight();
static void Unbind(void);
private:
GLuint width, height, tex;
+ bool texture_allocated;
SDL_Surface * surface;
bool planar;
+#ifdef TRACE_TEXTURES
+ static texture * header;
+ static texture * footer;
+ texture * next, * prev;
+#endif
};
};