summaryrefslogtreecommitdiff
path: root/includes/gltexture.h
diff options
context:
space:
mode:
Diffstat (limited to 'includes/gltexture.h')
-rw-r--r--includes/gltexture.h24
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