#ifndef __GLTEXTURE_H__ #define __GLTEXTURE_H__ #include #include "Exceptions.h" namespace mogltk { class gltexture : public Base { public: gltexture(int = 256, int = 256, bool = true) throw (GeneralException); virtual ~gltexture(); SDL_Surface * GetSurface() throw (GeneralException); void Generate() throw (GeneralException); void Bind() throw (GeneralException); GLuint GetWidth(); GLuint GetHeight(); private: GLuint width, height, texture; SDL_Surface * surface; bool planar; }; }; #endif