mirror of
https://github.com/recastnavigation/recastnavigation.git
synced 2026-09-14 22:34:40 +00:00
Removed more unused matrix parameters
This commit is contained in:
@@ -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();
|
||||
};
|
||||
|
||||
@@ -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<float>(view[3]) - 10 - 350), ImGuiCond_Always); // Position in screen space
|
||||
ImGui::SetNextWindowPos(ImVec2(10, static_cast<float>(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");
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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.");
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user