diff options
author | sanine-a <sanine.not@pm.me> | 2020-05-23 00:00:39 -0500 |
---|---|---|
committer | sanine-a <sanine.not@pm.me> | 2020-05-23 00:00:39 -0500 |
commit | 9253d73e8eeec1aed120bea9b8c7c282d8e3d30c (patch) | |
tree | ca301ff6b72b1db68802b6d65277daeb7b5026bd /demo.c | |
parent | 3cf958fb0836cc07df413792be0266fe80988e00 (diff) |
add camera.h documentation
Diffstat (limited to 'demo.c')
-rw-r--r-- | demo.c | 9 |
1 files changed, 1 insertions, 8 deletions
@@ -58,7 +58,7 @@ void mouseCallback(GLFWwindow* window, double x, double y) { /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ void toggle_wireframe(void* data, int action) { - if (action == HONEY_PRESS_KEY) { wireframe = !wireframe; } + if (action == HONEY_KEY_PRESS) { wireframe = !wireframe; } } /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ @@ -92,13 +92,6 @@ void update(float dt) { glm_vec3_scale(camera.right, -cameraSpeed*dt, step); glm_vec3_add(camera.position, step, camera.position); } - if (honey_key_down(HONEY_KEY_E)) { - camera.angle[2] += camera_roll_speed*dt; - } - if (honey_key_down(HONEY_KEY_Q)) { - camera.angle[2] -= camera_roll_speed*dt; - } - } /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ |