Nebula
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
12namespace Physics
13{
14
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
22void SetDebugDrawInterface(DebugDrawInterface const& drawInterface);
23
24void EnableDebugDrawing(bool enabled);
25
26void RenderUI(Math::mat4 const& cameraViewTransform);
27
29
30void DrawPhysicsDebug();
31
32}
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:192
void RenderUI(Math::mat4 const &cameraViewTransform)
Definition debugui.cc:237
void RenderMaterialsUI()
Definition debugui.cc:307
void SetDebugDrawInterface(DebugDrawInterface const &drawInterface)
Definition debugui.cc:68
void EnableDebugDrawing(bool enabled)
Definition debugui.cc:116
A 4x4 single point precision float matrix.
Definition mat4.h:49
A 3D vector.
Definition vec3.h:40
Definition debugui.h:16
std::function< void(Math::vec3 point, Util::Color color, float size)> DrawPoint
Definition debugui.h:17
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
std::function< void(Math::vec3 p0, Math::vec3 p1, Util::Color color0, Util::Color color1, float lineWidth)> DrawLine
Definition debugui.h:18