Immediate mode debug UI APIPer frame usage example:
More...
Immediate mode debug UI API
Per frame usage example:
int m_DbgListSelection = 0;
float m_DbgSliderValue = 0.0;
{
{
DbgUI.Text(
"DbgUI Test");
if (
DbgUI.Button(
"Print name"))
{
}
DbgUI.List(
"test list", m_DbgListSelection, m_DbgOptions);
DbgUI.Text(
"Choice = " + m_DbgListSelection.ToString());
DbgUI.SliderFloat(
"slider", m_DbgSliderValue, 0, 100);
DbgUI.Text(
"Slider value = " + ftoa(m_DbgSliderValue));
}
}
For non-per frame usage example:
int m_DbgEventCount = 0;
{
m_DbgEventCount++;
DbgUI.BeginCleanupScope();
DbgUI.Begin(
"events", 300, 0);
DbgUI.Text(
"Events count = " + m_DbgEventCount.ToString());
}