From b97413c5561a59acac86e053a1aa8bd7905456f2 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 5 Nov 2022 19:54:08 +0100 Subject: a --- loader/loader-impl.cpp | 2 -- serialize/string.hpp | 4 ---- src/anim-atlas.cpp | 1 + src/anim-atlas.hpp | 1 + 4 files changed, 2 insertions(+), 6 deletions(-) diff --git a/loader/loader-impl.cpp b/loader/loader-impl.cpp index 9e6de31e..69a5f8ab 100644 --- a/loader/loader-impl.cpp +++ b/loader/loader-impl.cpp @@ -31,8 +31,6 @@ struct loader_impl final : loader_ importer_plugins.loadAndInstantiate("AnyImageImporter"); PluginManager::Manager image_converter_plugins; - Containers::Pointer tga_converter = - image_converter_plugins.loadAndInstantiate("AnyImageConverter"); std::unordered_map> atlas_map; diff --git a/serialize/string.hpp b/serialize/string.hpp index a3923527..66e448a4 100644 --- a/serialize/string.hpp +++ b/serialize/string.hpp @@ -10,10 +10,6 @@ using StringView = BasicStringView; } // namespace Corrade::Containers -namespace floormat { - -} // namespace floormat - namespace nlohmann { template<> diff --git a/src/anim-atlas.cpp b/src/anim-atlas.cpp index 2e4361df..c5a54a3d 100644 --- a/src/anim-atlas.cpp +++ b/src/anim-atlas.cpp @@ -41,6 +41,7 @@ anim_atlas& anim_atlas::operator=(anim_atlas&&) noexcept = default; StringView anim_atlas::name() const noexcept { return _name; } GL::Texture2D& anim_atlas::texture() noexcept { return _tex; } const Serialize::anim& anim_atlas::info() const noexcept { return _info; } +Vector2ui anim_atlas::pixel_size() const noexcept { return _pixel_size; } auto anim_atlas::group(rotation r) const noexcept -> const anim_group& { diff --git a/src/anim-atlas.hpp b/src/anim-atlas.hpp index 4c7140d9..b4514df9 100644 --- a/src/anim-atlas.hpp +++ b/src/anim-atlas.hpp @@ -26,6 +26,7 @@ struct anim_atlas final StringView name() const noexcept; GL::Texture2D& texture() noexcept; const anim_info& info() const noexcept; + Vector2ui pixel_size() const noexcept; const anim_group& group(rotation r) const noexcept; const anim_frame& frame(rotation r, std::size_t frame) const noexcept; -- cgit v1.2.3