MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/FleX / imguiValue

Function imguiValue

demo/imgui.cpp:572–580  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

570}
571
572void imguiValue(const char* text)
573{
574 const int x = g_state.widgetX;
575 const int y = g_state.widgetY - BUTTON_HEIGHT;
576 const int w = g_state.widgetW;
577 g_state.widgetY -= BUTTON_HEIGHT;
578
579 addGfxCmdText(x+w-BUTTON_HEIGHT/2, y+BUTTON_HEIGHT/2-TEXT_HEIGHT/2, IMGUI_ALIGN_RIGHT, text, imguiRGBA(255,255,255,200));
580}
581
582bool imguiSlider(const char* text, float* val, float vmin, float vmax, float vinc, bool enabled)
583{

Callers

nothing calls this directly

Calls 2

addGfxCmdTextFunction · 0.85
imguiRGBAFunction · 0.85

Tested by

no test coverage detected