diff options
author | pixel <pixel> | 2002-11-11 20:07:41 +0000 |
---|---|---|
committer | pixel <pixel> | 2002-11-11 20:07:41 +0000 |
commit | 028c7dcfa9f1920d5fa2e573790bef40c4076275 (patch) | |
tree | 3c5f2bd9e90b7d57bae84111a200ee608c9d9bc3 /includes/gltexture.h | |
parent | 9cde21d59d7c1f9b385d334cd60ae241ce9cf49b (diff) |
Still working ;-)
Diffstat (limited to 'includes/gltexture.h')
-rw-r--r-- | includes/gltexture.h | 24 |
1 files changed, 24 insertions, 0 deletions
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 <SDL.h> +#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 |