summaryrefslogtreecommitdiff
path: root/include/texture.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/texture.h')
-rw-r--r--include/texture.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/texture.h b/include/texture.h
index 3b60e5b..44e2efe 100644
--- a/include/texture.h
+++ b/include/texture.h
@@ -10,8 +10,9 @@
namespace mogltk {
class texture : public Base {
public:
- texture(int = 256, int = 256, bool = false) throw (GeneralException);
+ texture(int, int, bool = false) throw (GeneralException);
texture(Handle *, bool = false) throw (GeneralException);
+ texture(int, int, int, int);
virtual ~texture();
SDL_Surface * GetSurface();
Uint32 * GetPixels();
@@ -24,11 +25,12 @@ namespace mogltk {
static void Unbind(void);
void Taint(void);
static void Taintall(void);
+ void DumpBMP(const String &);
private:
GLuint width, height, tex;
bool texture_allocated;
SDL_Surface * surface;
- bool planar, tainted;
+ bool planar, tainted, taintable;
static texture * header;
static texture * footer;
texture * next, * prev;