| 136 | } |
| 137 | |
| 138 | void 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 | |
| 160 | void FallingGearsApp::draw() |
| 161 | { |
nothing calls this directly
no test coverage detected