Rename handleDebugMode to drawDebugUI

This commit is contained in:
Graham Pentheny
2025-08-05 13:48:40 -04:00
parent a68186daaf
commit 67e4ddfe34
9 changed files with 10 additions and 9 deletions

View File

@@ -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();

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -118,7 +118,7 @@ void Sample::handleSettings() {}
void Sample::handleTools() {}
void Sample::handleDebugMode() {}
void Sample::drawDebugUI() {}
void Sample::render()
{

View File

@@ -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))

View File

@@ -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];

View File

@@ -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))

View File

@@ -692,7 +692,7 @@ int main(int /*argc*/, char** /*argv*/)
}
ImGui::SeparatorText("Debug Settings");
app.sample->handleDebugMode();
app.sample->drawDebugUI();
}
ImGui::End();