diff --git a/RecastDemo/Include/Sample.h b/RecastDemo/Include/Sample.h index 97b0d47f..edb750ec 100644 --- a/RecastDemo/Include/Sample.h +++ b/RecastDemo/Include/Sample.h @@ -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(); diff --git a/RecastDemo/Include/Sample_SoloMesh.h b/RecastDemo/Include/Sample_SoloMesh.h index 1c678d4e..b81ada6c 100644 --- a/RecastDemo/Include/Sample_SoloMesh.h +++ b/RecastDemo/Include/Sample_SoloMesh.h @@ -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; diff --git a/RecastDemo/Include/Sample_TempObstacles.h b/RecastDemo/Include/Sample_TempObstacles.h index 798cdd5a..913ce912 100644 --- a/RecastDemo/Include/Sample_TempObstacles.h +++ b/RecastDemo/Include/Sample_TempObstacles.h @@ -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; diff --git a/RecastDemo/Include/Sample_TileMesh.h b/RecastDemo/Include/Sample_TileMesh.h index 1d9cdce0..dfe81ffe 100644 --- a/RecastDemo/Include/Sample_TileMesh.h +++ b/RecastDemo/Include/Sample_TileMesh.h @@ -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; diff --git a/RecastDemo/Source/Sample.cpp b/RecastDemo/Source/Sample.cpp index 5093a1ae..f6277b89 100644 --- a/RecastDemo/Source/Sample.cpp +++ b/RecastDemo/Source/Sample.cpp @@ -118,7 +118,7 @@ void Sample::handleSettings() {} void Sample::handleTools() {} -void Sample::handleDebugMode() {} +void Sample::drawDebugUI() {} void Sample::render() { diff --git a/RecastDemo/Source/Sample_SoloMesh.cpp b/RecastDemo/Source/Sample_SoloMesh.cpp index 6a35587c..0d0a0411 100644 --- a/RecastDemo/Source/Sample_SoloMesh.cpp +++ b/RecastDemo/Source/Sample_SoloMesh.cpp @@ -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(currentDrawMode)], 0)) diff --git a/RecastDemo/Source/Sample_TempObstacles.cpp b/RecastDemo/Source/Sample_TempObstacles.cpp index 14c08d30..f8c00732 100644 --- a/RecastDemo/Source/Sample_TempObstacles.cpp +++ b/RecastDemo/Source/Sample_TempObstacles.cpp @@ -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]; diff --git a/RecastDemo/Source/Sample_TileMesh.cpp b/RecastDemo/Source/Sample_TileMesh.cpp index 637f562c..3213d366 100644 --- a/RecastDemo/Source/Sample_TileMesh.cpp +++ b/RecastDemo/Source/Sample_TileMesh.cpp @@ -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(this->drawMode)], 0)) diff --git a/RecastDemo/Source/main.cpp b/RecastDemo/Source/main.cpp index 06540b56..c90f7c88 100644 --- a/RecastDemo/Source/main.cpp +++ b/RecastDemo/Source/main.cpp @@ -692,7 +692,7 @@ int main(int /*argc*/, char** /*argv*/) } ImGui::SeparatorText("Debug Settings"); - app.sample->handleDebugMode(); + app.sample->drawDebugUI(); } ImGui::End();