MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / addRadioButtons

Method addRadioButtons

Source/Falcor/Utils/UI/Gui.cpp:681–693  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

679}
680
681bool GuiImpl::addRadioButtons(const Gui::RadioButtonGroup& buttons, uint32_t& activeID)
682{
683 auto oldValue = activeID;
684
685 for (const auto& button : buttons)
686 {
687 if (button.sameLine)
688 ImGui::SameLine();
689 ImGui::RadioButton(button.label.c_str(), (int*)&activeID, button.buttonID);
690 }
691
692 return oldValue != activeID;
693}
694
695bool GuiImpl::addDirectionWidget(const char label[], float3& direction)
696{

Callers 1

radioButtonsMethod · 0.80

Calls 1

RadioButtonClass · 0.85

Tested by

no test coverage detected