summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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);