Skip to content
Snippets Groups Projects
Commit 0c7ed4f4 authored by Vanessa Karolek's avatar Vanessa Karolek
Browse files

adjust label IDs of the reset buttons

parent e57ec4a5
No related branches found
No related tags found
1 merge request!103Added project wobble_bobble and refactored some parts of the framework
......@@ -751,18 +751,18 @@ int main(int argc, const char **argv) {
ImGui::Checkbox("Render Grid", &renderGrid);
ImGui::SliderFloat("Alpha (PIC -> FLIP)", &alpha, 0.0f, 1.0f);
ImGui::SameLine(0.0f, 10.0f);
if (ImGui::SmallButton("Reset")) {
if (ImGui::SmallButton("Reset##alpha")) {
alpha = 0.5f;
}
ImGui::SliderFloat("Beta (Alpha -> APIC)", &beta, 0.0f, 1.0f);
ImGui::SameLine(0.0f, 10.0f);
if (ImGui::SmallButton("Reset")) {
if (ImGui::SmallButton("Reset##beta")) {
beta = 0.75f;
}
ImGui::DragFloat3("Initial velocity", reinterpret_cast<float*>(&initialVelocity));
if (ImGui::Button("Reset Particles")) {
ImGui::SameLine(0.0f, 10.0f);
if (ImGui::Button("Reset##particle_velocity")) {
resetParticles(particles, initialVelocity);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment