diff options
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; }; |