equal
deleted
inserted
replaced
574 } |
574 } |
575 |
575 |
576 void Shark::Impl::loadTextures() { |
576 void Shark::Impl::loadTextures() { |
577 // Load default texture if there is no configured: |
577 // Load default texture if there is no configured: |
578 if (cfg.textures.empty()) |
578 if (cfg.textures.empty()) |
579 cfg.textures.push_back({getDefaultFile("textures/default.png")}); |
579 cfg.textures.push_back({getDefaultFile("textures/default.img")}); |
580 |
580 |
581 for (const Configuration::Texture& tex : cfg.textures) { |
581 for (const Configuration::Texture& tex : cfg.textures) { |
582 std::shared_ptr<ImageLoader::ImageBuffer> |
582 std::shared_ptr<ImageLoader::ImageBuffer> |
583 img(imageLoader.loadImage(MappedFile(tex.fileName))); |
583 img(imageLoader.loadImage(MappedFile(tex.fileName))); |
584 textures.push_back(std::make_shared<Texture>( |
584 textures.push_back(std::make_shared<Texture>( |