diff options
author | pixel <pixel> | 2002-12-07 00:42:14 +0000 |
---|---|---|
committer | pixel <pixel> | 2002-12-07 00:42:14 +0000 |
commit | 11f44e36d5f02f8309fc463f9a2c6cd81b42c3ce (patch) | |
tree | e0daba1124a46dd6dc30150066324f62c6c9eedc /include/gltexture.h | |
parent | 70ab3da408f5939fbfec4237e87f503ae82b2179 (diff) |
Whoups
Diffstat (limited to 'include/gltexture.h')
-rw-r--r-- | include/gltexture.h | 26 |
1 files changed, 26 insertions, 0 deletions
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 <GL/gl.h> +#include <SDL.h> +#include <Exceptions.h> + +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 |