]> git.jsancho.org Git - lugaru.git/blob - Source/Texture.h
9731dca0ff807448cd46a542b9449c2b6f5408fb
[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 {
13 private:
14     TextureRes* tex;
15 public:
16     inline Texture(): tex(NULL) {}
17     void load(const string& filename, bool hasMipmap, bool hasAlpha);
18     void load(const string& filename, bool hasMipmap, GLubyte* array, int* skinsizep);
19     void destroy();
20     void bind();
21
22     static void reloadAll();
23 };
24
25 #endif