start project with header, struct, mlx functionnal, and basic key event action
This commit is contained in:
9
srcs/hook/key_do_action.c
Normal file
9
srcs/hook/key_do_action.c
Normal file
@@ -0,0 +1,9 @@
|
||||
#include "cube3d.h"
|
||||
|
||||
int shut_down(t_game *game)
|
||||
{
|
||||
mlx_destroy_window(game->mlx_ptr, game->win_ptr);
|
||||
exit(0);
|
||||
free(game);
|
||||
return (0);
|
||||
}
|
||||
Reference in New Issue
Block a user