projects
/
demo
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
bcf9a92a2d1e49fe36b13b8d7c7f57ba620e6a86
[demo]
/
src
/
texture.h
1
#ifndef TEXTURE_H_
2
#define TEXTURE_H_
3
4
#include <string>
5
6
class Texture {
7
private:
8
virtual void update() = 0;
9
10
protected:
11
int w;
12
int h;
13
unsigned char *pixels;
14
15
public:
16
std::string name;
17
18
Texture();
19
virtual ~Texture();
20
21
virtual bool load(const char *fname);
22
virtual void bind() = 0;
23
};
24
25
#endif // TEXTURE_H_