Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_camera_types.h
| Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | |||||
| /* ------------------------------------------- */ | /* ------------------------------------------- */ | ||||
| /* Stereo Settings */ | /* Stereo Settings */ | ||||
| typedef struct CameraStereoSettings { | typedef struct CameraStereoSettings { | ||||
| float interocular_distance; | float interocular_distance; | ||||
| float convergence_distance; | float convergence_distance; | ||||
| short convergence_mode; | short convergence_mode; | ||||
| short pivot; | short pivot; | ||||
| short pad, pad2; | short flag; | ||||
| short pad; | |||||
| } CameraStereoSettings; | } CameraStereoSettings; | ||||
| typedef struct Camera { | typedef struct Camera { | ||||
| ID id; | ID id; | ||||
| struct AnimData *adt; /* animation data (must be immediately after id for utilities to use it) */ | struct AnimData *adt; /* animation data (must be immediately after id for utilities to use it) */ | ||||
| char type; /* CAM_PERSP, CAM_ORTHO or CAM_PANO */ | char type; /* CAM_PERSP, CAM_ORTHO or CAM_PANO */ | ||||
| char dtx; /* draw type extra */ | char dtx; /* draw type extra */ | ||||
| ▲ Show 20 Lines • Show All 80 Lines • ▼ Show 20 Lines | |||||
| /* stereo->pivot */ | /* stereo->pivot */ | ||||
| enum { | enum { | ||||
| CAM_S3D_PIVOT_LEFT = 0, | CAM_S3D_PIVOT_LEFT = 0, | ||||
| CAM_S3D_PIVOT_RIGHT = 1, | CAM_S3D_PIVOT_RIGHT = 1, | ||||
| CAM_S3D_PIVOT_CENTER = 2, | CAM_S3D_PIVOT_CENTER = 2, | ||||
| }; | }; | ||||
| /* stereo->flag */ | |||||
| enum { | |||||
| CAM_S3D_SPHERICAL = (1 << 0), | |||||
| }; | |||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| } | } | ||||
| #endif | #endif | ||||
| #endif | #endif | ||||