| 459 | } |
| 460 | |
| 461 | bool TextureManager::GetSymbolRegionSafe(std::string const & symbolName, SymbolRegion & region) |
| 462 | { |
| 463 | CHECK(m_isInitialized, ()); |
| 464 | for (size_t i = 0; i < m_symbolTextures.size(); ++i) |
| 465 | { |
| 466 | ref_ptr<SymbolsTexture> symbolsTexture = make_ref(m_symbolTextures[i]); |
| 467 | ASSERT(symbolsTexture != nullptr, ()); |
| 468 | if (symbolsTexture->IsSymbolContained(symbolName)) |
| 469 | { |
| 470 | GetRegionBase(symbolsTexture, region, SymbolsTexture::SymbolKey(symbolName)); |
| 471 | region.SetTextureIndex(static_cast<uint32_t>(i)); |
| 472 | return true; |
| 473 | } |
| 474 | } |
| 475 | return false; |
| 476 | } |
| 477 | |
| 478 | void TextureManager::GetSymbolRegion(std::string const & symbolName, SymbolRegion & region) |
| 479 | { |
no test coverage detected