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