summaryrefslogtreecommitdiffhomepage
path: root/loader/ground-atlas.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-07-16 12:27:46 +0200
committerStanislaw Halik <sthalik@misaki.pl>2024-07-16 12:27:46 +0200
commit47b9691f9bde62ea62f6601503997d93ed7ab64c (patch)
treef0e08b4f37ced066ac18defdf233eec0e91b6cc0 /loader/ground-atlas.cpp
parent6aabc74a535da1f2d5cf866346b31939d097cbac (diff)
wa
Diffstat (limited to 'loader/ground-atlas.cpp')
-rw-r--r--loader/ground-atlas.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/loader/ground-atlas.cpp b/loader/ground-atlas.cpp
index d46b0dfc..4b3495a0 100644
--- a/loader/ground-atlas.cpp
+++ b/loader/ground-atlas.cpp
@@ -2,14 +2,14 @@
#include "atlas-loader.inl"
#include "ground-traits.hpp"
#include "ground-cell.hpp"
+#include "compat/borrowed-ptr.inl"
#include <Magnum/Math/Vector2.h>
namespace floormat::loader_detail {
template class atlas_loader<ground_atlas>;
-std::shared_ptr<ground_atlas>
-loader_impl::get_ground_atlas(StringView name, Vector2ub size, pass_mode pass) noexcept(false)
+bptr<ground_atlas> loader_impl::get_ground_atlas(StringView name, Vector2ub size, pass_mode pass) noexcept(false)
{
return _ground_loader->make_atlas(name, {
.atlas = {}, .name = {}, .size = size, .pass = pass,
@@ -31,8 +31,7 @@ const ground_cell& loader_impl::invalid_ground_atlas()
return _ground_loader->get_invalid_atlas();
}
-const std::shared_ptr<class ground_atlas>&
-loader_impl::ground_atlas(StringView filename, loader_policy policy) noexcept(false)
+const bptr<class ground_atlas>& loader_impl::ground_atlas(StringView filename, loader_policy policy) noexcept(false)
{
return _ground_loader->get_atlas(filename, policy);
}