47 line.x_start = (int)(player->view_point.x * MAP_SCALE);
48 line.y_start = (int)(player->view_point.y * MAP_SCALE);
49 line.color_start = COLOR_RED;
50 line.x_end = line.x_start + player->ray_dir.x * 10 * MAP_SCALE;
51 line.y_end = line.y_start + player->ray_dir.y * 10 * MAP_SCALE;
52 line.color_end = COLOR_RED;
53 draw_line(img_2d, &line);
3D or 2D or Texture image