summaryrefslogtreecommitdiff
path: root/game/terrain2.h
diff options
context:
space:
mode:
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)