summaryrefslogtreecommitdiff
path: root/include/gltexture.h
blob: a5137db1f19203ccb35b5b8c71a61f21c4b52059 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef __GLTEXTURE_H__
#define __GLTEXTURE_H__

#include <SDL.h>
#include <SDL_opengl.h>
#include <Handle.h>
#include <Exceptions.h>
#include <generic.h>
#include <texture.h>

namespace mogltk {
    class gltexture : public texture {
      public:
          gltexture(int = 256, int = 256, bool = false) throw (GeneralException);
	  gltexture(Handle *, bool = false) throw (GeneralException);
	  virtual ~gltexture();
	void Generate();
	void Taint();
	void Bind(bool = true);
	static void Unbind(void);
      private:
        GLuint tex;
	bool texture_allocated, planar, tainted;
	static gltexture * active;
    };
};

#endif