47 lines
1.3 KiB
C
47 lines
1.3 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* temp.h :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: mc <mc@student.42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2024/10/31 17:04:08 by mc #+# #+# */
|
|
/* Updated: 2024/10/31 17:28:09 by mc ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
// DEBUG remove temp.h
|
|
|
|
#ifndef TEMP_H
|
|
# define TEMP_H
|
|
|
|
# include "include.h"
|
|
|
|
# include "utils.h"
|
|
|
|
# define TEX_WIDTH 64
|
|
# define TEX_HEIGHT 64
|
|
|
|
typedef struct s_tex
|
|
{
|
|
void *textures[4];
|
|
void *current_tex;
|
|
int tex_height;
|
|
int tex_width;
|
|
int tex_dir;
|
|
int tex_x;
|
|
int tex_y;
|
|
int bpp;
|
|
int size_line;
|
|
int endian;
|
|
} t_tex;
|
|
|
|
typedef struct s_ray
|
|
{
|
|
// pos player on map (cases)
|
|
t_point_double dir;
|
|
bool side;
|
|
double wallx;
|
|
} t_ray;
|
|
|
|
#endif
|