diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-02-10 20:07:46 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-02-10 20:07:46 +0000 |
commit | c9d9aedb9f29725e1106ce1f7ddbc1707400d105 (patch) | |
tree | 93651384ef65487bd2f0d6d617e0c8256c1b99a0 /game/geoData.h | |
parent | Combine GeoData and Terrain class hierarchies (diff) | |
download | ilt-c9d9aedb9f29725e1106ce1f7ddbc1707400d105.tar.bz2 ilt-c9d9aedb9f29725e1106ce1f7ddbc1707400d105.tar.xz ilt-c9d9aedb9f29725e1106ce1f7ddbc1707400d105.zip |
Replace mesh generation counter with afterChange event
Diffstat (limited to 'game/geoData.h')
-rw-r--r-- | game/geoData.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/game/geoData.h b/game/geoData.h index d486f22..3d5ea5d 100644 --- a/game/geoData.h +++ b/game/geoData.h @@ -56,7 +56,6 @@ public: }; std::vector<FaceHandle> setHeights(std::span<const GlobalPosition3D> triangleStrip, const SetHeightsOpts &); - [[nodiscard]] size_t getGeneration() const; [[nodiscard]] auto getExtents() const @@ -77,8 +76,8 @@ protected: void updateAllVertexNormals(); template<std::ranges::range R> void updateAllVertexNormals(const R &); void updateVertexNormal(VertexHandle); + virtual void afterChange(); private: GlobalPosition3D lowerExtent {}, upperExtent {}; - size_t generation {}; }; |