diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-12-07 14:37:59 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-12-09 05:08:49 +0100 |
commit | b16dea7c2fa9a4138a1f7cf45822cf5372294432 (patch) | |
tree | 0cefd49378387df67fc1d38a72d5a4a957b89c43 /src/chunk-walls.cpp | |
parent | 820d129a06155dd2b05064cbda63841b4c4bd4dd (diff) |
wipshit
Diffstat (limited to 'src/chunk-walls.cpp')
-rw-r--r-- | src/chunk-walls.cpp | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/chunk-walls.cpp b/src/chunk-walls.cpp index 1d976932..0e3c3d31 100644 --- a/src/chunk-walls.cpp +++ b/src/chunk-walls.cpp @@ -17,6 +17,13 @@ namespace floormat { using namespace floormat::Quads; using Wall::Group_; +namespace { + +constexpr Vector2 half_tile = TILE_SIZE2*.5f; +constexpr float hx = half_tile.x(), hy = half_tile.y(); +constexpr float tile_height = TILE_SIZE.z(); + +} // namespace void chunk::ensure_alloc_walls() { @@ -27,7 +34,13 @@ void chunk::ensure_alloc_walls() // ----------------------- // wall north -template<> auto chunk::make_wall_vertex_data<Group_::wall, false>(size_t tile, float depth) -> vertex +template<> std::array<Vector3, 4> chunk::make_wall_vertex_data<Group_::wall, false>(Vector2 center, float depth) +{ + auto quad = wall_quad_N(Vector3(center, tile_height), TILE_SIZE); +} + +// wall west +template<> std::array<Vector3, 4> chunk::make_wall_vertex_data<Group_::wall, true>(Vector2 center, float depth) { } |