summaryrefslogtreecommitdiff
path: root/texture.h
diff options
context:
space:
mode:
Diffstat (limited to 'texture.h')
-rw-r--r--texture.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/texture.h b/texture.h
index c88104f..ca7fef1 100644
--- a/texture.h
+++ b/texture.h
@@ -1,14 +1,19 @@
#ifndef _TEXTURE_H_
#define _TEXTURE_H_
+
+#include <stdint.h>
+
class Texture {
public:
- unsigned int tex();
+ void bind() const;
+ unsigned int tex() const;
+ unsigned int w() const;
+ unsigned int h() const;
protected:
- void build();
- unsigned char* data;
+ void build(void* data, unsigned int format, unsigned int w, unsigned int h);
unsigned int width;
unsigned int height;
- unsigned int format;
unsigned int texture;
};
+
#endif // _TEXTURE_H_