summaryrefslogtreecommitdiff
path: root/includes/gltexture.h
diff options
context:
space:
mode:
authorpixel <pixel>2002-11-15 23:58:57 +0000
committerpixel <pixel>2002-11-15 23:58:57 +0000
commitd99f7dd959709b7a9e8cba23b88a216a6970209c (patch)
tree9e74abdec626b44ceb845239f8ed93f239946445 /includes/gltexture.h
parent028c7dcfa9f1920d5fa2e573790bef40c4076275 (diff)
Bleh
Diffstat (limited to 'includes/gltexture.h')
-rw-r--r--includes/gltexture.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/includes/gltexture.h b/includes/gltexture.h
index 5ac80ad..84edaa8 100644
--- a/includes/gltexture.h
+++ b/includes/gltexture.h
@@ -1,21 +1,22 @@
#ifndef __GLTEXTURE_H__
#define __GLTEXTURE_H__
+#include <GL/gl.h>
#include <SDL.h>
#include "Exceptions.h"
namespace mogltk {
- class gltexture : public Base {
+ class texture : public Base {
public:
- gltexture(int = 256, int = 256, bool = true) throw (GeneralException);
- virtual ~gltexture();
+ texture(int = 256, int = 256, bool = false) throw (GeneralException);
+ virtual ~texture();
SDL_Surface * GetSurface() throw (GeneralException);
void Generate() throw (GeneralException);
- void Bind() throw (GeneralException);
+ void Bind(bool = true) throw (GeneralException);
GLuint GetWidth();
GLuint GetHeight();
private:
- GLuint width, height, texture;
+ GLuint width, height, tex;
SDL_Surface * surface;
bool planar;
};