From 5c9863cf0998b5f1b6107ce09b54cd3e8b484221 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 30 Sep 2022 18:48:50 +0200 Subject: . --- loader-impl.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'loader-impl.cpp') diff --git a/loader-impl.cpp b/loader-impl.cpp index 2008dbae..b761dca4 100644 --- a/loader-impl.cpp +++ b/loader-impl.cpp @@ -1,6 +1,6 @@ #include "defs.hpp" #include "loader.hpp" -#include "texture-atlas.hpp" +#include "tile-atlas.hpp" #include #include #include @@ -14,18 +14,18 @@ namespace Magnum::Examples { -using atlas_ptr = std::shared_ptr; +using atlas_ptr = std::shared_ptr; struct loader_impl final : loader_ { const Utility::Resource shader_res{"game/shaders"}; PluginManager::Manager importer_plugins; Containers::Pointer tga_importer = - importer_plugins.loadAndInstantiate("TgaImporter"); + importer_plugins.loadAndInstantiate("AnyImageImporter"); PluginManager::Manager image_converter_plugins; Containers::Pointer tga_converter = - image_converter_plugins.loadAndInstantiate("TgaImageConverter"); + image_converter_plugins.loadAndInstantiate("AnyImageConverter"); std::unordered_map atlas_map; @@ -51,7 +51,7 @@ atlas_ptr loader_impl::tile_atlas(const Containers::StringView& name, Vector2i s if (it != atlas_map.end()) return it->second; auto image = tile_texture(name); - auto atlas = std::make_shared(image, size); + auto atlas = std::make_shared(image, size); atlas_map[name] = atlas; return atlas; } -- cgit v1.2.3