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

Method addDirectionWidget

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

Source from the content-addressed store, hash-verified

693}
694
695bool GuiImpl::addDirectionWidget(const char label[], float3& direction)
696{
697 float3 dir = normalize(direction);
698 bool b = addVecVar(label, dir, -1.f, 1.f, 0.001f, false, "%.3f");
699 if (b)
700 direction = normalize(dir);
701 return b;
702}
703
704bool GuiImpl::addCheckbox(const char label[], bool& var, bool sameLine)
705{

Callers 1

directionMethod · 0.80

Calls 1

normalizeFunction · 0.50

Tested by

no test coverage detected