| 91 | } |
| 92 | |
| 93 | std::vector<ref_ptr<Texture::ResourceInfo>> GlyphIndex::MapResources(TGlyphs const & keys, bool & hasNewResources) |
| 94 | { |
| 95 | std::vector<ref_ptr<Texture::ResourceInfo>> info; |
| 96 | info.reserve(keys.size()); |
| 97 | |
| 98 | hasNewResources = false; |
| 99 | for (auto const & glyphKey : keys) |
| 100 | { |
| 101 | bool newResource = false; |
| 102 | auto result = MapResource(glyphKey, newResource); |
| 103 | hasNewResources |= newResource; |
| 104 | info.push_back(std::move(result)); |
| 105 | } |
| 106 | |
| 107 | return info; |
| 108 | } |
| 109 | |
| 110 | ref_ptr<Texture::ResourceInfo> GlyphIndex::MapResource(GlyphFontAndId const & key, bool & newResource) |
| 111 | { |