diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-12 09:45:20 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-12 09:57:37 +0100 |
commit | c8f0c67d56716bde17b8699c300332eeac9fd0c4 (patch) | |
tree | feb446095b33f3dad571ac9f4bf84b14cced3903 /anim-crop-tool/atlas.cpp | |
parent | 4c8457ab9d13ff9b5121f5a4761669a07b3f5343 (diff) |
rename clashing type name {,Serialize::}anim_atlas
Diffstat (limited to 'anim-crop-tool/atlas.cpp')
-rw-r--r-- | anim-crop-tool/atlas.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/anim-crop-tool/atlas.cpp b/anim-crop-tool/atlas.cpp index 392f90fc..1967032c 100644 --- a/anim-crop-tool/atlas.cpp +++ b/anim-crop-tool/atlas.cpp @@ -18,7 +18,7 @@ void anim_atlas_row::add_entry(const anim_atlas_entry& x) max_height = std::max((unsigned)mat.rows, max_height); } -void anim_atlas::advance_row() +void anim_atlas_::advance_row() { auto& row = rows.back(); if (row.data.empty()) @@ -30,13 +30,13 @@ void anim_atlas::advance_row() rows.push_back({ {}, 0, 0, ypos }); } -Magnum::Vector2ui anim_atlas::offset() const noexcept +Magnum::Vector2ui anim_atlas_::offset() const noexcept { const auto& row = rows.back(); return { row.xpos, row.ypos }; } -Magnum::Vector2ui anim_atlas::size() const noexcept +Magnum::Vector2ui anim_atlas_::size() const noexcept { const anim_atlas_row& row = rows.back(); // prevent accidentally writing out of bounds by forgetting to call @@ -44,7 +44,7 @@ Magnum::Vector2ui anim_atlas::size() const noexcept return { std::max(maxx, row.xpos), ypos + row.max_height }; } -bool anim_atlas::dump(StringView filename) const +bool anim_atlas_::dump(StringView filename) const { auto sz = size(); cv::Mat4b mat((int)sz[1], (int)sz[0]); |