float RE_engine_get_camera_shift_x(RenderEngine *engine, Object *camera) { Render *re = engine->re; return BKE_camera_multiview_shift_x(re ? &re->r : NULL, camera, re->viewname); }
void BKE_camera_multiview_params(RenderData *rd, CameraParams *params, Object *camera, const char *viewname) { if (camera->type == OB_CAMERA) { params->shiftx = BKE_camera_multiview_shift_x(rd, camera, viewname); } }