UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
DetourDebugDraw.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2// Modified version of Recast/Detour's source file
3
4//
5// Copyright (c) 2009-2010 Mikko Mononen memon@inside.org
6//
7// This software is provided 'as-is', without any express or implied
8// warranty. In no event will the authors be held liable for any damages
9// arising from the use of this software.
10// Permission is granted to anyone to use this software for any purpose,
11// including commercial applications, and to alter it and redistribute it
12// freely, subject to the following restrictions:
13// 1. The origin of this software must not be misrepresented; you must not
14// claim that you wrote the original software. If you use this software
15// in a product, an acknowledgment in the product documentation would be
16// appreciated but is not required.
17// 2. Altered source versions must be plainly marked as such, and must not be
18// misrepresented as being the original software.
19// 3. This notice may not be removed or altered from any source distribution.
20//
21
22#ifndef DETOURDEBUGDRAW_H
23#define DETOURDEBUGDRAW_H
24
25#include "CoreMinimal.h"
28
29class dtNavMeshQuery;
31struct dtTileCacheLayer;
32struct duDebugDraw;
33
40
41NAVMESH_API void duDebugDrawNavMesh(struct duDebugDraw* dd, const dtNavMesh& mesh, unsigned char flags);
42NAVMESH_API void duDebugDrawNavMeshWithClosedList(struct duDebugDraw* dd, const dtNavMesh& mesh, const dtNavMeshQuery& query, unsigned char flags);
46NAVMESH_API void duDebugDrawNavMeshPolysWithFlags(struct duDebugDraw* dd, const dtNavMesh& mesh, const unsigned short polyFlags, const unsigned int col);
47NAVMESH_API void duDebugDrawNavMeshPoly(struct duDebugDraw* dd, const dtNavMesh& mesh, dtPolyRef ref, const unsigned int col);
48
49//@UE BEGIN
50#if WITH_NAVMESH_CLUSTER_LINKS
52NAVMESH_API void duDebugDrawNavMeshCluster(struct duDebugDraw* dd, const dtNavMesh& mesh, dtClusterRef ref, const unsigned int col);
53
55#endif // WITH_NAVMESH_CLUSTER_LINKS
56//@UE END
57
58NAVMESH_API void duDebugDrawTileCacheLayerAreas(struct duDebugDraw* dd, const dtTileCacheLayer& layer, const dtReal cs, const dtReal ch);
60 const dtTileCacheDistanceField& dfield, const dtReal cs, const dtReal ch);
61NAVMESH_API void duDebugDrawTileCacheLayerRegions(struct duDebugDraw* dd, const dtTileCacheLayer& layer, const dtReal cs, const dtReal ch);
63 const int32 layerIdx, const dtReal* orig, const dtReal cs, const dtReal ch);
65 const dtReal* orig, const dtReal cs, const dtReal ch);
67
68#endif // DETOURDEBUGDRAW_H
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
void duDebugDrawTileCacheClusters(duDebugDraw *dd, const struct dtTileCacheClusterSet &lclusters)
Definition DetourDebugDraw.cpp:909
DrawNavMeshFlags
Definition DetourDebugDraw.h:35
@ DU_DRAWNAVMESH_COLOR_TILES
Definition DetourDebugDraw.h:38
@ DU_DRAWNAVMESH_OFFMESHCONS
Definition DetourDebugDraw.h:36
@ DU_DRAWNAVMESH_CLOSEDLIST
Definition DetourDebugDraw.h:37
NAVMESH_API void duDebugDrawTileCacheLayerDistance(struct duDebugDraw *dd, const dtTileCacheLayer &layer, const dtTileCacheDistanceField &dfield, const dtReal cs, const dtReal ch)
Definition DetourDebugDraw.cpp:703
NAVMESH_API void duDebugDrawNavMesh(struct duDebugDraw *dd, const dtNavMesh &mesh, unsigned char flags)
Definition DetourDebugDraw.cpp:302
NAVMESH_API void duDebugDrawTileCachePolyMesh(duDebugDraw *dd, const struct dtTileCachePolyMesh &lmesh, const dtReal *orig, const dtReal cs, const dtReal ch)
Definition DetourDebugDraw.cpp:914
NAVMESH_API void duDebugDrawNavMeshWithClosedList(struct duDebugDraw *dd, const dtNavMesh &mesh, const dtNavMeshQuery &query, unsigned char flags)
Definition DetourDebugDraw.cpp:314
NAVMESH_API void duDebugDrawTileCacheLayerRegions(struct duDebugDraw *dd, const dtTileCacheLayer &layer, const dtReal cs, const dtReal ch)
Definition DetourDebugDraw.cpp:755
NAVMESH_API void duDebugDrawTileCacheDetailMesh(duDebugDraw *dd, const struct dtTileCachePolyMeshDetail &dmesh)
Definition DetourDebugDraw.cpp:1049
NAVMESH_API void duDebugDrawNavMeshPortals(struct duDebugDraw *dd, const dtNavMesh &mesh)
Definition DetourDebugDraw.cpp:474
NAVMESH_API void duDebugDrawNavMeshPoly(struct duDebugDraw *dd, const dtNavMesh &mesh, dtPolyRef ref, const unsigned int col)
Definition DetourDebugDraw.cpp:506
NAVMESH_API void duDebugDrawTileCacheContours(duDebugDraw *dd, const struct dtTileCacheContourSet &lcset, const int32 layerIdx, const dtReal *orig, const dtReal cs, const dtReal ch)
Definition DetourDebugDraw.cpp:820
NAVMESH_API void duDebugDrawNavMeshPolysWithFlags(struct duDebugDraw *dd, const dtNavMesh &mesh, const unsigned short polyFlags, const unsigned int col)
Definition DetourDebugDraw.cpp:486
NAVMESH_API void duDebugDrawTileCacheLayerAreas(struct duDebugDraw *dd, const dtTileCacheLayer &layer, const dtReal cs, const dtReal ch)
Definition DetourDebugDraw.cpp:649
NAVMESH_API void duDebugDrawNavMeshNodes(struct duDebugDraw *dd, const dtNavMeshQuery &query)
Definition DetourDebugDraw.cpp:328
NAVMESH_API void duDebugDrawNavMeshBVTree(struct duDebugDraw *dd, const dtNavMesh &mesh)
Definition DetourDebugDraw.cpp:388
double dtReal
Definition DetourLargeWorldCoordinates.h:15
UEType_uint64 dtClusterRef
A handle to a cluster within a navigation mesh tile.
Definition DetourNavMesh.h:63
uint64 dtPolyRef
Definition RecastGraphAStar.h:28
Definition DetourNavMeshQuery.h:349
Definition DetourNavMesh.h:503
Definition DetourTileCacheBuilder.h:68
Definition DetourTileCacheBuilder.h:108
Definition DetourTileCacheBuilder.h:50
Definition DetourTileCacheBuilder.h:98
Definition DetourTileCacheBuilder.h:74
Abstract debug draw interface.
Definition DebugDraw.h:81