Skip to content

Commit

Permalink
ogt_vox: added additional camera type support for saving, too
Browse files Browse the repository at this point in the history
  • Loading branch information
mgerhardy authored and jpaver committed Oct 15, 2022
1 parent 3883192 commit 877f1ef
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/ogt_vox.h
Original file line number Diff line number Diff line change
Expand Up @@ -2352,6 +2352,18 @@
_vox_sprintf(cam_fov, sizeof(cam_fov), "%i", camera->fov);

switch (camera->mode) {
case ogt_cam_mode_free:
cam_mode = "free";
break;
case ogt_cam_mode_pano:
cam_mode = "pano";
break;
case ogt_cam_mode_isometric:
cam_mode = "iso";
break;
case ogt_cam_mode_orthographic:
cam_mode = "orth";
break;
default:
case ogt_cam_mode_unknown:
case ogt_cam_mode_perspective:
Expand Down

0 comments on commit 877f1ef

Please sign in to comment.