feat: raycasting functionnal
This commit is contained in:
parent
a3b0d266bb
commit
9ae3eb011f
19 changed files with 1183 additions and 101 deletions
|
|
@ -6,7 +6,7 @@
|
|||
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/11/11 19:53:42 by rparodi #+# #+# */
|
||||
/* Updated: 2024/11/22 15:17:07 by rparodi ### ########.fr */
|
||||
/* Updated: 2024/11/26 13:40:17 by rparodi ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -32,17 +32,17 @@ int c3_redcross(t_info *info)
|
|||
{
|
||||
return (mlx_loop_end(info->mlx_ptr), EXIT_SUCCESS);
|
||||
}
|
||||
t_win_list *c3_init_mlx_window(t_info *info);
|
||||
/*t_win_list *c3_init_mlx_window(t_info *info)*/
|
||||
/*{*/
|
||||
/* int x;*/
|
||||
/* int y;*/
|
||||
/**/
|
||||
/* x = 0;*/
|
||||
/* y = 0;*/
|
||||
/* mlx_get_screen_size(info->mlx_ptr, &x, &y);*/
|
||||
/* return (mlx_new_window(info->mlx_ptr, x, y, "C3D"));*/
|
||||
/*}*/
|
||||
|
||||
t_win_list *c3_init_mlx_window(t_info *info)
|
||||
{
|
||||
int x;
|
||||
int y;
|
||||
|
||||
x = 0;
|
||||
y = 0;
|
||||
mlx_get_screen_size(info->mlx_ptr, &x, &y);
|
||||
return (mlx_new_window(info->mlx_ptr, x, y, "C3D"));
|
||||
}
|
||||
|
||||
int init_mlx_env(t_info *info)
|
||||
{
|
||||
|
|
@ -54,6 +54,7 @@ int init_mlx_env(t_info *info)
|
|||
return (ERROR_MLX);
|
||||
mlx_hook(info->win_ptr, KeyPress, KeyPressMask, c3_keyhook, info);
|
||||
mlx_hook(info->win_ptr, DestroyNotify, StructureNotifyMask, c3_redcross, info);
|
||||
mlx_loop_hook(info->mlx_ptr, c3_frame_update, info);
|
||||
mlx_loop_hook(info->mlx_ptr, (int (*)())shelves_launch, &info);
|
||||
/*mlx_loop_hook(info->mlx_ptr, c3_frame_update, info);*/
|
||||
return (NO_ERROR);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue