first git commit: scene, object, mesh, texture, shader, material etc
[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 };
23
24 #endif // TEXTURE_H_