UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
RecastInternalDebugData.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "Containers/Array.h"
6#include "Math/Color.h"
8#include "Math/Vector.h"
10
11#if WITH_RECAST
12
14
16{
19
20 TArray<uint32> TriangleIndices;
21 TArray<FVector> TriangleVertices;
23
24 TArray<FVector> LineVertices;
26
28 TArray<FColor> PointColors;
29
32
33 double BuildTime = 0.;
34 double BuildCompressedLayerTime = 0.;
35 double BuildNavigationDataTime = 0.;
36 double BuildLinkTime = 0;
37
38 uint32 TriangleCount = 0;
39 unsigned char Resolution = 0;
40
42 virtual ~FRecastInternalDebugData() override {}
43
44 virtual void depthMask(bool state) override { /*unused*/ };
45 virtual void texture(bool state) override { /*unused*/ };
46
47 virtual void begin(duDebugDrawPrimitives prim, float size = 1.0f) override
48 {
50 FirstVertexIndex = TriangleVertices.Num();
51 }
52
53 virtual void vertex(const FVector::FReal* pos, unsigned int color) override
54 {
55 vertex(pos[0], pos[1], pos[2], color, 0.0f, 0.0f);
56 }
57
58 virtual void vertex(const FVector::FReal x, const FVector::FReal y, const FVector::FReal z, unsigned int color) override
59 {
60 vertex(x, y, z, color, 0.0f, 0.0f);
61 }
62
63 virtual void vertex(const FVector::FReal* pos, unsigned int color, const FVector::FReal* uv) override
64 {
65 vertex(pos[0], pos[1], pos[2], color, uv[0], uv[1]);
66 }
67
68 NAVIGATIONSYSTEM_API virtual void vertex(const FVector::FReal x, const FVector::FReal y, const FVector::FReal z, unsigned int color, const FVector::FReal u, const FVector::FReal v) override;
69
70 NAVIGATIONSYSTEM_API virtual void text(const FVector::FReal x, const FVector::FReal y, const FVector::FReal z, const char* text) override;
71
72 NAVIGATIONSYSTEM_API virtual void end() override;
73};
74#endif // WITH_RECAST
GLenum GLuint texture
Definition AndroidOpenGLFunctions.h:46
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
duDebugDrawPrimitives
Definition DebugDraw.h:72
@ DU_DRAW_POINTS
Definition DebugDraw.h:73
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition Array.h:670
UE_REWRITE SizeType Num() const
Definition Array.h:1144
FText Labels[NumberOfLabels]
Definition STimecode.cpp:19
FORCEINLINE FStridedReferenceIterator begin(FStridedReferenceView View)
Definition FastReferenceCollector.h:490
float v
Definition radaudio_mdct.cpp:62
double FReal
Definition Vector.h:55
Abstract debug draw interface.
Definition DebugDraw.h:81
virtual void vertex(const duReal *pos, unsigned int color)=0
virtual void text(const duReal x, const duReal y, const duReal z, const char *text)=0
virtual void depthMask(bool state)=0
virtual void end()=0
End drawing primitives.