Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/BKE_camera.h
| Show All 33 Lines | |||||
| */ | */ | ||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| extern "C" { | extern "C" { | ||||
| #endif | #endif | ||||
| #include "DNA_vec_types.h" | #include "DNA_vec_types.h" | ||||
| struct Camera; | struct Camera; | ||||
| struct Depsgraph; | |||||
| struct Main; | struct Main; | ||||
| struct Object; | struct Object; | ||||
| struct RegionView3D; | struct RegionView3D; | ||||
| struct RenderData; | struct RenderData; | ||||
| struct Scene; | struct Scene; | ||||
| struct ViewLayer; | struct ViewLayer; | ||||
| struct rctf; | struct rctf; | ||||
| struct View3D; | struct View3D; | ||||
| ▲ Show 20 Lines • Show All 58 Lines • ▼ Show 20 Lines | |||||
| } CameraParams; | } CameraParams; | ||||
| /* values for CameraParams.zoom, need to be taken into account for some operations */ | /* values for CameraParams.zoom, need to be taken into account for some operations */ | ||||
| #define CAMERA_PARAM_ZOOM_INIT_CAMOB 1.0f | #define CAMERA_PARAM_ZOOM_INIT_CAMOB 1.0f | ||||
| #define CAMERA_PARAM_ZOOM_INIT_PERSP 2.0f | #define CAMERA_PARAM_ZOOM_INIT_PERSP 2.0f | ||||
| void BKE_camera_params_init(CameraParams *params); | void BKE_camera_params_init(CameraParams *params); | ||||
| void BKE_camera_params_from_object(CameraParams *params, const struct Object *camera); | void BKE_camera_params_from_object(CameraParams *params, const struct Object *camera); | ||||
| void BKE_camera_params_from_view3d(CameraParams *params, const struct View3D *v3d, const struct RegionView3D *rv3d); | void BKE_camera_params_from_view3d(CameraParams *params, const struct Depsgraph *depsgraph, const struct View3D *v3d, const struct RegionView3D *rv3d); | ||||
| void BKE_camera_params_compute_viewplane(CameraParams *params, int winx, int winy, float aspx, float aspy); | void BKE_camera_params_compute_viewplane(CameraParams *params, int winx, int winy, float aspx, float aspy); | ||||
| void BKE_camera_params_compute_matrix(CameraParams *params); | void BKE_camera_params_compute_matrix(CameraParams *params); | ||||
| /* Camera View Frame */ | /* Camera View Frame */ | ||||
| void BKE_camera_view_frame_ex( | void BKE_camera_view_frame_ex( | ||||
| const struct Scene *scene, const struct Camera *camera, | const struct Scene *scene, const struct Camera *camera, | ||||
| Show All 37 Lines | |||||