git-svn-id: svn://db.shs.com.ru/libs@42 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -39,13 +39,13 @@ public:
|
||||
void addAnimation(const QString & dir, const QString & name) {anim_pathes << QPair<QString, QString>(dir, name);}
|
||||
bool loadTextures();
|
||||
void deleteTextures();
|
||||
void deleteTexture(const QString & name) {if (tex_ids.contains(name)) {glDeleteTextures(1, &tex_ids[name]); tex_ids.remove(name);}}
|
||||
void deleteTexture(const QString & name);
|
||||
Animation * findAnimation(const QString & name) {for (int i = 0; i < anim_ids.size(); ++i) if (anim_ids[i].first == name) return &(anim_ids[i].second); return 0;}
|
||||
|
||||
QVector<QPair<QString, Animation> > anim_ids;
|
||||
|
||||
private:
|
||||
QList<QString> tex_pathes;
|
||||
QStringList tex_pathes;
|
||||
QList<QPair<QString, QString> > anim_pathes;
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user