mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Increase compile performance even more for NavMesh Editor
Cleaned up redundant includes Reordered required ones
This commit is contained in:
parent
b3f064d009
commit
3cf36b5d61
@ -16,7 +16,7 @@
|
|||||||
// 3. This notice may not be removed or altered from any source distribution.
|
// 3. This notice may not be removed or altered from any source distribution.
|
||||||
//
|
//
|
||||||
|
|
||||||
#include "NavEditor/Include/Pch.h"
|
#include "Pch.h"
|
||||||
#include "NavEditor/Include/ChunkyTriMesh.h"
|
#include "NavEditor/Include/ChunkyTriMesh.h"
|
||||||
|
|
||||||
struct BoundsItem
|
struct BoundsItem
|
||||||
|
@ -16,17 +16,13 @@
|
|||||||
// 3. This notice may not be removed or altered from any source distribution.
|
// 3. This notice may not be removed or altered from any source distribution.
|
||||||
//
|
//
|
||||||
|
|
||||||
#include "NavEditor/Include/Pch.h"
|
#include "Pch.h"
|
||||||
|
#include "Recast/Include/Recast.h"
|
||||||
|
#include "DebugUtils/Include/DetourDebugDraw.h"
|
||||||
|
#include "DebugUtils/Include/RecastDebugDraw.h"
|
||||||
#include "NavEditor/Include/ConvexVolumeTool.h"
|
#include "NavEditor/Include/ConvexVolumeTool.h"
|
||||||
#include "NavEditor/Include/InputGeom.h"
|
#include "NavEditor/Include/InputGeom.h"
|
||||||
#include "NavEditor/Include/Sample.h"
|
#include "NavEditor/Include/Sample.h"
|
||||||
#include "Recast/Include/Recast.h"
|
|
||||||
#include "DebugUtils/Include/RecastDebugDraw.h"
|
|
||||||
#include "DebugUtils/Include/DetourDebugDraw.h"
|
|
||||||
|
|
||||||
#ifdef WIN32
|
|
||||||
# define snprintf _snprintf
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// Quick and dirty convex hull.
|
// Quick and dirty convex hull.
|
||||||
|
|
||||||
|
@ -16,21 +16,17 @@
|
|||||||
// 3. This notice may not be removed or altered from any source distribution.
|
// 3. This notice may not be removed or altered from any source distribution.
|
||||||
//
|
//
|
||||||
|
|
||||||
#include "NavEditor/Include/Pch.h"
|
#include "Pch.h"
|
||||||
|
#include "Detour/Include/DetourCommon.h"
|
||||||
|
#include "Detour/Include/DetourNode.h"
|
||||||
|
#include "DetourCrowd/Include/DetourCrowd.h"
|
||||||
|
#include "DetourCrowd/Include/DetourObstacleAvoidance.h"
|
||||||
|
#include "DebugUtils/Include/DetourDebugDraw.h"
|
||||||
#include "NavEditor/Include/CrowdTool.h"
|
#include "NavEditor/Include/CrowdTool.h"
|
||||||
#include "NavEditor/Include/InputGeom.h"
|
#include "NavEditor/Include/InputGeom.h"
|
||||||
#include "NavEditor/Include/Sample.h"
|
#include "NavEditor/Include/Sample.h"
|
||||||
#include "DetourCrowd/Include/DetourCrowd.h"
|
|
||||||
#include "DebugUtils/Include/DetourDebugDraw.h"
|
|
||||||
#include "DetourCrowd/Include/DetourObstacleAvoidance.h"
|
|
||||||
#include "Detour/Include/DetourCommon.h"
|
|
||||||
#include "Detour/Include/DetourNode.h"
|
|
||||||
#include "NavEditor/Include/SampleInterfaces.h"
|
#include "NavEditor/Include/SampleInterfaces.h"
|
||||||
|
|
||||||
#ifdef WIN32
|
|
||||||
# define snprintf _snprintf
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static bool isectSegAABB(const float* sp, const float* sq,
|
static bool isectSegAABB(const float* sp, const float* sq,
|
||||||
const float* amin, const float* amax,
|
const float* amin, const float* amax,
|
||||||
float& tmin, float& tmax)
|
float& tmin, float& tmax)
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
// 3. This notice may not be removed or altered from any source distribution.
|
// 3. This notice may not be removed or altered from any source distribution.
|
||||||
//
|
//
|
||||||
|
|
||||||
#include "NavEditor/Include/Pch.h"
|
#include "Pch.h"
|
||||||
#include "NavEditor/Include/Filelist.h"
|
#include "NavEditor/Include/Filelist.h"
|
||||||
|
|
||||||
using std::vector;
|
using std::vector;
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
// 3. This notice may not be removed or altered from any source distribution.
|
// 3. This notice may not be removed or altered from any source distribution.
|
||||||
//
|
//
|
||||||
|
|
||||||
#include "NavEditor/Include/pch.h"
|
#include "Pch.h"
|
||||||
#include "Recast/Include/Recast.h"
|
#include "Recast/Include/Recast.h"
|
||||||
#include "NavEditor/Include/InputGeom.h"
|
#include "NavEditor/Include/InputGeom.h"
|
||||||
#include "NavEditor/Include/ChunkyTriMesh.h"
|
#include "NavEditor/Include/ChunkyTriMesh.h"
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
// 3. This notice may not be removed or altered from any source distribution.
|
// 3. This notice may not be removed or altered from any source distribution.
|
||||||
//
|
//
|
||||||
|
|
||||||
#include "NavEditor/Include/Pch.h"
|
#include "Pch.h"
|
||||||
#include "NavEditor/Include/MeshLoaderBsp.h"
|
#include "NavEditor/Include/MeshLoaderBsp.h"
|
||||||
|
|
||||||
bool rcMeshLoaderBsp::load(const std::string& filename)
|
bool rcMeshLoaderBsp::load(const std::string& filename)
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
// 3. This notice may not be removed or altered from any source distribution.
|
// 3. This notice may not be removed or altered from any source distribution.
|
||||||
//
|
//
|
||||||
|
|
||||||
#include "NavEditor/Include/Pch.h"
|
#include "Pch.h"
|
||||||
#include "NavEditor/Include/MeshLoaderObj.h"
|
#include "NavEditor/Include/MeshLoaderObj.h"
|
||||||
|
|
||||||
rcMeshLoaderObj::rcMeshLoaderObj() :
|
rcMeshLoaderObj::rcMeshLoaderObj() :
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
// 3. This notice may not be removed or altered from any source distribution.
|
// 3. This notice may not be removed or altered from any source distribution.
|
||||||
//
|
//
|
||||||
|
|
||||||
#include "NavEditor/Include/Pch.h"
|
#include "Pch.h"
|
||||||
#include "NavEditor/Include/MeshLoaderPly.h"
|
#include "NavEditor/Include/MeshLoaderPly.h"
|
||||||
|
|
||||||
bool rcMeshLoaderPly::load(const std::string& filename)
|
bool rcMeshLoaderPly::load(const std::string& filename)
|
||||||
|
@ -16,14 +16,14 @@
|
|||||||
// 3. This notice may not be removed or altered from any source distribution.
|
// 3. This notice may not be removed or altered from any source distribution.
|
||||||
//
|
//
|
||||||
|
|
||||||
#include "NavEditor/Include/Pch.h"
|
#include "Pch.h"
|
||||||
#include "NavEditor/Include/NavMeshPruneTool.h"
|
|
||||||
#include "NavEditor/Include/InputGeom.h"
|
|
||||||
#include "NavEditor/Include/Sample.h"
|
|
||||||
#include "Detour/Include/DetourNavMesh.h"
|
#include "Detour/Include/DetourNavMesh.h"
|
||||||
#include "Detour/Include/DetourCommon.h"
|
#include "Detour/Include/DetourCommon.h"
|
||||||
#include "Detour/Include/DetourAssert.h"
|
#include "Detour/Include/DetourAssert.h"
|
||||||
#include "DebugUtils/Include/DetourDebugDraw.h"
|
#include "DebugUtils/Include/DetourDebugDraw.h"
|
||||||
|
#include "NavEditor/Include/NavMeshPruneTool.h"
|
||||||
|
#include "NavEditor/Include/InputGeom.h"
|
||||||
|
#include "NavEditor/Include/Sample.h"
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
# define snprintf _snprintf
|
# define snprintf _snprintf
|
||||||
|
@ -16,19 +16,15 @@
|
|||||||
// 3. This notice may not be removed or altered from any source distribution.
|
// 3. This notice may not be removed or altered from any source distribution.
|
||||||
//
|
//
|
||||||
|
|
||||||
#include "NavEditor/Include/Pch.h"
|
#include "Pch.h"
|
||||||
#include "NavEditor/Include/NavMeshTesterTool.h"
|
|
||||||
#include "NavEditor/Include/Sample.h"
|
|
||||||
#include "Recast/Include/Recast.h"
|
#include "Recast/Include/Recast.h"
|
||||||
#include "DebugUtils/Include/RecastDebugDraw.h"
|
|
||||||
#include "Detour/Include/DetourNavMesh.h"
|
#include "Detour/Include/DetourNavMesh.h"
|
||||||
#include "Detour/Include/DetourNavMeshBuilder.h"
|
#include "Detour/Include/DetourNavMeshBuilder.h"
|
||||||
#include "DebugUtils/Include/DetourDebugDraw.h"
|
|
||||||
#include "Detour/Include/DetourCommon.h"
|
#include "Detour/Include/DetourCommon.h"
|
||||||
|
#include "DebugUtils/Include/DetourDebugDraw.h"
|
||||||
#ifdef WIN32
|
#include "DebugUtils/Include/RecastDebugDraw.h"
|
||||||
# define snprintf _snprintf
|
#include "NavEditor/Include/NavMeshTesterTool.h"
|
||||||
#endif
|
#include "NavEditor/Include/Sample.h"
|
||||||
|
|
||||||
// Uncomment this to dump all the requests in stdout.
|
// Uncomment this to dump all the requests in stdout.
|
||||||
#define DUMP_REQS
|
#define DUMP_REQS
|
||||||
|
@ -16,13 +16,13 @@
|
|||||||
// 3. This notice may not be removed or altered from any source distribution.
|
// 3. This notice may not be removed or altered from any source distribution.
|
||||||
//
|
//
|
||||||
|
|
||||||
#include "NavEditor/Include/Pch.h"
|
#include "Pch.h"
|
||||||
#include "NavEditor/Include/OffMeshConnectionTool.h"
|
|
||||||
#include "NavEditor/Include/InputGeom.h"
|
|
||||||
#include "NavEditor/Include/Sample.h"
|
|
||||||
#include "Recast/Include/Recast.h"
|
#include "Recast/Include/Recast.h"
|
||||||
#include "DebugUtils/Include/RecastDebugDraw.h"
|
#include "DebugUtils/Include/RecastDebugDraw.h"
|
||||||
#include "DebugUtils/Include/DetourDebugDraw.h"
|
#include "DebugUtils/Include/DetourDebugDraw.h"
|
||||||
|
#include "NavEditor/Include/OffMeshConnectionTool.h"
|
||||||
|
#include "NavEditor/Include/InputGeom.h"
|
||||||
|
#include "NavEditor/Include/Sample.h"
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
# define snprintf _snprintf
|
# define snprintf _snprintf
|
||||||
|
@ -1 +1,8 @@
|
|||||||
#include "NavEditor/Include/Pch.h"
|
// Pch.cpp : source file that includes just the standard includes
|
||||||
|
// *.pch will be the pre-compiled header
|
||||||
|
// Pch.obj will contain the pre-compiled type information
|
||||||
|
|
||||||
|
#include "Pch.h"
|
||||||
|
|
||||||
|
// TODO: reference any additional headers you need in PCH.H
|
||||||
|
// and not in this file
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
// 3. This notice may not be removed or altered from any source distribution.
|
// 3. This notice may not be removed or altered from any source distribution.
|
||||||
//
|
//
|
||||||
|
|
||||||
#include "NavEditor/Include/Pch.h"
|
#include "Pch.h"
|
||||||
#include "NavEditor/Include/PerfTimer.h"
|
#include "NavEditor/Include/PerfTimer.h"
|
||||||
|
|
||||||
#if defined(WIN32)
|
#if defined(WIN32)
|
||||||
|
@ -16,15 +16,15 @@
|
|||||||
// 3. This notice may not be removed or altered from any source distribution.
|
// 3. This notice may not be removed or altered from any source distribution.
|
||||||
//
|
//
|
||||||
|
|
||||||
#include "NavEditor/Include/Pch.h"
|
#include "Pch.h"
|
||||||
#include "NavEditor/Include/Sample.h"
|
|
||||||
#include "NavEditor/Include/InputGeom.h"
|
|
||||||
#include "Recast/Include/Recast.h"
|
#include "Recast/Include/Recast.h"
|
||||||
#include "DebugUtils/Include/RecastDebugDraw.h"
|
|
||||||
#include "DebugUtils/Include/DetourDebugDraw.h"
|
|
||||||
#include "Detour/Include/DetourNavMesh.h"
|
#include "Detour/Include/DetourNavMesh.h"
|
||||||
#include "Detour/Include/DetourNavMeshQuery.h"
|
#include "Detour/Include/DetourNavMeshQuery.h"
|
||||||
#include "DetourCrowd/Include/DetourCrowd.h"
|
#include "DetourCrowd/Include/DetourCrowd.h"
|
||||||
|
#include "DebugUtils/Include/RecastDebugDraw.h"
|
||||||
|
#include "DebugUtils/Include/DetourDebugDraw.h"
|
||||||
|
#include "NavEditor/Include/Sample.h"
|
||||||
|
#include "NavEditor/Include/InputGeom.h"
|
||||||
|
|
||||||
unsigned int SampleDebugDraw::areaToCol(unsigned int area)
|
unsigned int SampleDebugDraw::areaToCol(unsigned int area)
|
||||||
{
|
{
|
||||||
|
@ -1,14 +1,10 @@
|
|||||||
#include "NavEditor/Include/Pch.h"
|
#include "Pch.h"
|
||||||
#include "NavEditor/Include/SampleInterfaces.h"
|
|
||||||
#include "Recast/Include/Recast.h"
|
#include "Recast/Include/Recast.h"
|
||||||
#include "DebugUtils/Include/RecastDebugDraw.h"
|
#include "DebugUtils/Include/RecastDebugDraw.h"
|
||||||
#include "DebugUtils/Include/DetourDebugDraw.h"
|
#include "DebugUtils/Include/DetourDebugDraw.h"
|
||||||
|
#include "NavEditor/Include/SampleInterfaces.h"
|
||||||
#include "NavEditor/Include/PerfTimer.h"
|
#include "NavEditor/Include/PerfTimer.h"
|
||||||
|
|
||||||
#ifdef WIN32
|
|
||||||
# define snprintf _snprintf
|
|
||||||
#endif
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
BuildContext::BuildContext() :
|
BuildContext::BuildContext() :
|
||||||
|
@ -16,18 +16,14 @@
|
|||||||
// 3. This notice may not be removed or altered from any source distribution.
|
// 3. This notice may not be removed or altered from any source distribution.
|
||||||
//
|
//
|
||||||
|
|
||||||
#include "NavEditor/Include/Pch.h"
|
#include "Pch.h"
|
||||||
#include "NavEditor/Include/Sample_Debug.h"
|
|
||||||
#include "NavEditor/Include/InputGeom.h"
|
|
||||||
#include "Recast/Include/Recast.h"
|
#include "Recast/Include/Recast.h"
|
||||||
#include "Detour/Include/DetourNavMesh.h"
|
|
||||||
#include "DebugUtils/Include/RecastDebugDraw.h"
|
#include "DebugUtils/Include/RecastDebugDraw.h"
|
||||||
#include "DebugUtils/Include/DetourDebugDraw.h"
|
#include "DebugUtils/Include/DetourDebugDraw.h"
|
||||||
#include "DebugUtils/Include/RecastDump.h"
|
#include "DebugUtils/Include/RecastDump.h"
|
||||||
|
#include "Detour/Include/DetourNavMesh.h"
|
||||||
#ifdef WIN32
|
#include "NavEditor/Include/Sample_Debug.h"
|
||||||
# define snprintf _snprintf
|
#include "NavEditor/Include/InputGeom.h"
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
static int loadBin(const char* path, unsigned char** data)
|
static int loadBin(const char* path, unsigned char** data)
|
||||||
|
@ -16,25 +16,21 @@
|
|||||||
// 3. This notice may not be removed or altered from any source distribution.
|
// 3. This notice may not be removed or altered from any source distribution.
|
||||||
//
|
//
|
||||||
|
|
||||||
#include "NavEditor/Include/Pch.h"
|
#include "Pch.h"
|
||||||
#include "NavEditor/Include/InputGeom.h"
|
|
||||||
#include "NavEditor/Include/Sample.h"
|
|
||||||
#include "NavEditor/Include/Sample_SoloMesh.h"
|
|
||||||
#include "Recast/Include/Recast.h"
|
#include "Recast/Include/Recast.h"
|
||||||
#include "DebugUtils/Include/RecastDebugDraw.h"
|
|
||||||
#include "DebugUtils/Include/RecastDump.h"
|
|
||||||
#include "Detour/Include/DetourNavMesh.h"
|
#include "Detour/Include/DetourNavMesh.h"
|
||||||
#include "Detour/Include/DetourNavMeshBuilder.h"
|
#include "Detour/Include/DetourNavMeshBuilder.h"
|
||||||
|
#include "DebugUtils/Include/RecastDebugDraw.h"
|
||||||
#include "DebugUtils/Include/DetourDebugDraw.h"
|
#include "DebugUtils/Include/DetourDebugDraw.h"
|
||||||
|
#include "DebugUtils/Include/RecastDump.h"
|
||||||
#include "NavEditor/Include/NavMeshTesterTool.h"
|
#include "NavEditor/Include/NavMeshTesterTool.h"
|
||||||
#include "NavEditor/Include/NavMeshPruneTool.h"
|
#include "NavEditor/Include/NavMeshPruneTool.h"
|
||||||
#include "NavEditor/Include/OffMeshConnectionTool.h"
|
#include "NavEditor/Include/OffMeshConnectionTool.h"
|
||||||
#include "NavEditor/Include/ConvexVolumeTool.h"
|
#include "NavEditor/Include/ConvexVolumeTool.h"
|
||||||
#include "NavEditor/Include/CrowdTool.h"
|
#include "NavEditor/Include/CrowdTool.h"
|
||||||
|
#include "NavEditor/Include/InputGeom.h"
|
||||||
#ifdef WIN32
|
#include "NavEditor/Include/Sample.h"
|
||||||
# define snprintf _snprintf
|
#include "NavEditor/Include/Sample_SoloMesh.h"
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
Sample_SoloMesh::Sample_SoloMesh() :
|
Sample_SoloMesh::Sample_SoloMesh() :
|
||||||
|
@ -16,31 +16,26 @@
|
|||||||
// 3. This notice may not be removed or altered from any source distribution.
|
// 3. This notice may not be removed or altered from any source distribution.
|
||||||
//
|
//
|
||||||
|
|
||||||
#include "NavEditor/Include/Pch.h"
|
#include "Pch.h"
|
||||||
#include "NavEditor/Include/imgui.h"
|
|
||||||
#include "NavEditor/Include/InputGeom.h"
|
|
||||||
#include "NavEditor/Include/Sample.h"
|
|
||||||
#include "NavEditor/Include/Sample_TempObstacles.h"
|
|
||||||
#include "Recast/Include/Recast.h"
|
#include "Recast/Include/Recast.h"
|
||||||
#include "DebugUtils/Include/RecastDebugDraw.h"
|
#include "Recast/Include/RecastAlloc.h"
|
||||||
|
#include "Recast/Include/RecastAssert.h"
|
||||||
#include "Detour/Include/DetourAssert.h"
|
#include "Detour/Include/DetourAssert.h"
|
||||||
#include "Detour/Include/DetourNavMesh.h"
|
#include "Detour/Include/DetourNavMesh.h"
|
||||||
#include "Detour/Include/DetourNavMeshBuilder.h"
|
#include "Detour/Include/DetourNavMeshBuilder.h"
|
||||||
#include "DebugUtils/Include/DetourDebugDraw.h"
|
|
||||||
#include "Detour/Include/DetourCommon.h"
|
#include "Detour/Include/DetourCommon.h"
|
||||||
#include "DetourTileCache/Include/DetourTileCache.h"
|
#include "DetourTileCache/Include/DetourTileCache.h"
|
||||||
|
#include "DebugUtils/Include/RecastDebugDraw.h"
|
||||||
|
#include "DebugUtils/Include/DetourDebugDraw.h"
|
||||||
#include "NavEditor/Include/NavMeshTesterTool.h"
|
#include "NavEditor/Include/NavMeshTesterTool.h"
|
||||||
#include "NavEditor/Include/OffMeshConnectionTool.h"
|
#include "NavEditor/Include/OffMeshConnectionTool.h"
|
||||||
#include "NavEditor/Include/ConvexVolumeTool.h"
|
#include "NavEditor/Include/ConvexVolumeTool.h"
|
||||||
#include "NavEditor/Include/CrowdTool.h"
|
#include "NavEditor/Include/CrowdTool.h"
|
||||||
#include "Recast/Include/RecastAlloc.h"
|
#include "NavEditor/Include/InputGeom.h"
|
||||||
#include "Recast/Include/RecastAssert.h"
|
#include "NavEditor/Include/Sample.h"
|
||||||
|
#include "NavEditor/Include/Sample_TempObstacles.h"
|
||||||
#include "thirdparty/fastlz/fastlz.h"
|
#include "thirdparty/fastlz/fastlz.h"
|
||||||
|
|
||||||
#ifdef WIN32
|
|
||||||
# define snprintf _snprintf
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
// This value specifies how many layers (or "floors") each navmesh tile is expected to have.
|
// This value specifies how many layers (or "floors") each navmesh tile is expected to have.
|
||||||
static const int EXPECTED_LAYERS_PER_TILE = 4;
|
static const int EXPECTED_LAYERS_PER_TILE = 4;
|
||||||
|
@ -16,25 +16,20 @@
|
|||||||
// 3. This notice may not be removed or altered from any source distribution.
|
// 3. This notice may not be removed or altered from any source distribution.
|
||||||
//
|
//
|
||||||
|
|
||||||
#include "NavEditor/Include/Pch.h"
|
#include "Pch.h"
|
||||||
#include "NavEditor/Include/InputGeom.h"
|
|
||||||
#include "NavEditor/Include/Sample.h"
|
|
||||||
#include "NavEditor/Include/Sample_TileMesh.h"
|
|
||||||
#include "Recast/Include/Recast.h"
|
#include "Recast/Include/Recast.h"
|
||||||
#include "DebugUtils/Include/RecastDebugDraw.h"
|
|
||||||
#include "Detour/Include/DetourNavMesh.h"
|
#include "Detour/Include/DetourNavMesh.h"
|
||||||
#include "Detour/Include/DetourNavMeshBuilder.h"
|
#include "Detour/Include/DetourNavMeshBuilder.h"
|
||||||
|
#include "DebugUtils/Include/RecastDebugDraw.h"
|
||||||
#include "DebugUtils/Include/DetourDebugDraw.h"
|
#include "DebugUtils/Include/DetourDebugDraw.h"
|
||||||
#include "NavEditor/Include/NavMeshTesterTool.h"
|
#include "NavEditor/Include/NavMeshTesterTool.h"
|
||||||
#include "NavEditor/Include/NavMeshPruneTool.h"
|
#include "NavEditor/Include/NavMeshPruneTool.h"
|
||||||
#include "NavEditor/Include/OffMeshConnectionTool.h"
|
#include "NavEditor/Include/OffMeshConnectionTool.h"
|
||||||
#include "NavEditor/Include/ConvexVolumeTool.h"
|
#include "NavEditor/Include/ConvexVolumeTool.h"
|
||||||
#include "NavEditor/Include/CrowdTool.h"
|
#include "NavEditor/Include/CrowdTool.h"
|
||||||
|
#include "NavEditor/Include/InputGeom.h"
|
||||||
|
#include "NavEditor/Include/Sample.h"
|
||||||
#ifdef WIN32
|
#include "NavEditor/Include/Sample_TileMesh.h"
|
||||||
# define snprintf _snprintf
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
inline unsigned int nextPow2(unsigned int v)
|
inline unsigned int nextPow2(unsigned int v)
|
||||||
|
@ -16,20 +16,11 @@
|
|||||||
// 3. This notice may not be removed or altered from any source distribution.
|
// 3. This notice may not be removed or altered from any source distribution.
|
||||||
//
|
//
|
||||||
|
|
||||||
#include "NavEditor/Include/Pch.h"
|
#include "Pch.h"
|
||||||
#include "NavEditor/Include/TestCase.h"
|
#include "Detour/Include/DetourCommon.h"
|
||||||
#include "Detour/Include/DetourNavMesh.h"
|
#include "Detour/Include/DetourNavMesh.h"
|
||||||
#include "Detour/Include/DetourNavMeshQuery.h"
|
#include "Detour/Include/DetourNavMeshQuery.h"
|
||||||
#include "Detour/Include/DetourCommon.h"
|
#include "NavEditor/Include/TestCase.h"
|
||||||
|
|
||||||
#include "thirdparty/sdl/include/SDL.h"
|
|
||||||
#include "thirdparty/sdl/include/SDL_opengl.h"
|
|
||||||
//#ifdef __APPLE__
|
|
||||||
//# include <OpenGL/glu.h>
|
|
||||||
//#else
|
|
||||||
//# include <GL/glu.h>
|
|
||||||
//#endif
|
|
||||||
#include "NavEditor/Include/imgui.h"
|
|
||||||
#include "NavEditor/Include/PerfTimer.h"
|
#include "NavEditor/Include/PerfTimer.h"
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
#include "NavEditor/Include/Pch.h"
|
#include "Pch.h"
|
||||||
#include "NavEditor/Include/ValueHistory.h"
|
#include "NavEditor/Include/ValueHistory.h"
|
||||||
#include "NavEditor/Include/imgui.h"
|
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
# define snprintf _snprintf
|
# define snprintf _snprintf
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
// 3. This notice may not be removed or altered from any source distribution.
|
// 3. This notice may not be removed or altered from any source distribution.
|
||||||
//
|
//
|
||||||
|
|
||||||
#include "NavEditor/Include/Pch.h"
|
#include "Pch.h"
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
# define snprintf _snprintf
|
# define snprintf _snprintf
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
// 3. This notice may not be removed or altered from any source distribution.
|
// 3. This notice may not be removed or altered from any source distribution.
|
||||||
//
|
//
|
||||||
|
|
||||||
#include "NavEditor/Include/Pch.h"
|
#include "Pch.h"
|
||||||
|
|
||||||
// Some math headers don't have PI defined.
|
// Some math headers don't have PI defined.
|
||||||
static const float PI = 3.14159265f;
|
static const float PI = 3.14159265f;
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
#ifndef CONVEXVOLUMETOOL_H
|
#ifndef CONVEXVOLUMETOOL_H
|
||||||
#define CONVEXVOLUMETOOL_H
|
#define CONVEXVOLUMETOOL_H
|
||||||
|
|
||||||
#include "Sample.h"
|
#include "NavEditor/Include/Sample.h"
|
||||||
|
|
||||||
// Tool to create convex volumess for InputGeom
|
// Tool to create convex volumess for InputGeom
|
||||||
|
|
||||||
|
@ -19,11 +19,11 @@
|
|||||||
#ifndef CROWDTOOL_H
|
#ifndef CROWDTOOL_H
|
||||||
#define CROWDTOOL_H
|
#define CROWDTOOL_H
|
||||||
|
|
||||||
#include "NavEditor/Include/Sample.h"
|
|
||||||
#include "Detour/Include/DetourNavMesh.h"
|
#include "Detour/Include/DetourNavMesh.h"
|
||||||
#include "DetourCrowd/Include/DetourObstacleAvoidance.h"
|
#include "DetourCrowd/Include/DetourObstacleAvoidance.h"
|
||||||
#include "NavEditor/Include/ValueHistory.h"
|
|
||||||
#include "DetourCrowd/Include/DetourCrowd.h"
|
#include "DetourCrowd/Include/DetourCrowd.h"
|
||||||
|
#include "NavEditor/Include/ValueHistory.h"
|
||||||
|
#include "NavEditor/Include/Sample.h"
|
||||||
|
|
||||||
// Tool to create crowds.
|
// Tool to create crowds.
|
||||||
|
|
||||||
|
@ -19,9 +19,6 @@
|
|||||||
#ifndef FILELIST_H
|
#ifndef FILELIST_H
|
||||||
#define FILELIST_H
|
#define FILELIST_H
|
||||||
|
|
||||||
#include <vector>
|
|
||||||
#include <string>
|
|
||||||
|
|
||||||
void scanDirectoryAppend(const std::string& path, const std::string& ext, std::vector<std::string>& fileList);
|
void scanDirectoryAppend(const std::string& path, const std::string& ext, std::vector<std::string>& fileList);
|
||||||
void scanDirectory(const std::string& path, const std::string& ext, std::vector<std::string>& fileList);
|
void scanDirectory(const std::string& path, const std::string& ext, std::vector<std::string>& fileList);
|
||||||
|
|
||||||
|
@ -15,7 +15,8 @@
|
|||||||
// misrepresented as being the original software.
|
// misrepresented as being the original software.
|
||||||
// 3. This notice may not be removed or altered from any source distribution.
|
// 3. This notice may not be removed or altered from any source distribution.
|
||||||
//
|
//
|
||||||
#pragma once
|
#ifndef MESHLOADER_BSP
|
||||||
|
#define MESHLOADER_BSP
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
@ -49,3 +50,5 @@ private:
|
|||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#endif // MESHLOADER_BSP
|
||||||
|
@ -15,10 +15,9 @@
|
|||||||
// misrepresented as being the original software.
|
// misrepresented as being the original software.
|
||||||
// 3. This notice may not be removed or altered from any source distribution.
|
// 3. This notice may not be removed or altered from any source distribution.
|
||||||
//
|
//
|
||||||
#pragma once
|
#ifndef MESHLOADER_PLY
|
||||||
|
#define MESHLOADER_PLY
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
#include <NavEditor/Include/MeshLoaderObj.h>
|
#include <NavEditor/Include/MeshLoaderObj.h>
|
||||||
|
|
||||||
class rcMeshLoaderPly:public IMeshLoader
|
class rcMeshLoaderPly:public IMeshLoader
|
||||||
@ -48,3 +47,5 @@ private:
|
|||||||
int m_vertCount = 0;
|
int m_vertCount = 0;
|
||||||
int m_triCount = 0;
|
int m_triCount = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#endif // MESHLOADER_PLY
|
||||||
|
@ -19,9 +19,9 @@
|
|||||||
#ifndef NAVMESHTESTERTOOL_H
|
#ifndef NAVMESHTESTERTOOL_H
|
||||||
#define NAVMESHTESTERTOOL_H
|
#define NAVMESHTESTERTOOL_H
|
||||||
|
|
||||||
#include "NavEditor/Include/Sample.h"
|
|
||||||
#include "Detour/Include/DetourNavMesh.h"
|
#include "Detour/Include/DetourNavMesh.h"
|
||||||
#include "Detour/Include/DetourNavMeshQuery.h"
|
#include "Detour/Include/DetourNavMeshQuery.h"
|
||||||
|
#include "NavEditor/Include/Sample.h"
|
||||||
|
|
||||||
class NavMeshTesterTool : public SampleTool
|
class NavMeshTesterTool : public SampleTool
|
||||||
{
|
{
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
#ifndef DTPCH_H
|
||||||
|
#define DTPCH_H
|
||||||
|
|
||||||
#define _USE_MATH_DEFINES
|
#define _USE_MATH_DEFINES
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
@ -11,7 +13,7 @@
|
|||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
# include <io.h>
|
# include <io.h>
|
||||||
#else
|
#else // Linux, BSD, OSX
|
||||||
# include <dirent.h>
|
# include <dirent.h>
|
||||||
# include <cstring>
|
# include <cstring>
|
||||||
#endif
|
#endif
|
||||||
@ -40,4 +42,6 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "NavEditor/Include/imgui.h"
|
#include "NavEditor/Include/imgui.h"
|
||||||
#include "NavEditor/Include/imguiRenderGL.h"
|
#include "NavEditor/Include/imguiRenderGL.h"
|
||||||
|
|
||||||
|
#endif // DTPCH_H
|
||||||
|
@ -21,7 +21,6 @@
|
|||||||
|
|
||||||
#include "Recast/Include/Recast.h"
|
#include "Recast/Include/Recast.h"
|
||||||
#include "NavEditor/Include/SampleInterfaces.h"
|
#include "NavEditor/Include/SampleInterfaces.h"
|
||||||
#include <string>
|
|
||||||
|
|
||||||
struct hulldef
|
struct hulldef
|
||||||
{
|
{
|
||||||
|
@ -20,8 +20,8 @@
|
|||||||
#define SAMPLEINTERFACES_H
|
#define SAMPLEINTERFACES_H
|
||||||
|
|
||||||
#include "DebugUtils/Include/DebugDraw.h"
|
#include "DebugUtils/Include/DebugDraw.h"
|
||||||
#include "Recast/Include/Recast.h"
|
|
||||||
#include "DebugUtils/Include/RecastDump.h"
|
#include "DebugUtils/Include/RecastDump.h"
|
||||||
|
#include "Recast/Include/Recast.h"
|
||||||
#include "NavEditor/Include/PerfTimer.h"
|
#include "NavEditor/Include/PerfTimer.h"
|
||||||
|
|
||||||
// These are example implementations of various interfaces used in Recast and Detour.
|
// These are example implementations of various interfaces used in Recast and Detour.
|
||||||
|
@ -19,9 +19,9 @@
|
|||||||
#ifndef RECASTSAMPLESOLOMESH_H
|
#ifndef RECASTSAMPLESOLOMESH_H
|
||||||
#define RECASTSAMPLESOLOMESH_H
|
#define RECASTSAMPLESOLOMESH_H
|
||||||
|
|
||||||
#include "NavEditor/Include/Sample.h"
|
|
||||||
#include "Detour/Include/DetourNavMesh.h"
|
|
||||||
#include "Recast/Include/Recast.h"
|
#include "Recast/Include/Recast.h"
|
||||||
|
#include "Detour/Include/DetourNavMesh.h"
|
||||||
|
#include "NavEditor/Include/Sample.h"
|
||||||
|
|
||||||
class Sample_SoloMesh : public Sample
|
class Sample_SoloMesh : public Sample
|
||||||
{
|
{
|
||||||
|
@ -19,10 +19,10 @@
|
|||||||
#ifndef RECASTSAMPLETEMPOBSTACLE_H
|
#ifndef RECASTSAMPLETEMPOBSTACLE_H
|
||||||
#define RECASTSAMPLETEMPOBSTACLE_H
|
#define RECASTSAMPLETEMPOBSTACLE_H
|
||||||
|
|
||||||
#include "NavEditor/Include/Sample.h"
|
|
||||||
#include "Detour/Include/DetourNavMesh.h"
|
|
||||||
#include "Recast/Include/Recast.h"
|
#include "Recast/Include/Recast.h"
|
||||||
|
#include "Detour/Include/DetourNavMesh.h"
|
||||||
#include "NavEditor/Include/ChunkyTriMesh.h"
|
#include "NavEditor/Include/ChunkyTriMesh.h"
|
||||||
|
#include "NavEditor/Include/Sample.h"
|
||||||
|
|
||||||
|
|
||||||
class Sample_TempObstacles : public Sample
|
class Sample_TempObstacles : public Sample
|
||||||
|
@ -19,10 +19,10 @@
|
|||||||
#ifndef RECASTSAMPLETILEMESH_H
|
#ifndef RECASTSAMPLETILEMESH_H
|
||||||
#define RECASTSAMPLETILEMESH_H
|
#define RECASTSAMPLETILEMESH_H
|
||||||
|
|
||||||
#include "NavEditor/Include/Sample.h"
|
|
||||||
#include "Detour/Include/DetourNavMesh.h"
|
|
||||||
#include "Recast/Include/Recast.h"
|
#include "Recast/Include/Recast.h"
|
||||||
|
#include "Detour/Include/DetourNavMesh.h"
|
||||||
#include "NavEditor/Include/ChunkyTriMesh.h"
|
#include "NavEditor/Include/ChunkyTriMesh.h"
|
||||||
|
#include "NavEditor/Include/Sample.h"
|
||||||
|
|
||||||
class Sample_TileMesh : public Sample
|
class Sample_TileMesh : public Sample
|
||||||
{
|
{
|
||||||
|
@ -19,7 +19,6 @@
|
|||||||
#ifndef TESTCASE_H
|
#ifndef TESTCASE_H
|
||||||
#define TESTCASE_H
|
#define TESTCASE_H
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include "Detour/Include/DetourNavMesh.h"
|
#include "Detour/Include/DetourNavMesh.h"
|
||||||
|
|
||||||
class TestCase
|
class TestCase
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
// 3. This notice may not be removed or altered from any source distribution.
|
// 3. This notice may not be removed or altered from any source distribution.
|
||||||
//
|
//
|
||||||
|
|
||||||
#include "NavEditor/Include/Pch.h"
|
#include "Pch.h"
|
||||||
#include "Recast/Include/Recast.h"
|
#include "Recast/Include/Recast.h"
|
||||||
#include "DebugUtils/Include/RecastDebugDraw.h"
|
#include "DebugUtils/Include/RecastDebugDraw.h"
|
||||||
#include "NavEditor/Include/InputGeom.h"
|
#include "NavEditor/Include/InputGeom.h"
|
||||||
|
1
r5dev/thirdparty/recast/Pch.cpp
vendored
Normal file
1
r5dev/thirdparty/recast/Pch.cpp
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
#include "NavEditor/Include/Pch.h"
|
43
r5dev/thirdparty/recast/Pch.h
vendored
Normal file
43
r5dev/thirdparty/recast/Pch.h
vendored
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
|
||||||
|
#define _USE_MATH_DEFINES
|
||||||
|
#include <math.h>
|
||||||
|
#include <cmath>
|
||||||
|
#include <float.h>
|
||||||
|
#include <string.h>
|
||||||
|
#include <ctype.h>
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <stdarg.h>
|
||||||
|
|
||||||
|
#ifdef WIN32
|
||||||
|
# include <io.h>
|
||||||
|
#else
|
||||||
|
# include <dirent.h>
|
||||||
|
# include <cstring>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <cstdio>
|
||||||
|
#include <iostream>
|
||||||
|
#include <fstream>
|
||||||
|
|
||||||
|
#include <set>
|
||||||
|
#include <vector>
|
||||||
|
#include <algorithm>
|
||||||
|
|
||||||
|
#include "thirdparty/sdl/include/SDL.h"
|
||||||
|
#include "thirdparty/sdl/include/SDL_syswm.h"
|
||||||
|
#include "thirdparty/sdl/include/SDL_opengl.h"
|
||||||
|
|
||||||
|
#ifdef __APPLE__
|
||||||
|
# include <OpenGL/glu.h>
|
||||||
|
#else
|
||||||
|
# include <GL/glu.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef WIN32
|
||||||
|
# define snprintf _snprintf
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include "NavEditor/Include/imgui.h"
|
||||||
|
#include "NavEditor/Include/imguiRenderGL.h"
|
@ -127,7 +127,7 @@
|
|||||||
<AdditionalOptions>/D _CRT_SECURE_NO_WARNINGS /D WIN32 %(AdditionalOptions)</AdditionalOptions>
|
<AdditionalOptions>/D _CRT_SECURE_NO_WARNINGS /D WIN32 %(AdditionalOptions)</AdditionalOptions>
|
||||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||||
<PrecompiledHeader>Use</PrecompiledHeader>
|
<PrecompiledHeader>Use</PrecompiledHeader>
|
||||||
<PrecompiledHeaderFile>NavEditor/Include/Pch.h</PrecompiledHeaderFile>
|
<PrecompiledHeaderFile>Pch.h</PrecompiledHeaderFile>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
<Link>
|
||||||
<SubSystem>Console</SubSystem>
|
<SubSystem>Console</SubSystem>
|
||||||
@ -150,7 +150,7 @@
|
|||||||
<AdditionalOptions>/D _CRT_SECURE_NO_WARNINGS /D WIN32 %(AdditionalOptions)</AdditionalOptions>
|
<AdditionalOptions>/D _CRT_SECURE_NO_WARNINGS /D WIN32 %(AdditionalOptions)</AdditionalOptions>
|
||||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||||
<PrecompiledHeader>Use</PrecompiledHeader>
|
<PrecompiledHeader>Use</PrecompiledHeader>
|
||||||
<PrecompiledHeaderFile>NavEditor/Include/Pch.h</PrecompiledHeaderFile>
|
<PrecompiledHeaderFile>Pch.h</PrecompiledHeaderFile>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
<Link>
|
||||||
<SubSystem>Console</SubSystem>
|
<SubSystem>Console</SubSystem>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user