aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-01-17 14:51:23 +0100
committerCharles <sircharlesaze@gmail.com>2020-01-17 14:51:23 +0100
commita05a68ed6d868d17827159e5df16069a649d2263 (patch)
tree338058411cea5b514c13390d845f7577bca70199 /main.c
parent75c7e5548de908c37c0fbdd49df50f3e7447e120 (diff)
downloadcub3d-a05a68ed6d868d17827159e5df16069a649d2263.tar.gz
cub3d-a05a68ed6d868d17827159e5df16069a649d2263.tar.bz2
cub3d-a05a68ed6d868d17827159e5df16069a649d2263.zip
No more segfault (for now), raycasting is broken
Diffstat (limited to 'main.c')
-rw-r--r--main.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/main.c b/main.c
index 94e67d1..5ddfa17 100644
--- a/main.c
+++ b/main.c
@@ -6,7 +6,7 @@
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/11/15 06:39:39 by cacharle #+# #+# */
-/* Updated: 2020/01/16 09:19:14 by cacharle ### ########.fr */
+/* Updated: 2020/01/17 14:30:21 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
@@ -22,10 +22,13 @@ int main(int argc, char **argv)
return (1);
if (argc == 3)
return (capture(state));
- printf("yo\n");
+ /* printf("%d\n", state->window.size_line); */
mlx_hook(state->window_ptr, 2, (1L << 1), event_keydown, (void*)state);
+ mlx_hook(state->window_ptr, 17L, 0, event_quit, (void*)state);
mlx_loop_hook(state->mlx_ptr, render_update, (void*)state);
mlx_loop(state->mlx_ptr);
+ /* while (1) */
+ /* render_update(state); */
return (0);
}