]> git.jsancho.org Git - lugaru.git/blob - Source/Texture.h
major refactor of texture system
[lugaru.git] / Source / Texture.h
1 #ifndef _TEXTURE_H_
2 #define _TEXTURE_H_
3
4 #include <map>
5 #include <vector>
6 #include <string>
7 using namespace std;
8
9 class TextureRes;
10
11 class Texture {
12 private:
13     TextureRes* tex;
14 public:
15     inline Texture(): tex(NULL) {}
16     void load(const string& filename, bool hasMipmap, bool hasAlpha);
17     void load(const string& filename, bool hasMipmap, GLubyte* array, int* skinsizep);
18     void destroy();
19     void bind();
20
21     static void reloadAll();
22 };
23
24 #endif