23 #ifndef __MYGUI_RESOURCE_IMAGE_SET_H__
24 #define __MYGUI_RESOURCE_IMAGE_SET_H__
74 size_t getGroupIndex(
const std::string& _name)
76 for (
size_t index=0; index<mGroups.size(); ++index)
78 if (mGroups[index].name == _name)
return index;
83 size_t getGroupIndex(
const IntSize& _size)
85 for (
size_t index=0; index<mGroups.size(); ++index)
87 if (mGroups[index].size == _size)
return index;
92 size_t getImageIndex(GroupImage& _group,
const std::string& _name)
95 for (
size_t index=0; index<indexes.size(); ++index)
97 if (indexes[index].name == _name)
return index;
102 const IntSize& getGroupSize(
size_t _index)
104 if (_index >= mGroups.size())
return mSizeEmpty;
105 return mGroups[_index].size;
108 const IntSize& getGroupSize(
const std::string& _group)
110 for (
size_t index=0; index<mGroups.size(); ++index)
112 if (mGroups[index].name == _group)
return mGroups[index].size;
118 ImageIndexInfo getIndexInfo(
const std::string& _group,
const std::string& _index);
119 ImageIndexInfo getIndexInfo(
size_t _group,
const std::string& _index);
120 ImageIndexInfo getIndexInfo(
const std::string& _group,
size_t _index);
121 ImageIndexInfo getIndexInfo(
size_t _group,
size_t _index);
122 ImageIndexInfo getIndexInfo(
const IntSize& _group,
size_t _index);
123 ImageIndexInfo getIndexInfo(
const IntSize& _group,
const std::string& _index);
131 static std::string mTextureEmpty;
133 static std::vector<IntPoint> mFramesEmpty;
139 #endif // __MYGUI_RESOURCE_IMAGE_SET_H__