nCine::ImGuiDebugOverlay class

Debug overlay implemented with the ImGui interface.

Concrete IDebugOverlay that uses ImGui to draw the diagnostic windows: corner overlays with frame timings and rendering statistics, profiler plots, a trace log, and inspector panels for the application configuration, graphics capabilities, viewports and scene-graph nodes.

Base classes

class IDebugOverlay
Interface for an on-screen debug overlay.

Constructors, destructors, conversion operators

ImGuiDebugOverlay(float profileTextUpdateTime) explicit
ImGuiDebugOverlay(const ImGuiDebugOverlay&) deleted

Public functions

auto operator=(const ImGuiDebugOverlay&) -> ImGuiDebugOverlay& deleted
void Update() override
Updates the overlay and draws it for the current frame.
void UpdateFrameTimings() override
Refreshes the cached frame timing values shown by the overlay.
void Log(TraceLevel level, StringView time, StringView threadId, StringView functionName, StringView message) override
Appends a trace log message to be displayed by the overlay.