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