MCPcopy Create free account
hub / github.com/Sharath-girish/efficientgaussian / onGUI

Method onGUI

SIBR_viewers/src/core/view/FPSCamera.cpp:97–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95 }
96
97 void FPSCamera::onGUI(const std::string& suffix) {
98 if(ImGui::Begin(suffix.c_str())) {
99 ImGui::PushScaledItemWidth(130);
100 ImGui::Checkbox("Acceleration", &_useAcceleration);
101 ImGui::SameLine();
102 if(!_useAcceleration) {
103 ImGui::InputFloat("Speed", &_speedFpsCam, 0.1f, 0.5f);
104 ImGui::SameLine();
105 }
106 ImGui::InputFloat("Rot. speed", &_speedRotFpsCam, 0.1f, 0.5f);
107 ImGui::PopItemWidth();
108 }
109 ImGui::End();
110 }
111
112
113 void FPSCamera::moveUsingWASD(const sibr::Input& input, float deltaTime)

Callers

nothing calls this directly

Calls 1

PushScaledItemWidthFunction · 0.85

Tested by

no test coverage detected