Texture atlas compilation fixes

This commit is contained in:
Nikita Lisitsa 2023-05-15 23:28:14 +03:00
parent 30ed7a781e
commit eb55ad5644

View file

@ -12,7 +12,7 @@ namespace psemek::gfx
{
using atlas_type = util::atlas<Pixel, 2, Key, Compare>;
texture_atlas_2d(Pixel background = Pixel{}, std::size_t padding = 0, atlas_type::padding_mode mode = atlas_type::padding_mode::default_value, Compare compare = Compare{});
texture_atlas_2d(Pixel background = Pixel{}, std::size_t padding = 0, typename atlas_type::padding_mode mode = atlas_type::padding_mode::default_value, Compare compare = Compare{});
using texture_view = texture_view_2d;
@ -36,7 +36,7 @@ namespace psemek::gfx
};
template <typename Pixel, typename Key, typename Compare>
texture_atlas_2d<Pixel, Key, Compare>::texture_atlas_2d(Pixel background, std::size_t padding, atlas_type::padding_mode mode, Compare compare)
texture_atlas_2d<Pixel, Key, Compare>::texture_atlas_2d(Pixel background, std::size_t padding, typename atlas_type::padding_mode mode, Compare compare)
: atlas_(std::move(background), padding, mode, std::move(compare))
{}