diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2024-08-08 17:18:56 +0200 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-08-11 11:07:53 +0200 |
| commit | b51a0ea63ebb767bbef36281037ee6f6da38f30e (patch) | |
| tree | 436b3b7fe0a84f0893a426620db78883b5cb7335 /src/hole-cut.hpp | |
| parent | f2a9fcde8308368e4704beab2bed10595b5d8a6b (diff) | |
factor out hole-making code for UVs
Diffstat (limited to 'src/hole-cut.hpp')
| -rw-r--r-- | src/hole-cut.hpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/hole-cut.hpp b/src/hole-cut.hpp index 48a1b1fc..6f4d5876 100644 --- a/src/hole-cut.hpp +++ b/src/hole-cut.hpp @@ -14,10 +14,12 @@ struct CutResult static CutResult cut(bbox input, bbox hole); static CutResult cut(Vec2 r0, Vec2 r1, Vec2 h0, Vec2 h1); + static CutResult cutʹ(Vec2 r0, Vec2 r1, Vec2 h0, Vec2 h1, uint8_t s); + uint8_t s = (uint8_t)-1, size = 0; std::array<rect, 8> array; - uint8_t size = 0; - bool found = false; + + bool found() const; }; } // namespace floormat |
