15static void draw_2d_wall_one_place(
t_img *img_2d,
int x,
int y)
22 start_x = x * MAP_SCALE;
23 start_y = y * MAP_SCALE;
30 my_mlx_pixel_put(img_2d, start_x + i, start_y + j, 0xFFFFFF);
37static bool is_wall_position(
char map_point)
39 return (map_point ==
'1');
48 while (y < map->height)
51 while (x < map->width)
53 if (is_wall_position(map->data[y][x]) ==
true)
54 draw_2d_wall_one_place(img_2d, x, y);
3D or 2D or Texture image