diff --git a/RecastDemo/Include/NavmeshPruneTool.h b/RecastDemo/Include/NavMeshPruneTool.h similarity index 94% rename from RecastDemo/Include/NavmeshPruneTool.h rename to RecastDemo/Include/NavMeshPruneTool.h index 00697d9..7d24620 100644 --- a/RecastDemo/Include/NavmeshPruneTool.h +++ b/RecastDemo/Include/NavMeshPruneTool.h @@ -23,7 +23,7 @@ // Prune navmesh to accessible locations from a point. -class NavmeshPruneTool : public SampleTool +class NavMeshPruneTool : public SampleTool { Sample* m_sample; @@ -33,8 +33,8 @@ class NavmeshPruneTool : public SampleTool bool m_hitPosSet; public: - NavmeshPruneTool(); - ~NavmeshPruneTool(); + NavMeshPruneTool(); + ~NavMeshPruneTool(); virtual int type() { return TOOL_NAVMESH_PRUNE; } virtual void init(Sample* sample); diff --git a/RecastDemo/Source/NavmeshPruneTool.cpp b/RecastDemo/Source/NavMeshPruneTool.cpp similarity index 93% rename from RecastDemo/Source/NavmeshPruneTool.cpp rename to RecastDemo/Source/NavMeshPruneTool.cpp index 45a9112..36e8e1a 100644 --- a/RecastDemo/Source/NavmeshPruneTool.cpp +++ b/RecastDemo/Source/NavMeshPruneTool.cpp @@ -24,7 +24,7 @@ #include "SDL.h" #include "SDL_opengl.h" #include "imgui.h" -#include "NavmeshPruneTool.h" +#include "NavMeshPruneTool.h" #include "InputGeom.h" #include "Sample.h" #include "DetourNavMesh.h" @@ -219,30 +219,30 @@ static void disableUnvisitedPolys(dtNavMesh* nav, NavmeshFlags* flags) } } -NavmeshPruneTool::NavmeshPruneTool() : +NavMeshPruneTool::NavMeshPruneTool() : m_flags(0), m_hitPosSet(false) { } -NavmeshPruneTool::~NavmeshPruneTool() +NavMeshPruneTool::~NavMeshPruneTool() { delete m_flags; } -void NavmeshPruneTool::init(Sample* sample) +void NavMeshPruneTool::init(Sample* sample) { m_sample = sample; } -void NavmeshPruneTool::reset() +void NavMeshPruneTool::reset() { m_hitPosSet = false; delete m_flags; m_flags = 0; } -void NavmeshPruneTool::handleMenu() +void NavMeshPruneTool::handleMenu() { dtNavMesh* nav = m_sample->getNavMesh(); if (!nav) return; @@ -261,7 +261,7 @@ void NavmeshPruneTool::handleMenu() } } -void NavmeshPruneTool::handleClick(const float* /*s*/, const float* p, bool shift) +void NavMeshPruneTool::handleClick(const float* /*s*/, const float* p, bool shift) { if (!m_sample) return; InputGeom* geom = m_sample->getInputGeom(); @@ -288,19 +288,19 @@ void NavmeshPruneTool::handleClick(const float* /*s*/, const float* p, bool shif floodNavmesh(nav, m_flags, ref, 1); } -void NavmeshPruneTool::handleToggle() +void NavMeshPruneTool::handleToggle() { } -void NavmeshPruneTool::handleStep() +void NavMeshPruneTool::handleStep() { } -void NavmeshPruneTool::handleUpdate(const float /*dt*/) +void NavMeshPruneTool::handleUpdate(const float /*dt*/) { } -void NavmeshPruneTool::handleRender() +void NavMeshPruneTool::handleRender() { DebugDrawGL dd; @@ -339,7 +339,7 @@ void NavmeshPruneTool::handleRender() } -void NavmeshPruneTool::handleRenderOverlay(double* proj, double* model, int* view) +void NavMeshPruneTool::handleRenderOverlay(double* proj, double* model, int* view) { // Tool help const int h = view[3]; diff --git a/RecastDemo/Source/Sample_SoloMesh.cpp b/RecastDemo/Source/Sample_SoloMesh.cpp index 8f3a8bb..db21d92 100644 --- a/RecastDemo/Source/Sample_SoloMesh.cpp +++ b/RecastDemo/Source/Sample_SoloMesh.cpp @@ -33,7 +33,7 @@ #include "DetourNavMeshBuilder.h" #include "DetourDebugDraw.h" #include "NavMeshTesterTool.h" -#include "NavmeshPruneTool.h" +#include "NavMeshPruneTool.h" #include "OffMeshConnectionTool.h" #include "ConvexVolumeTool.h" #include "CrowdTool.h" @@ -106,7 +106,7 @@ void Sample_SoloMesh::handleTools() } if (imguiCheck("Prune Navmesh", type == TOOL_NAVMESH_PRUNE)) { - setTool(new NavmeshPruneTool); + setTool(new NavMeshPruneTool); } if (imguiCheck("Create Off-Mesh Connections", type == TOOL_OFFMESH_CONNECTION)) { diff --git a/RecastDemo/Source/Sample_TileMesh.cpp b/RecastDemo/Source/Sample_TileMesh.cpp index f6d300e..7a2ab7d 100644 --- a/RecastDemo/Source/Sample_TileMesh.cpp +++ b/RecastDemo/Source/Sample_TileMesh.cpp @@ -415,7 +415,7 @@ void Sample_TileMesh::handleTools() } if (imguiCheck("Prune Navmesh", type == TOOL_NAVMESH_PRUNE)) { - setTool(new NavmeshPruneTool); + setTool(new NavMeshPruneTool); } if (imguiCheck("Create Tiles", type == TOOL_TILE_EDIT)) {