Nebula
Loading...
Searching...
No Matches
debugui.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
10#include "util/color.h"
11#include <functional>
12
13namespace Physics
14{
15
17{
18 std::function<void(Math::vec3 point, Util::Color color, float size)> DrawPoint = nullptr;
19 std::function<void(Math::vec3 p0, Math::vec3 p1, Util::Color color0, Util::Color color1, float lineWidth)> DrawLine = nullptr;
20 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;
21};
22
23void SetDebugDrawInterface(DebugDrawInterface const& drawInterface);
24
25void EnableDebugDrawing(bool enabled);
26
28
30
31void DrawPhysicsDebug();
32
33}
Represents colors by four single point (32-bit) floating point numbers.
Definition color.h:18
Diverse functions for manipulating physics actors.
Definition actorcontext.cc:18
void DrawPhysicsDebug()
Definition debugui.cc:193
void RenderUI(Graphics::GraphicsEntityId camera)
Definition debugui.cc:238
void RenderMaterialsUI()
Definition debugui.cc:308
void SetDebugDrawInterface(DebugDrawInterface const &drawInterface)
Definition debugui.cc:69
void EnableDebugDrawing(bool enabled)
Definition debugui.cc:117
The graphics entity is only an Id, to which we can attach GraphicsContexts.
Definition graphicsentity.h:16
A 3D vector.
Definition vec3.h:40
Definition debugui.h:17
std::function< void(Math::vec3 point, Util::Color color, float size)> DrawPoint
Definition debugui.h:18
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:20
std::function< void(Math::vec3 p0, Math::vec3 p1, Util::Color color0, Util::Color color1, float lineWidth)> DrawLine
Definition debugui.h:19