Brunot
Loading...
Searching...
No Matches
DebugDraw.cpp File Reference

Description: A system to collect lines and render them all at once each frame for debug information. More...

#include "System/DebugDraw.h"
#include "imgui.h"
#include "Framework/Engine.h"
#include "Framework/Library.h"
#include "System/opengl.h"
#include "Graphics/Vertex.h"
#include "Graphics/VertexBuffer.h"
#include "Graphics/Line.h"
Include dependency graph for DebugDraw.cpp:

Namespaces

namespace  sys
 the type of elements in a basic_json container

Functions

auto operator<< (sys::DebugDraw *debug, const Line &line) -> sys::DebugDraw *
 stream insertion operator for adding lines to the debug draw system Uses DebugDraw pointer instead of reference because Engine::getSystem<>() returns a pointer not a reference

Detailed Description

Description: A system to collect lines and render them all at once each frame for debug information.

recommended uses are hitboxes, paths, relationships, grids, and vectors.

Author
Aidan Hartman (aidan.nosp@m..har.nosp@m.tman@.nosp@m.digi.nosp@m.pen.e.nosp@m.du)
Date
2025 / 11 / 19

Function Documentation

◆ operator<<()

auto operator<< ( sys::DebugDraw * debug,
const Line & line )->sys::DebugDraw *

stream insertion operator for adding lines to the debug draw system Uses DebugDraw pointer instead of reference because Engine::getSystem<>() returns a pointer not a reference

Parameters
debuga pointer to the debug system to add to
linea reference to the line to add
Returns
a pointer to the DebugDraw system to allow chaining