Blender V4.3
camera.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2011-2022 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
7#include <pxr/base/gf/camera.h>
8#include <pxr/base/gf/vec2f.h>
9
10struct ARegion;
11struct Object;
12struct View3D;
13struct Depsgraph;
14
15namespace blender::render::hydra {
16
17pxr::GfCamera gf_camera(const Depsgraph *depsgraph,
18 const View3D *v3d,
19 const ARegion *region,
20 const pxr::GfVec4f &border);
21
22pxr::GfCamera gf_camera(const Object *camera_obj,
23 const pxr::GfVec2i &res,
24 const pxr::GfVec4f &border);
25
26} // namespace blender::render::hydra
const Depsgraph * depsgraph
static pxr::GfCamera gf_camera(const CameraParams &params, const pxr::GfVec2i &res, const pxr::GfVec4f &border)