Function in ldk_debug_draw.h

ldk_debug_draw_arrow

Draw a directional arrow between two 3D positions.

LDK_API bool ldk_debug_draw_arrow(
 const LDKDebugDraw *draw,
 Vec3 start,
 Vec3 end
);

Parameters

const LDKDebugDraw *draw
Debug drawing context.
Vec3 start
Starting timestamp or location for this operation.
Vec3 end
Ending timestamp or location for this operation.

Returns

True if the operation succeeds; false otherwise.

Function in ldk_debug_draw.h

ldk_debug_draw_axes

Draw coordinate axes using a world transform.

LDK_API bool ldk_debug_draw_axes(
 const LDKDebugDraw *draw,
 Mat4 world,
 float length
);

Parameters

const LDKDebugDraw *draw
Debug drawing context.
Mat4 world
Object-to-world transformation matrix.
float length
Length used by this operation.

Returns

True if the operation succeeds; false otherwise.

Function in ldk_debug_draw.h

ldk_debug_draw_circle

Draw a circle in 3D space.

LDK_API bool ldk_debug_draw_circle(
 const LDKDebugDraw *draw,
 Vec3 center,
 Vec3 normal,
 float radius,
 u32 segments
);

Parameters

const LDKDebugDraw *draw
Debug drawing context.
Vec3 center
Center of the geometry.
Vec3 normal
Surface normal vector.
float radius
Interaction or geometry radius.
u32 segments
Segments used by this operation.

Returns

True if the operation succeeds; false otherwise.

Function in ldk_debug_draw.h

ldk_debug_draw_cone

Draw a wireframe cone in 3D space.

LDK_API bool ldk_debug_draw_cone(
 const LDKDebugDraw *draw,
 Vec3 apex,
 Vec3 direction,
 float height,
 float radius,
 u32 segments
);

Parameters

const LDKDebugDraw *draw
Debug drawing context.
Vec3 apex
Apex used by this operation.
Vec3 direction
Direction used by this operation.
float height
Height in pixels or the units expected by the API.
float radius
Interaction or geometry radius.
u32 segments
Segments used by this operation.

Returns

True if the operation succeeds; false otherwise.

Function in ldk_debug_draw.h

ldk_debug_draw_frustum

Draw a camera or projection frustum.

LDK_API bool ldk_debug_draw_frustum(
 const LDKDebugDraw *draw,
 Mat4 inverse_view_projection
);

Parameters

const LDKDebugDraw *draw
Debug drawing context.
Mat4 inverse_view_projection
Inverse view projection used by this operation.

Returns

True if the operation succeeds; false otherwise.