changed functions draw line and pixel to receive an img ptr instead of the whole structure
This commit is contained in:
@@ -54,6 +54,7 @@ typedef struct s_rcast
|
||||
int is_x;
|
||||
int ray_nb;
|
||||
int wall_height;
|
||||
int screen_center;
|
||||
double ratio;
|
||||
} t_rcast;
|
||||
|
||||
@@ -73,8 +74,9 @@ typedef struct s_img
|
||||
void *ptr;
|
||||
char *data;
|
||||
int bpp;
|
||||
int sizel;
|
||||
int endian;
|
||||
int szl;
|
||||
int ndn;
|
||||
int height;
|
||||
} t_img;
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user