mirror of
https://github.com/recastnavigation/recastnavigation.git
synced 2026-10-31 13:05:54 +00:00
Clean up includes in cpp files
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
|
||||
#include "InputGeom.h"
|
||||
#include "Sample.h"
|
||||
#include "TestCase.h"
|
||||
|
||||
#include "SDL_opengl.h"
|
||||
|
||||
|
||||
@@ -19,16 +19,8 @@
|
||||
#include "InputGeom.h"
|
||||
|
||||
#include "PartitionedMesh.h"
|
||||
#include "DebugDraw.h"
|
||||
#include "SampleInterfaces.h"
|
||||
#include "Recast.h"
|
||||
#include "Sample.h"
|
||||
|
||||
#include <ctype.h>
|
||||
#include <math.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
namespace
|
||||
{
|
||||
|
||||
@@ -18,12 +18,6 @@
|
||||
|
||||
#include "PartitionedMesh.h"
|
||||
|
||||
#include <math.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
struct IndexedBounds
|
||||
{
|
||||
float bmin[2];
|
||||
|
||||
@@ -20,17 +20,12 @@
|
||||
|
||||
#include "DetourCrowd.h"
|
||||
#include "DetourDebugDraw.h"
|
||||
#include "DetourNavMesh.h"
|
||||
#include "DetourNavMeshQuery.h"
|
||||
#include "InputGeom.h"
|
||||
#include "Recast.h"
|
||||
#include "RecastDebugDraw.h"
|
||||
#include "imguiHelpers.h"
|
||||
|
||||
#include <imgui.h>
|
||||
|
||||
#include <cstdio>
|
||||
|
||||
const char* toolNames[] = {
|
||||
"None",
|
||||
"Create Tiles",
|
||||
|
||||
@@ -1,13 +1,7 @@
|
||||
#include "SampleInterfaces.h"
|
||||
|
||||
#include "PerfTimer.h"
|
||||
#include "Recast.h"
|
||||
#include "SDL_opengl.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <cstdarg>
|
||||
#include <cstdio>
|
||||
|
||||
#ifdef WIN32
|
||||
# define snprintf _snprintf
|
||||
# include <io.h>
|
||||
|
||||
@@ -19,14 +19,10 @@
|
||||
#include "Sample_SoloMesh.h"
|
||||
|
||||
#include "DetourDebugDraw.h"
|
||||
#include "DetourNavMesh.h"
|
||||
#include "DetourNavMeshBuilder.h"
|
||||
#include "InputGeom.h"
|
||||
#include "Recast.h"
|
||||
#include "RecastDebugDraw.h"
|
||||
#include "RecastDump.h"
|
||||
#include "SDL_opengl.h"
|
||||
#include "Sample.h"
|
||||
#include "Tool_ConvexVolume.h"
|
||||
#include "Tool_Crowd.h"
|
||||
#include "Tool_NavMeshPrune.h"
|
||||
@@ -35,9 +31,6 @@
|
||||
|
||||
#include <imgui.h>
|
||||
|
||||
#include <cmath>
|
||||
#include <cstring>
|
||||
|
||||
const char* Sample_SoloMesh::drawModeNames[]{
|
||||
"Input Mesh",
|
||||
"Navmesh",
|
||||
|
||||
@@ -18,26 +18,27 @@
|
||||
|
||||
#include "SDL_opengl.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
#include <cstdio>
|
||||
#include "PartitionedMesh.h"
|
||||
#include "DetourCommon.h"
|
||||
#include "DetourDebugDraw.h"
|
||||
#include "DetourNavMesh.h"
|
||||
#include "DetourNavMeshBuilder.h"
|
||||
#include "DetourTileCache.h"
|
||||
#include "InputGeom.h"
|
||||
#include "PartitionedMesh.h"
|
||||
#include "Recast.h"
|
||||
#include "RecastDebugDraw.h"
|
||||
#include "Sample.h"
|
||||
#include "Sample_TempObstacles.h"
|
||||
#include "fastlz.h"
|
||||
#include "imguiHelpers.h"
|
||||
#include "Tool_ConvexVolume.h"
|
||||
#include "Tool_Crowd.h"
|
||||
#include "Tool_NavMeshTester.h"
|
||||
#include "Tool_OffMeshConnection.h"
|
||||
#include "fastlz.h"
|
||||
#include "imguiHelpers.h"
|
||||
|
||||
#include <imgui.h>
|
||||
|
||||
#include <algorithm>
|
||||
#include <cfloat>
|
||||
|
||||
#ifdef WIN32
|
||||
# define snprintf _snprintf
|
||||
|
||||
@@ -18,25 +18,19 @@
|
||||
|
||||
#include "Sample_TileMesh.h"
|
||||
|
||||
#include "SDL_opengl.h"
|
||||
#include "imguiHelpers.h"
|
||||
|
||||
#include <cmath>
|
||||
#include <cstdio>
|
||||
#include <cstring>
|
||||
#include "PartitionedMesh.h"
|
||||
#include "DetourDebugDraw.h"
|
||||
#include "DetourNavMesh.h"
|
||||
#include "DetourNavMeshBuilder.h"
|
||||
#include "InputGeom.h"
|
||||
#include "Recast.h"
|
||||
#include "PartitionedMesh.h"
|
||||
#include "RecastDebugDraw.h"
|
||||
#include "Sample.h"
|
||||
#include "SDL_opengl.h"
|
||||
#include "Tool_ConvexVolume.h"
|
||||
#include "Tool_Crowd.h"
|
||||
#include "Tool_NavMeshPrune.h"
|
||||
#include "Tool_NavMeshTester.h"
|
||||
#include "Tool_OffMeshConnection.h"
|
||||
#include "imguiHelpers.h"
|
||||
|
||||
#include <imgui.h>
|
||||
|
||||
|
||||
@@ -19,18 +19,11 @@
|
||||
#include "TestCase.h"
|
||||
|
||||
#include "DetourCommon.h"
|
||||
#include "DetourNavMesh.h"
|
||||
#include "DetourNavMeshQuery.h"
|
||||
#include "SDL_opengl.h"
|
||||
#include "SampleInterfaces.h"
|
||||
#include "imguiHelpers.h"
|
||||
|
||||
#include <ctype.h>
|
||||
#include <math.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "PerfTimer.h"
|
||||
|
||||
#include <imgui.h>
|
||||
|
||||
#ifdef WIN32
|
||||
|
||||
@@ -19,14 +19,10 @@
|
||||
#include "Tool_ConvexVolume.h"
|
||||
|
||||
#include "InputGeom.h"
|
||||
#include "Recast.h"
|
||||
#include "Sample.h"
|
||||
#include "imguiHelpers.h"
|
||||
|
||||
#include <imgui.h>
|
||||
|
||||
#include <cfloat>
|
||||
|
||||
namespace {
|
||||
/// Returns true if 'c' is left of line 'a'-'b'.
|
||||
inline bool left(const float* a, const float* b, const float* c)
|
||||
|
||||
@@ -18,19 +18,14 @@
|
||||
|
||||
#include "Tool_Crowd.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <cfloat>
|
||||
#include <cmath>
|
||||
#include <cstdio>
|
||||
#include "DetourCommon.h"
|
||||
#include "DetourCrowd.h"
|
||||
#include "DetourDebugDraw.h"
|
||||
#include "DetourNode.h"
|
||||
#include "DetourObstacleAvoidance.h"
|
||||
#include "InputGeom.h"
|
||||
#include "Sample.h"
|
||||
#include "Recast.h"
|
||||
#include "imguiHelpers.h"
|
||||
|
||||
#include <imgui.h>
|
||||
|
||||
#ifdef WIN32
|
||||
# define snprintf _snprintf
|
||||
#endif
|
||||
|
||||
@@ -21,14 +21,10 @@
|
||||
#include "DetourCommon.h"
|
||||
#include "DetourDebugDraw.h"
|
||||
#include "DetourNavMesh.h"
|
||||
#include "InputGeom.h"
|
||||
#include "Sample.h"
|
||||
#include "imguiHelpers.h"
|
||||
|
||||
#include <imgui.h>
|
||||
|
||||
#include <vector>
|
||||
|
||||
namespace
|
||||
{
|
||||
void floodNavmesh(const dtNavMesh* navmesh, NavmeshFlags* flags, const dtPolyRef start, const unsigned char flag)
|
||||
|
||||
@@ -20,18 +20,13 @@
|
||||
|
||||
#include "DetourCommon.h"
|
||||
#include "DetourDebugDraw.h"
|
||||
#include "DetourNavMesh.h"
|
||||
#include "DetourPathCorridor.h"
|
||||
#include "SDL_opengl.h"
|
||||
#include "Sample.h"
|
||||
#include "imguiHelpers.h"
|
||||
|
||||
#include <imgui.h>
|
||||
|
||||
#include <cstdlib>
|
||||
|
||||
// Uncomment this to dump all the requests in stdout.
|
||||
#define DUMP_REQS
|
||||
//#define DUMP_REQS
|
||||
|
||||
namespace
|
||||
{
|
||||
|
||||
@@ -20,15 +20,10 @@
|
||||
|
||||
#include "DetourDebugDraw.h"
|
||||
#include "InputGeom.h"
|
||||
#include "Recast.h"
|
||||
#include "Sample.h"
|
||||
#include "imguiHelpers.h"
|
||||
|
||||
#include <imgui.h>
|
||||
|
||||
#include <cfloat>
|
||||
#include <cmath>
|
||||
|
||||
void OffMeshConnectionTool::init(Sample* newSample)
|
||||
{
|
||||
if (sample == newSample)
|
||||
|
||||
@@ -1,11 +1,5 @@
|
||||
#include "ValueHistory.h"
|
||||
|
||||
#include <imgui.h>
|
||||
|
||||
#include <algorithm>
|
||||
#include <cstdio>
|
||||
#include <cstring>
|
||||
|
||||
#ifdef WIN32
|
||||
# define snprintf _snprintf
|
||||
#endif
|
||||
|
||||
+10
-14
@@ -17,32 +17,28 @@
|
||||
//
|
||||
|
||||
#include "AppData.h"
|
||||
#include "InputGeom.h"
|
||||
#include "SDL.h"
|
||||
#include "SDL_keycode.h"
|
||||
#include "SDL_opengl.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <cstdio>
|
||||
#include <functional>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#ifdef __APPLE__
|
||||
# include <OpenGL/glu.h>
|
||||
#else
|
||||
# include <GL/glu.h>
|
||||
#endif
|
||||
|
||||
#include "InputGeom.h"
|
||||
#include "Recast.h"
|
||||
#include "Sample.h"
|
||||
#include "Sample_SoloMesh.h"
|
||||
#include "Sample_TempObstacles.h"
|
||||
#include "Sample_TileMesh.h"
|
||||
#include "TestCase.h"
|
||||
#include "imguiHelpers.h"
|
||||
|
||||
#include <functional>
|
||||
#include <string>
|
||||
|
||||
#include <imgui.h>
|
||||
#include <imgui_impl_opengl2.h>
|
||||
#include <imgui_impl_sdl2.h>
|
||||
#ifdef __APPLE__
|
||||
# include <OpenGL/glu.h>
|
||||
#else
|
||||
# include <GL/glu.h>
|
||||
#endif
|
||||
|
||||
struct SampleItem
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user