| 472 | } |
| 473 | |
| 474 | void TextureCache::TextureLoaded(std::shared_ptr<TextureData> texture) |
| 475 | { |
| 476 | std::lock_guard<std::mutex> guard(m_TexturesToFinalizeMutex); |
| 477 | |
| 478 | if (texture->mimeType.empty()) |
| 479 | log::message(m_InfoLogSeverity, "Loaded %d x %d, %d bpp: %s", texture->width, texture->height, |
| 480 | texture->originalBitsPerPixel, texture->path.c_str()); |
| 481 | else |
| 482 | log::message(m_InfoLogSeverity, "Loaded %d x %d, %d bpp: %s (%s)", texture->width, texture->height, |
| 483 | texture->originalBitsPerPixel, texture->path.c_str(), texture->mimeType.c_str()); |
| 484 | } |
| 485 | |
| 486 | std::shared_ptr<LoadedTexture> TextureCache::LoadTextureFromFile( |
| 487 | const std::filesystem::path& path, |