7 //keeps track of which textures are loaded
10 static std::map<std::string,Texture> textures;
25 isSkin(false), skinsize(0), arraySize(0),
26 fileName(""), id(0), mipmap(false), hasalpha(false), array(NULL) { }
28 Texture (const std::string& _fileName, bool _mipmap, bool _hasalpha):
29 isSkin(false), skinsize(0), arraySize(0), array(NULL),
30 fileName(_fileName), id(0), mipmap(_mipmap), hasalpha(_hasalpha) { }
31 Texture (const std::string& _fileName, bool _mipmap, bool _hasalpha, bool _isSkin):
32 isSkin(_isSkin), skinsize(0), arraySize(0), array(NULL),
33 fileName(_fileName), id(0), mipmap(_mipmap), hasalpha(_hasalpha) { }
34 GLuint getId() const { return id; }
36 static GLuint Load(const std::string& fileName, bool mipmap, bool hasalpha);
37 static GLuint Load(const std::string& fileName, bool mipmap, bool hasalpha, GLubyte* array, int* skinsize);