Template Function portal::imgui::draw_consts_controls

Function Documentation

template<typename T>
void portal::imgui::draw_consts_controls(const char *label, T &consts)

Dynamically reflects a consts struct and draws it in a debug window for fine controls of spacing in real time.

Template Parameters:

T – The consts struct type

Parameters:
  • label – A label for the debug window, to allow multiple windows in parallel

  • consts – and instance of the consts struct