From 11f44e36d5f02f8309fc463f9a2c6cd81b42c3ce Mon Sep 17 00:00:00 2001 From: pixel Date: Sat, 7 Dec 2002 00:42:14 +0000 Subject: Whoups --- include/gltexture.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 include/gltexture.h (limited to 'include/gltexture.h') diff --git a/include/gltexture.h b/include/gltexture.h new file mode 100644 index 0000000..c18e6ec --- /dev/null +++ b/include/gltexture.h @@ -0,0 +1,26 @@ +#ifndef __GLTEXTURE_H__ +#define __GLTEXTURE_H__ + +#include +#include +#include + +namespace mogltk { + class texture : public Base { + 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); + GLuint GetWidth(); + GLuint GetHeight(); + static void Unbind(void); + private: + GLuint width, height, tex; + SDL_Surface * surface; + bool planar; + }; +}; + +#endif -- cgit v1.2.3