From 34b7ddfbfbb8b1c3c9b252af9f36d9cf025757a0 Mon Sep 17 00:00:00 2001 From: karl Date: Tue, 22 Jun 2021 11:23:50 +0200 Subject: [PATCH] Cleanup and complete keybindings --- test/full-demo/main.cpp | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/test/full-demo/main.cpp b/test/full-demo/main.cpp index 83d1fa0..ec23d2d 100644 --- a/test/full-demo/main.cpp +++ b/test/full-demo/main.cpp @@ -80,17 +80,19 @@ class FullDemo : public Gedeng::Application { if (Gedeng::Input::is_key_down(GLFW_KEY_4)) tessellation_factor += delta * 8.0; if (Gedeng::Input::is_key_down(GLFW_KEY_3)) tessellation_factor -= delta * 8.0; + if (Gedeng::Input::is_key_down(GLFW_KEY_6)) number_of_steps += delta * 5.0; + if (Gedeng::Input::is_key_down(GLFW_KEY_5)) number_of_steps -= delta * 5.0; + + if (Gedeng::Input::is_key_down(GLFW_KEY_8)) number_of_refinement_steps += delta * 5.0; + if (Gedeng::Input::is_key_down(GLFW_KEY_7)) number_of_refinement_steps -= delta * 5.0; + + if (Gedeng::Input::is_key_down(GLFW_KEY_0)) bump_depth += delta * 0.1; + if (Gedeng::Input::is_key_down(GLFW_KEY_9)) bump_depth -= delta * 0.1; + particles.set_interval(particle_interval); } void dynamic_update(double delta) override { - // Wireframe? - if (Gedeng::Input::is_key_down(GLFW_KEY_B)) { - glPolygonMode(GL_FRONT_AND_BACK, GL_LINE); - } else { - glPolygonMode(GL_FRONT_AND_BACK, GL_FILL); - } - // Marching cubes // Create the noise