Unravel Engine C++ Reference
Loading...
Searching...
No Matches
unravel::viewport_stats_overlay Namespace Reference

Classes

struct  state
 

Functions

void draw (const rendering::pipeline_stats &pstats, state &overlay_state, const char *id)
 Draw a statistics overlay child window at the top-right corner of the current ImGui window. Contains multiple collapsible sections showing rendering statistics. Shared between scene and game panels.
 
void draw_stats_toggle (state &overlay_state)
 Draw a right-aligned "Stats" toggle button for the menu bar. Toggles the overlay visibility on click.
 

Function Documentation

◆ draw()

void unravel::viewport_stats_overlay::draw ( const rendering::pipeline_stats & pstats,
state & overlay_state,
const char * id )

Draw a statistics overlay child window at the top-right corner of the current ImGui window. Contains multiple collapsible sections showing rendering statistics. Shared between scene and game panels.

Parameters
overlay_statePersistent state for visibility toggle
idUnique identifier to disambiguate multiple overlays

Definition at line 483 of file viewport_stats_overlay.cpp.

◆ draw_stats_toggle()

void unravel::viewport_stats_overlay::draw_stats_toggle ( state & overlay_state)

Draw a right-aligned "Stats" toggle button for the menu bar. Toggles the overlay visibility on click.

Parameters
overlay_statePersistent state to toggle visibility on

Definition at line 554 of file viewport_stats_overlay.cpp.