summaryrefslogtreecommitdiff
path: root/includes/gltexture.h
blob: 5ac80ad0b11fb5db9ed569c7bff2e7c985177990 (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
#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