From dc9bdbe5a1769424ebf88728360df963ab5e8ede Mon Sep 17 00:00:00 2001 From: Graham Pentheny Date: Sun, 24 Aug 2025 15:23:21 -0400 Subject: [PATCH] Removed more unused matrix parameters --- RecastDemo/Include/TestCase.h | 2 +- RecastDemo/Source/TestCase.cpp | 4 ++-- RecastDemo/Source/Tool_ConvexVolume.cpp | 2 +- RecastDemo/Source/Tool_NavMeshPrune.cpp | 2 +- RecastDemo/Source/main.cpp | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/RecastDemo/Include/TestCase.h b/RecastDemo/Include/TestCase.h index 5191416b..5999d783 100644 --- a/RecastDemo/Include/TestCase.h +++ b/RecastDemo/Include/TestCase.h @@ -65,5 +65,5 @@ public: void doTests(class dtNavMesh* navmesh, class dtNavMeshQuery* navquery); void render(); - bool renderOverlay(double* proj, double* model, int* view); + bool renderOverlay(); }; diff --git a/RecastDemo/Source/TestCase.cpp b/RecastDemo/Source/TestCase.cpp index df6af4d2..e1e68faa 100644 --- a/RecastDemo/Source/TestCase.cpp +++ b/RecastDemo/Source/TestCase.cpp @@ -391,7 +391,7 @@ void TestCase::render() glLineWidth(1.0f); } -bool TestCase::renderOverlay(double* proj, double* model, int* view) +bool TestCase::renderOverlay() { char text[64]; int n = 0; @@ -428,7 +428,7 @@ bool TestCase::renderOverlay(double* proj, double* model, int* view) n++; } - ImGui::SetNextWindowPos(ImVec2(10, static_cast(view[3]) - 10 - 350), ImGuiCond_Always); // Position in screen space + ImGui::SetNextWindowPos(ImVec2(10, static_cast(app.viewport[3]) - 10 - 350), ImGuiCond_Always); // Position in screen space ImGui::SetNextWindowSize(ImVec2(200, 350), ImGuiCond_Always); // Size of the window ImGui::Begin("Test Results"); diff --git a/RecastDemo/Source/Tool_ConvexVolume.cpp b/RecastDemo/Source/Tool_ConvexVolume.cpp index bfc278e0..dea4f517 100644 --- a/RecastDemo/Source/Tool_ConvexVolume.cpp +++ b/RecastDemo/Source/Tool_ConvexVolume.cpp @@ -293,7 +293,7 @@ void ConvexVolumeTool::render() dd.end(); } -void ConvexVolumeTool::drawOverlayUI(double* /*proj*/, double* /*model*/, int* /*view*/) +void ConvexVolumeTool::drawOverlayUI() { // Tool help if (!numPoints) diff --git a/RecastDemo/Source/Tool_NavMeshPrune.cpp b/RecastDemo/Source/Tool_NavMeshPrune.cpp index 284142e4..da88f37a 100644 --- a/RecastDemo/Source/Tool_NavMeshPrune.cpp +++ b/RecastDemo/Source/Tool_NavMeshPrune.cpp @@ -281,7 +281,7 @@ void NavMeshPruneTool::render() } } -void NavMeshPruneTool::drawOverlayUI(double* /*proj*/, double* /*model*/, int* /*view*/) +void NavMeshPruneTool::drawOverlayUI() { DrawScreenspaceText(280.0f, 40.0f, IM_COL32(255, 255, 255, 192), "LMB: Click fill area."); } diff --git a/RecastDemo/Source/main.cpp b/RecastDemo/Source/main.cpp index fcd762ca..afb1001a 100644 --- a/RecastDemo/Source/main.cpp +++ b/RecastDemo/Source/main.cpp @@ -425,7 +425,7 @@ int main(int /*argc*/, char** /*argv*/) } if (app.testCase) { - app.testCase->renderOverlay(app.projectionMatrix, modelviewMatrix, app.viewport); + app.testCase->renderOverlay(); } bool newMeshSelected = false;