summaryrefslogtreecommitdiff
path: root/include/gltexture.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/gltexture.h')
-rw-r--r--include/gltexture.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/include/gltexture.h b/include/gltexture.h
index 06f2e8a..4f5e162 100644
--- a/include/gltexture.h
+++ b/include/gltexture.h
@@ -5,17 +5,16 @@
#include <SDL_opengl.h>
#include <Handle.h>
#include <Exceptions.h>
+#include <generic.h>
namespace mogltk {
- enum texture_type {
- RAW_RGBA,
- };
class texture : public Base {
public:
texture(int = 256, int = 256, bool = false) throw (GeneralException);
- texture(Handle *, bool = false, texture_type = RAW_RGBA) throw (GeneralException);
+ texture(Handle *, bool = false) throw (GeneralException);
virtual ~texture();
SDL_Surface * GetSurface();
+ Uint32 * GetPixels();
static SDL_Surface * LoadNTEX(Handle * h) throw (GeneralException) ;
void Generate();
void Bind(bool = true);