diff options
Diffstat (limited to 'texture.h')
-rw-r--r-- | texture.h | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -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_ |