diff options
author | pixel <pixel> | 2002-11-15 23:58:57 +0000 |
---|---|---|
committer | pixel <pixel> | 2002-11-15 23:58:57 +0000 |
commit | d99f7dd959709b7a9e8cba23b88a216a6970209c (patch) | |
tree | 9e74abdec626b44ceb845239f8ed93f239946445 /includes/gltexture.h | |
parent | 028c7dcfa9f1920d5fa2e573790bef40c4076275 (diff) |
Bleh
Diffstat (limited to 'includes/gltexture.h')
-rw-r--r-- | includes/gltexture.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/includes/gltexture.h b/includes/gltexture.h index 5ac80ad..84edaa8 100644 --- a/includes/gltexture.h +++ b/includes/gltexture.h @@ -1,21 +1,22 @@ #ifndef __GLTEXTURE_H__ #define __GLTEXTURE_H__ +#include <GL/gl.h> #include <SDL.h> #include "Exceptions.h" namespace mogltk { - class gltexture : public Base { + class texture : public Base { public: - gltexture(int = 256, int = 256, bool = true) throw (GeneralException); - virtual ~gltexture(); + texture(int = 256, int = 256, bool = false) throw (GeneralException); + virtual ~texture(); SDL_Surface * GetSurface() throw (GeneralException); void Generate() throw (GeneralException); - void Bind() throw (GeneralException); + void Bind(bool = true) throw (GeneralException); GLuint GetWidth(); GLuint GetHeight(); private: - GLuint width, height, texture; + GLuint width, height, tex; SDL_Surface * surface; bool planar; }; |