Nebula
Toggle main menu visibility
Loading...
Searching...
No Matches
debugui.h
Go to the documentation of this file.
1
#pragma once
2
//------------------------------------------------------------------------------
9
#include "
util/color.h
"
10
#include <functional>
11
12
namespace
Physics
13
{
14
15
struct
DebugDrawInterface
16
{
17
std::function<void(
Math::vec3
point,
Util::Color
color,
float
size)>
DrawPoint
=
nullptr
;
18
std::function<void(
Math::vec3
p0,
Math::vec3
p1,
Util::Color
color0,
Util::Color
color1,
float
lineWidth)>
DrawLine
=
nullptr
;
19
std::function<void(
Math::vec3
p0,
Math::vec3
p1,
Math::vec3
p2,
Util::Color
color0,
Util::Color
color1,
Util::Color
color2,
float
triLineWidth)>
DrawTriangle
=
nullptr
;
20
};
21
22
void
SetDebugDrawInterface
(
DebugDrawInterface
const
& drawInterface);
23
24
void
EnableDebugDrawing
(
bool
enabled);
25
26
void
RenderUI
(
Math::mat4
const
& cameraViewTransform);
27
28
void
RenderMaterialsUI
();
29
30
void
DrawPhysicsDebug
();
31
32
}
Util::Color
Represents colors by four single point (32-bit) floating point numbers.
Definition
color.h:18
color.h
Physics
Diverse functions for manipulating physics actors.
Definition
actorcontext.cc:18
Physics::DrawPhysicsDebug
void DrawPhysicsDebug()
Definition
debugui.cc:192
Physics::RenderUI
void RenderUI(Math::mat4 const &cameraViewTransform)
Definition
debugui.cc:237
Physics::RenderMaterialsUI
void RenderMaterialsUI()
Definition
debugui.cc:307
Physics::SetDebugDrawInterface
void SetDebugDrawInterface(DebugDrawInterface const &drawInterface)
Definition
debugui.cc:68
Physics::EnableDebugDrawing
void EnableDebugDrawing(bool enabled)
Definition
debugui.cc:116
Math::mat4
A 4x4 single point precision float matrix.
Definition
mat4.h:49
Math::vec3
A 3D vector.
Definition
vec3.h:37
Physics::DebugDrawInterface
Definition
debugui.h:16
Physics::DebugDrawInterface::DrawPoint
std::function< void(Math::vec3 point, Util::Color color, float size)> DrawPoint
Definition
debugui.h:17
Physics::DebugDrawInterface::DrawTriangle
std::function< void(Math::vec3 p0, Math::vec3 p1, Math::vec3 p2, Util::Color color0, Util::Color color1, Util::Color color2, float triLineWidth)> DrawTriangle
Definition
debugui.h:19
Physics::DebugDrawInterface::DrawLine
std::function< void(Math::vec3 p0, Math::vec3 p1, Util::Color color0, Util::Color color1, float lineWidth)> DrawLine
Definition
debugui.h:18
code
physics
physics
debugui.h
Generated on
for Nebula. Dark theme by
Tilen Majerle
. All rights reserved.