Unravel Engine C++ Reference
Loading...
Searching...
No Matches
viewport_stats_overlay.h
Go to the documentation of this file.
1#pragma once
4
6{
7
8struct state
9{
10 bool is_visible = false;
12};
13
14//-----------------------------------------------------------------------------
22//-----------------------------------------------------------------------------
23void draw(const rendering::pipeline_stats& pstats, state& overlay_state, const char* id);
24
25//-----------------------------------------------------------------------------
31//-----------------------------------------------------------------------------
32void draw_stats_toggle(state& overlay_state);
33
34} // namespace unravel::viewport_stats_overlay
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....
void draw_stats_toggle(state &overlay_state)
Draw a right-aligned "Stats" toggle button for the menu bar. Toggles the overlay visibility on click.