summaryrefslogtreecommitdiffhomepage
path: root/src/chunk-walls.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-08-27 14:27:50 +0200
committerStanislaw Halik <sthalik@misaki.pl>2024-09-20 16:08:46 +0200
commitd34cf9c575fef03c6505939fa77ebedabfae413a (patch)
tree98bf903345e73c5ff56c671472d6100c2a1a59b3 /src/chunk-walls.cpp
parentb0e86fb89d8ea94601b0244f918df07a3fa82a9e (diff)
wip
Diffstat (limited to 'src/chunk-walls.cpp')
-rw-r--r--src/chunk-walls.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/chunk-walls.cpp b/src/chunk-walls.cpp
index 17aac134..14249671 100644
--- a/src/chunk-walls.cpp
+++ b/src/chunk-walls.cpp
@@ -41,6 +41,27 @@ using Wall::Direction_;
using Wall::Frame;
template<Group_ G, bool IsWest>
+constexpr Quads::texcoords hole_to_texcoord(CutResult<float>::rect hole)
+{
+ static_assert(G < Group_::COUNT);
+
+ switch (G)
+ {
+ using enum Group_;
+ case COUNT: fm_assert(false);
+ case wall:
+ fm_assert(false);
+ break;
+ case corner:
+ case side:
+ case top:
+ fm_assert(false);
+ }
+ //std::unreachable();
+ return {};
+}
+
+template<Group_ G, bool IsWest>
constexpr Quads::quad get_quad(float depth)
{
static_assert(G < Group_::COUNT);