Magnum::Trade::CameraData class

3D camera data

Constructors, destructors, conversion operators

CameraData(Rad fov, Float near, Float far, const void* importerState = nullptr) explicit noexcept
Constructor.
CameraData(const CameraData&) deleted
Copying is not allowed.
CameraData(CameraData&&) noexcept defaulted
Move constructor.

Public functions

auto operator=(const CameraData&) -> CameraData& deleted
Copying is not allowed.
auto operator=(CameraData&&) noexcept -> CameraData& defaulted
Move assignment.
auto fov() const -> Rad
Field-of-view angle.
auto near() const -> Float
Near clipping plane.
auto far() const -> Float
Far clipping plane.
auto importerState() const -> const void*
Importer-specific state.

Function documentation

Magnum::Trade::CameraData::CameraData(Rad fov, Float near, Float far, const void* importerState = nullptr) explicit noexcept

Constructor.

Parameters
fov Field-of-view angle
near Near clipping plane
far Far clipping plane
importerState Importer-specific state

If NaN is specified for any parameter, default value is used instead, which is 35.0_degf for fov, 0.01f for near and 100.0f for far.

const void* Magnum::Trade::CameraData::importerState() const

Importer-specific state.

See AbstractImporter::importerState() for more information.