| 693 | } |
| 694 | |
| 695 | bool 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 | |
| 704 | bool GuiImpl::addCheckbox(const char label[], bool& var, bool sameLine) |
| 705 | { |