From 028c7dcfa9f1920d5fa2e573790bef40c4076275 Mon Sep 17 00:00:00 2001 From: pixel Date: Mon, 11 Nov 2002 20:07:41 +0000 Subject: Still working ;-) --- includes/gltexture.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 includes/gltexture.h (limited to 'includes/gltexture.h') diff --git a/includes/gltexture.h b/includes/gltexture.h new file mode 100644 index 0000000..5ac80ad --- /dev/null +++ b/includes/gltexture.h @@ -0,0 +1,24 @@ +#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 -- cgit v1.2.3