aboutsummaryrefslogtreecommitdiff
path: root/src/graphic/event.c
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-05-14 19:09:39 +0200
committerCharles <sircharlesaze@gmail.com>2020-05-14 19:09:39 +0200
commitf6de2b1453930267015ab9323d5f83daa25667ba (patch)
tree5ff586948f7ffe257f8f46919f01bd99c1ffb82a /src/graphic/event.c
parent23ba151d95e4284ddb2d5f1c9810741061c293fd (diff)
downloadscop-f6de2b1453930267015ab9323d5f83daa25667ba.tar.gz
scop-f6de2b1453930267015ab9323d5f83daa25667ba.tar.bz2
scop-f6de2b1453930267015ab9323d5f83daa25667ba.zip
Added ugly Cylindric UV mapping, texture/color transition
Diffstat (limited to 'src/graphic/event.c')
-rw-r--r--src/graphic/event.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/graphic/event.c b/src/graphic/event.c
index c5986d4..ee20eab 100644
--- a/src/graphic/event.c
+++ b/src/graphic/event.c
@@ -6,7 +6,7 @@
/* By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/05/14 15:25:52 by charles #+# #+# */
-/* Updated: 2020/05/14 16:39:13 by charles ### ########.fr */
+/* Updated: 2020/05/14 18:49:43 by charles ### ########.fr */
/* */
/* ************************************************************************** */
@@ -26,6 +26,10 @@ static void st_handle_keydown(t_state *state, SDL_Keycode sym)
state->polygon_mode = GL_FILL;
GL_CALL(glPolygonMode(GL_FRONT_AND_BACK, state->polygon_mode));
}
+ else if (sym == SDLK_t)
+ {
+ state->transition = true;
+ }
}
static void st_handle_mousewheel(t_state *state, int y)