| 62 | } |
| 63 | |
| 64 | ImageIndexInfo ResourceImageSet::getIndexInfo(std::string_view _group, std::string_view _index) const |
| 65 | { |
| 66 | size_t index_group = getGroupIndex(_group); |
| 67 | if (index_group != ITEM_NONE) |
| 68 | { |
| 69 | const GroupImage& group = mGroups[index_group]; |
| 70 | size_t index_image = getImageIndex(group, _index); |
| 71 | if (index_image != ITEM_NONE) |
| 72 | { |
| 73 | const IndexImage& index = group.indexes[index_image]; |
| 74 | return {group.texture, group.size, index.rate, index.frames}; |
| 75 | } |
| 76 | } |
| 77 | return {std::string_view{}, Constants::getZeroIntSize(), 0, {}}; |
| 78 | } |
| 79 | |
| 80 | ImageIndexInfo ResourceImageSet::getIndexInfo(size_t _group, std::string_view _index) const |
| 81 | { |
no test coverage detected