diff --git a/RecastDemo/Include/Sample.h b/RecastDemo/Include/Sample.h index 42f4792a..3ebc7d97 100644 --- a/RecastDemo/Include/Sample.h +++ b/RecastDemo/Include/Sample.h @@ -172,7 +172,7 @@ public: virtual void handleStep(); virtual void render(); virtual void renderOverlay(double* proj, double* model, int* view); - virtual void handleMeshChanged(InputGeom* geom); + virtual void onMeshChanged(InputGeom* geom); virtual bool build(); virtual void update(float dt); virtual void collectSettings(struct BuildSettings& settings); diff --git a/RecastDemo/Include/Sample_SoloMesh.h b/RecastDemo/Include/Sample_SoloMesh.h index e95c5ae6..1c678d4e 100644 --- a/RecastDemo/Include/Sample_SoloMesh.h +++ b/RecastDemo/Include/Sample_SoloMesh.h @@ -76,7 +76,7 @@ public: void render() override; void renderOverlay(double* proj, double* model, int* view) override; - void handleMeshChanged(InputGeom* geom) override; + void onMeshChanged(InputGeom* geom) override; bool build() override; private: diff --git a/RecastDemo/Include/Sample_TempObstacles.h b/RecastDemo/Include/Sample_TempObstacles.h index 69d8ddae..798cdd5a 100644 --- a/RecastDemo/Include/Sample_TempObstacles.h +++ b/RecastDemo/Include/Sample_TempObstacles.h @@ -73,7 +73,7 @@ public: void handleDebugMode() override; void render() override; void renderOverlay(double* proj, double* model, int* view) override; - void handleMeshChanged(InputGeom* geom) override; + void onMeshChanged(InputGeom* geom) override; bool build() override; void update(float dt) override; diff --git a/RecastDemo/Include/Sample_TileMesh.h b/RecastDemo/Include/Sample_TileMesh.h index 4fff8b22..1d9cdce0 100644 --- a/RecastDemo/Include/Sample_TileMesh.h +++ b/RecastDemo/Include/Sample_TileMesh.h @@ -93,7 +93,7 @@ public: void handleDebugMode() override; void render() override; void renderOverlay(double* proj, double* model, int* view) override; - void handleMeshChanged(InputGeom* geom) override; + void onMeshChanged(InputGeom* geom) override; bool build() override; void collectSettings(BuildSettings& settings) override; diff --git a/RecastDemo/Source/Sample.cpp b/RecastDemo/Source/Sample.cpp index d0950a10..4f0ea471 100644 --- a/RecastDemo/Source/Sample.cpp +++ b/RecastDemo/Source/Sample.cpp @@ -145,7 +145,7 @@ void Sample::render() void Sample::renderOverlay(double* /*proj*/, double* /*model*/, int* /*view*/) {} -void Sample::handleMeshChanged(InputGeom* geom) +void Sample::onMeshChanged(InputGeom* geom) { inputGeometry = geom; diff --git a/RecastDemo/Source/Sample_SoloMesh.cpp b/RecastDemo/Source/Sample_SoloMesh.cpp index fe1df543..6a35587c 100644 --- a/RecastDemo/Source/Sample_SoloMesh.cpp +++ b/RecastDemo/Source/Sample_SoloMesh.cpp @@ -336,9 +336,9 @@ void Sample_SoloMesh::renderOverlay(double* proj, double* model, int* view) renderOverlayToolStates(proj, model, view); } -void Sample_SoloMesh::handleMeshChanged(InputGeom* geom) +void Sample_SoloMesh::onMeshChanged(InputGeom* geom) { - Sample::handleMeshChanged(geom); + Sample::onMeshChanged(geom); dtFreeNavMesh(navMesh); navMesh = nullptr; diff --git a/RecastDemo/Source/Sample_TempObstacles.cpp b/RecastDemo/Source/Sample_TempObstacles.cpp index e662b1f9..14c08d30 100644 --- a/RecastDemo/Source/Sample_TempObstacles.cpp +++ b/RecastDemo/Source/Sample_TempObstacles.cpp @@ -1244,9 +1244,9 @@ void Sample_TempObstacles::renderOverlay(double* proj, double* model, int* view) */ } -void Sample_TempObstacles::handleMeshChanged(InputGeom* geom) +void Sample_TempObstacles::onMeshChanged(InputGeom* geom) { - Sample::handleMeshChanged(geom); + Sample::onMeshChanged(geom); dtFreeTileCache(tileCache); tileCache = 0; diff --git a/RecastDemo/Source/Sample_TileMesh.cpp b/RecastDemo/Source/Sample_TileMesh.cpp index 1c10f4ea..637f562c 100644 --- a/RecastDemo/Source/Sample_TileMesh.cpp +++ b/RecastDemo/Source/Sample_TileMesh.cpp @@ -563,9 +563,9 @@ void Sample_TileMesh::renderOverlay(double* proj, double* model, int* view) renderOverlayToolStates(proj, model, view); } -void Sample_TileMesh::handleMeshChanged(InputGeom* geom) +void Sample_TileMesh::onMeshChanged(InputGeom* geom) { - Sample::handleMeshChanged(geom); + Sample::onMeshChanged(geom); const BuildSettings* buildSettings = geom->getBuildSettings(); if (buildSettings && buildSettings->tileSize > 0) diff --git a/RecastDemo/Source/main.cpp b/RecastDemo/Source/main.cpp index 68cb5a7f..dd1487a6 100644 --- a/RecastDemo/Source/main.cpp +++ b/RecastDemo/Source/main.cpp @@ -737,7 +737,7 @@ int main(int /*argc*/, char** /*argv*/) app.sample->buildContext = &app.buildContext; if (app.inputGeometry) { - app.sample->handleMeshChanged(app.inputGeometry); + app.sample->onMeshChanged(app.inputGeometry); app.resetCamera(); } } @@ -767,7 +767,7 @@ int main(int /*argc*/, char** /*argv*/) app.resetCamera(); if (app.sample) { - app.sample->handleMeshChanged(app.inputGeometry); + app.sample->onMeshChanged(app.inputGeometry); } } @@ -858,7 +858,7 @@ int main(int /*argc*/, char** /*argv*/) { if (app.inputGeometry) { - app.sample->handleMeshChanged(app.inputGeometry); + app.sample->onMeshChanged(app.inputGeometry); } // This will ensure that tile & poly bits are updated in tiled sample.