summaryrefslogtreecommitdiff
path: root/texture.h
blob: ca7fef1136f645bcac3d7387b308c7b65d81438d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef _TEXTURE_H_
#define _TEXTURE_H_

#include <stdint.h>

class Texture {
	public:
		void bind() const;
		unsigned int tex() const;
		unsigned int w() const;
		unsigned int h() const;
	protected:
		void build(void* data, unsigned int format, unsigned int w, unsigned int h);
		unsigned int width;
		unsigned int height;
		unsigned int texture;
};

#endif // _TEXTURE_H_