mirror of
https://github.com/recastnavigation/recastnavigation.git
synced 2026-10-25 10:11:12 +00:00
Rename handleDebugMode to drawDebugUI
This commit is contained in:
@@ -166,7 +166,8 @@ public:
|
||||
|
||||
virtual void handleSettings();
|
||||
virtual void handleTools();
|
||||
virtual void handleDebugMode();
|
||||
virtual void drawDebugUI();
|
||||
|
||||
virtual void onClick(const float* rayStartPos, const float* rayHitPos, bool shift);
|
||||
virtual void handleToggle();
|
||||
virtual void singleStep();
|
||||
|
||||
@@ -72,7 +72,7 @@ public:
|
||||
|
||||
void handleSettings() override;
|
||||
void handleTools() override;
|
||||
void handleDebugMode() override;
|
||||
void drawDebugUI() override;
|
||||
|
||||
void render() override;
|
||||
void renderOverlay(double* proj, double* model, int* view) override;
|
||||
|
||||
@@ -70,7 +70,7 @@ public:
|
||||
|
||||
void handleSettings() override;
|
||||
void handleTools() override;
|
||||
void handleDebugMode() override;
|
||||
void drawDebugUI() override;
|
||||
void render() override;
|
||||
void renderOverlay(double* proj, double* model, int* view) override;
|
||||
void onMeshChanged(InputGeom* geom) override;
|
||||
|
||||
@@ -90,7 +90,7 @@ public:
|
||||
// Sample methods
|
||||
void handleSettings() override;
|
||||
void handleTools() override;
|
||||
void handleDebugMode() override;
|
||||
void drawDebugUI() override;
|
||||
void render() override;
|
||||
void renderOverlay(double* proj, double* model, int* view) override;
|
||||
void onMeshChanged(InputGeom* geom) override;
|
||||
|
||||
@@ -118,7 +118,7 @@ void Sample::handleSettings() {}
|
||||
|
||||
void Sample::handleTools() {}
|
||||
|
||||
void Sample::handleDebugMode() {}
|
||||
void Sample::drawDebugUI() {}
|
||||
|
||||
void Sample::render()
|
||||
{
|
||||
|
||||
@@ -156,7 +156,7 @@ void Sample_SoloMesh::UI_DrawModeOption(const DrawMode drawMode, const bool enab
|
||||
ImGui::EndDisabled();
|
||||
}
|
||||
|
||||
void Sample_SoloMesh::handleDebugMode()
|
||||
void Sample_SoloMesh::drawDebugUI()
|
||||
{
|
||||
ImGui::Text("Draw");
|
||||
if (ImGui::BeginCombo("##drawMode", drawModeNames[static_cast<int>(currentDrawMode)], 0))
|
||||
|
||||
@@ -1016,7 +1016,7 @@ void Sample_TempObstacles::handleTools()
|
||||
}
|
||||
}
|
||||
|
||||
void Sample_TempObstacles::handleDebugMode()
|
||||
void Sample_TempObstacles::drawDebugUI()
|
||||
{
|
||||
// Check which modes are valid.
|
||||
bool valid[MAX_DRAWMODE];
|
||||
|
||||
@@ -333,7 +333,7 @@ void Sample_TileMesh::UI_DrawModeOption(DrawMode drawMode, bool enabled)
|
||||
ImGui::EndDisabled();
|
||||
}
|
||||
|
||||
void Sample_TileMesh::handleDebugMode()
|
||||
void Sample_TileMesh::drawDebugUI()
|
||||
{
|
||||
ImGui::Text("Draw");
|
||||
if (ImGui::BeginCombo("##drawMode", drawModeNames[static_cast<int>(this->drawMode)], 0))
|
||||
|
||||
@@ -692,7 +692,7 @@ int main(int /*argc*/, char** /*argv*/)
|
||||
}
|
||||
|
||||
ImGui::SeparatorText("Debug Settings");
|
||||
app.sample->handleDebugMode();
|
||||
app.sample->drawDebugUI();
|
||||
}
|
||||
|
||||
ImGui::End();
|
||||
|
||||
Reference in New Issue
Block a user