summaryrefslogtreecommitdiff
path: root/game/terrain2.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2023-11-04 11:21:23 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2023-11-04 11:21:23 +0000
commita46fded5d93487974ac5f40ff36c8c0f4f7a9db2 (patch)
tree62b66deaefae4b77da3f56bd4e774ddc93f142da /game/terrain2.h
parentPsycho-rebased branch terrain on top of main (diff)
downloadilt-a46fded5d93487974ac5f40ff36c8c0f4f7a9db2.tar.bz2
ilt-a46fded5d93487974ac5f40ff36c8c0f4f7a9db2.tar.xz
ilt-a46fded5d93487974ac5f40ff36c8c0f4f7a9db2.zip
Static helper for loading ASCII grid data
Diffstat (limited to 'game/terrain2.h')
-rw-r--r--game/terrain2.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/game/terrain2.h b/game/terrain2.h
index 5539a50..69cd380 100644
--- a/game/terrain2.h
+++ b/game/terrain2.h
@@ -18,8 +18,11 @@ struct TerrainTraits : public OpenMesh::DefaultTraits {
};
class TerrainMesh : public OpenMesh::TriMesh_ArrayKernelT<TerrainTraits> {
+private:
+ TerrainMesh() = default;
+
public:
- explicit TerrainMesh(const std::filesystem::path &);
+ static TerrainMesh loadFromAsciiGrid(const std::filesystem::path &);
struct PointFace {
// NOLINTNEXTLINE(hicpp-explicit-conversions)