Skip to main content

PerspectiveCameraContext Struct

Immutable projection context for perspective-camera dependent operations. More...

Declaration

struct helios::engine::scene::types::PerspectiveCameraContext { ... }

Public Member Attributes Index

const floataspectRatio_ = 1.0f

The aspect ratio of the camera (width/height). More...

const floatzNear_ = 0.1f

The near clipping plane distance. More...

const floatzFar_ = 1000.0f

The far clipping plane distance. More...

const floatfovY_ = radians(90)

The vertical field of view in radians. More...

Description

Immutable projection context for perspective-camera dependent operations.

Definition at line 21 of file PerspectiveCameraContext.ixx.

Public Member Attributes

aspectRatio_

const float helios::engine::scene::types::PerspectiveCameraContext::aspectRatio_ = 1.0f

The aspect ratio of the camera (width/height).

Defaults to 1.0.

Definition at line 28 of file PerspectiveCameraContext.ixx.

28 const float aspectRatio_ = 1.0f;

fovY_

const float helios::engine::scene::types::PerspectiveCameraContext::fovY_ = radians(90)

The vertical field of view in radians.

Defaults to 90 degrees (converted to radians).

Definition at line 49 of file PerspectiveCameraContext.ixx.

49 const float fovY_ = radians(90);

zFar_

const float helios::engine::scene::types::PerspectiveCameraContext::zFar_ = 1000.0f

The far clipping plane distance.

Defaults to 1000.0.

Definition at line 42 of file PerspectiveCameraContext.ixx.

42 const float zFar_ = 1000.0f;

zNear_

const float helios::engine::scene::types::PerspectiveCameraContext::zNear_ = 0.1f

The near clipping plane distance.

Defaults to 0.1.

Definition at line 35 of file PerspectiveCameraContext.ixx.

35 const float zNear_ = 0.1f;

The documentation for this struct was generated from the following file:


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.