summaryrefslogtreecommitdiff
path: root/game/geoData.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2024-02-22 01:16:29 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2024-02-22 01:16:29 +0000
commit3770b101cfc5ad37a069850b422f0098ade7fc08 (patch)
treedc4bdc403751062826d9c480779d1d8b3e7f7a31 /game/geoData.h
parentFix calculation of texture coords of terrain (diff)
downloadilt-3770b101cfc5ad37a069850b422f0098ade7fc08.tar.bz2
ilt-3770b101cfc5ad37a069850b422f0098ade7fc08.tar.xz
ilt-3770b101cfc5ad37a069850b422f0098ade7fc08.zip
First cut of terrain deformation
This "works" for some definition of works... But it's flawed in many ways, not least the following: * It's glitchy for no obvious reason * It's unreliable; fails if you tweak the parameters * The sides of the modified area are triangulated in the dumbest possible fashion, which results in ill-formed polygons * Probably other things, but... It works, remember...
Diffstat (limited to 'game/geoData.h')
-rw-r--r--game/geoData.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/game/geoData.h b/game/geoData.h
index 6c6ae26..4d8e11c 100644
--- a/game/geoData.h
+++ b/game/geoData.h
@@ -89,6 +89,8 @@ public:
[[nodiscard]] HalfedgeHandle findEntry(const GlobalPosition2D from, const GlobalPosition2D to) const;
+ void setHeights(const std::span<const GlobalPosition3D> triangleStrip);
+
[[nodiscard]] auto
getExtents() const
{