![]() |
MAGE
v0.171.0
Matthias Advanced Game Engine
|
#include <camera.hpp>
Public Member Functions | |
| constexpr | CameraLens () noexcept |
| constexpr | CameraLens (const CameraLens &lens) noexcept=default |
| constexpr | CameraLens (CameraLens &&lens) noexcept=default |
| ~CameraLens ()=default | |
| CameraLens & | operator= (const CameraLens &lens) noexcept=default |
| CameraLens & | operator= (CameraLens &&lens) noexcept=default |
| constexpr bool | HasFiniteAperture () const noexcept |
| constexpr F32 | GetApertureRadius () const noexcept |
| constexpr void | SetApertureRadius (F32 aperture_radius) noexcept |
| constexpr F32 | GetFocalLength () const noexcept |
| constexpr void | SetFocalLength (F32 focal_length) noexcept |
| constexpr F32 | GetFocusDistance () const noexcept |
| constexpr void | SetFocusDistance (F32 focus_distance) noexcept |
Private Attributes | |
| F32 | m_aperture_radius |
| F32 | m_focal_length |
| F32 | m_focus_distance |
A class of camera lenses.
|
noexcept |
Constructs a camera settings.
|
defaultnoexcept |
Constructs a camera lens from the given camera lens.
| [in] | lens | A reference to the camera lens to copy. |
|
defaultnoexcept |
Constructs a camera lens by moving the given camera lens.
| [in] | lens | A reference to the camera lens to move. |
|
default |
Destructs this camera lens.
|
noexcept |
Returns the radius of the lens aperture of this camera lens.
|
noexcept |
Returns the focal length of this camera lens.
|
noexcept |
Returns the focus distance of this camera lens.
|
noexcept |
Checks whether this camera lens has a finite lens aperture.
true if this camera lens has a finite lens aperture. false otherwise.
|
defaultnoexcept |
Copies the given camera lens to this camera lens.
| [in] | lens | A reference to the camera lens to copy. |
|
defaultnoexcept |
Moves the given camera lens to this camera lens.
| [in] | lens | A reference to the camera lens to move. |
|
noexcept |
Sets the radius of the lens aperture of this camera lens to the given value.
| [in] | aperture_radius | The radius of the lens aperture. |
|
noexcept |
Sets the focal length of this camera lens to the given value.
| [in] | focal_length | The focal length. |
|
noexcept |
Sets the focus distance of this camera lens to the given value.
| [in] | focus_distance | The focus distance. |
|
private |
The radius of the lens aperture of this camera lens.
|
private |
The focal length (i.e. distance between the lens aperture and the focal point/focus expressed in camera space) of this camera lens.
|
private |
The focus distance (i.e. distance between the lens aperture and the objects in perfect focus expressed in camera space) of this camera lens.