From 8b7e275d79de7b0007d60428a5e949550564949e Mon Sep 17 00:00:00 2001 From: Graham Pentheny Date: Sun, 24 Aug 2025 15:21:06 -0400 Subject: [PATCH] Removed more unused matrix parameters --- RecastDemo/Include/Sample.h | 2 +- RecastDemo/Include/Sample_SoloMesh.h | 2 +- RecastDemo/Include/Sample_TempObstacles.h | 2 +- RecastDemo/Include/Sample_TileMesh.h | 2 +- RecastDemo/Source/Sample.cpp | 2 +- RecastDemo/Source/Sample_SoloMesh.cpp | 2 +- RecastDemo/Source/Sample_TempObstacles.cpp | 2 +- RecastDemo/Source/Sample_TileMesh.cpp | 2 +- RecastDemo/Source/main.cpp | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/RecastDemo/Include/Sample.h b/RecastDemo/Include/Sample.h index 1ba13f8f..30d3e28e 100644 --- a/RecastDemo/Include/Sample.h +++ b/RecastDemo/Include/Sample.h @@ -167,7 +167,7 @@ public: virtual void onToggle(); virtual void singleStep(); virtual void render(); - virtual void renderOverlay(double* proj, double* model, int* view); + virtual void renderOverlay(); virtual void onMeshChanged(InputGeom* geom); virtual bool build(); virtual void update(float dt); diff --git a/RecastDemo/Include/Sample_SoloMesh.h b/RecastDemo/Include/Sample_SoloMesh.h index 64709cbc..a9b686e0 100644 --- a/RecastDemo/Include/Sample_SoloMesh.h +++ b/RecastDemo/Include/Sample_SoloMesh.h @@ -75,7 +75,7 @@ public: void drawDebugUI() override; void render() override; - void renderOverlay(double* proj, double* model, int* view) override; + void renderOverlay() override; void onMeshChanged(InputGeom* geom) override; bool build() override; diff --git a/RecastDemo/Include/Sample_TempObstacles.h b/RecastDemo/Include/Sample_TempObstacles.h index 83be175b..f8b94778 100644 --- a/RecastDemo/Include/Sample_TempObstacles.h +++ b/RecastDemo/Include/Sample_TempObstacles.h @@ -72,7 +72,7 @@ public: void drawToolsUI() override; void drawDebugUI() override; void render() override; - void renderOverlay(double* proj, double* model, int* view) override; + void renderOverlay() 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 9540cdf6..bfb1d6b1 100644 --- a/RecastDemo/Include/Sample_TileMesh.h +++ b/RecastDemo/Include/Sample_TileMesh.h @@ -92,7 +92,7 @@ public: void drawToolsUI() override; void drawDebugUI() override; void render() override; - void renderOverlay(double* proj, double* model, int* view) override; + void renderOverlay() 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 cdd462ab..c4379b85 100644 --- a/RecastDemo/Source/Sample.cpp +++ b/RecastDemo/Source/Sample.cpp @@ -162,7 +162,7 @@ void Sample::render() 1.0f); } -void Sample::renderOverlay(double* /*proj*/, double* /*model*/, int* /*view*/) {} +void Sample::renderOverlay() {} void Sample::onMeshChanged(InputGeom* geom) { diff --git a/RecastDemo/Source/Sample_SoloMesh.cpp b/RecastDemo/Source/Sample_SoloMesh.cpp index c1e9b3af..871ccdde 100644 --- a/RecastDemo/Source/Sample_SoloMesh.cpp +++ b/RecastDemo/Source/Sample_SoloMesh.cpp @@ -327,7 +327,7 @@ void Sample_SoloMesh::render() glDepthMask(GL_TRUE); } -void Sample_SoloMesh::renderOverlay(double* proj, double* model, int* view) +void Sample_SoloMesh::renderOverlay() { if (tool) { diff --git a/RecastDemo/Source/Sample_TempObstacles.cpp b/RecastDemo/Source/Sample_TempObstacles.cpp index 2ebf0f45..969f4294 100644 --- a/RecastDemo/Source/Sample_TempObstacles.cpp +++ b/RecastDemo/Source/Sample_TempObstacles.cpp @@ -1180,7 +1180,7 @@ void Sample_TempObstacles::renderCachedTileOverlay(const int tileX, const int ti } } -void Sample_TempObstacles::renderOverlay(double* proj, double* model, int* view) +void Sample_TempObstacles::renderOverlay() { if (tool) { diff --git a/RecastDemo/Source/Sample_TileMesh.cpp b/RecastDemo/Source/Sample_TileMesh.cpp index 4a0c263a..f96692da 100644 --- a/RecastDemo/Source/Sample_TileMesh.cpp +++ b/RecastDemo/Source/Sample_TileMesh.cpp @@ -532,7 +532,7 @@ void Sample_TileMesh::render() glDepthMask(GL_TRUE); } -void Sample_TileMesh::renderOverlay(double* proj, double* model, int* view) +void Sample_TileMesh::renderOverlay() { // Draw start and end point labels if (tileBuildTime > 0.0f) diff --git a/RecastDemo/Source/main.cpp b/RecastDemo/Source/main.cpp index 95d62c1b..0745e186 100644 --- a/RecastDemo/Source/main.cpp +++ b/RecastDemo/Source/main.cpp @@ -421,7 +421,7 @@ int main(int /*argc*/, char** /*argv*/) if (app.sample) { - app.sample->renderOverlay(app.projectionMatrix, modelviewMatrix, app.viewport); + app.sample->renderOverlay(); } if (app.testCase) {