changed functions draw line and pixel to receive an img ptr instead of the whole structure

This commit is contained in:
hugogogo
2022-04-24 19:41:44 +02:00
parent bb3a9db930
commit a11ea35ac1
6 changed files with 46 additions and 32 deletions

View File

@@ -62,8 +62,8 @@ int is_wall(t_game *game, int cell_x, int cell_y);
// SRC/DRAW
// -------------------------------
// draw.c
void draw_pixel(t_game *game, int x, int y, int color);
void draw_line(t_game *game, t_vec vec, int color);
void draw_pixel(t_img *img, int x, int y, int color);
void draw_line(t_img *img, t_vec vec, int color);
void draw(t_game *game);
// raycast.c
void raycast(t_game *game, t_rcast *rcast);