feat: raycasting functionnal
This commit is contained in:
parent
a3b0d266bb
commit
9ae3eb011f
19 changed files with 1183 additions and 101 deletions
45
test/test.h
Normal file
45
test/test.h
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* test.h :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/11/27 12:07:20 by rparodi #+# #+# */
|
||||
/* Updated: 2024/11/27 12:08:19 by rparodi ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef TEST_H
|
||||
# define TEST_H
|
||||
|
||||
# include "minilibx-linux/mlx.h"
|
||||
# include <math.h>
|
||||
# include <stdio.h>
|
||||
# include <stdlib.h>
|
||||
|
||||
# define WINDOW_WIDTH 1024
|
||||
# define WINDOW_HEIGHT 768
|
||||
# define MAP_WIDTH 24
|
||||
# define MAP_HEIGHT 24
|
||||
# define MOVE_SPEED 0.5
|
||||
# define ROT_SPEED 0.5
|
||||
|
||||
typedef struct s_data
|
||||
{
|
||||
void *mlx;
|
||||
void *win;
|
||||
void *img;
|
||||
char *addr;
|
||||
int bits_per_pixel;
|
||||
int line_length;
|
||||
int endian;
|
||||
double pos_x;
|
||||
double pos_y;
|
||||
double dir_x;
|
||||
double dir_y;
|
||||
double plane_x;
|
||||
double plane_y;
|
||||
} t_data;
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue