MCPcopy Create free account
hub / github.com/cinder/Cinder / update

Method update

samples/FallingGears/src/FallingGearsApp.cpp:138–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138void FallingGearsApp::update()
139{
140 ImGui::Begin( "Settings" );
141 ImGui::Text( "framerate: %f", mFps );
142 ImGui::Checkbox( "show info", &mDrawInfo );
143 ImGui::Checkbox( "show debug", &mDrawDebug );
144 if( ImGui::DragFloat( "gain (db)", &mMasterGain, 5.0f ) ) {
145 mAudio.setMasterGain( mMasterGain );
146 }
147 ImGui::DragFloat( "island lowpass", &mAudio.getParams().mAltoLowPassFreq );
148 ImGui::Separator();
149 ImGui::DragFloat( "gear scale", &mScene.getParams().mGearScale );
150 ImGui::DragFloat( "decent speed", &mScene.getParams().mDecentSpeed );
151 ImGui::End();
152
153 mScene.update();
154
155 mAudio.update();
156
157 mFps = getAverageFps();
158}
159
160void FallingGearsApp::draw()
161{

Callers

nothing calls this directly

Calls 2

getAverageFpsFunction · 0.85
setMasterGainMethod · 0.80

Tested by

no test coverage detected