Camera settings structure. More...
#include <kanzi/core.ui/graphics3d/render_pass.hpp>
Public Member Functions | |
CameraSettings ()=default | |
Constructor. | |
CameraSettings (CameraSettings &&other)=default | |
Move constructor. | |
CameraSettings (const CameraSettings &other)=default | |
Copy constructor. | |
void | initializeFrom (Renderer3D &renderer, Camera &cameraNode, const Vector4 &viewport, bool force) |
Initializes the camera settings by reading properties from a node. | |
bool | isComplete () const |
Indicates whether the camera settings structure is complete. | |
bool | operator!= (const CameraSettings &other) const |
Not equals operator. | |
CameraSettings & | operator= (CameraSettings &&other)=default |
Move operator. | |
CameraSettings & | operator= (const CameraSettings &other)=default |
Copy operator. | |
bool | operator== (const CameraSettings &other) const |
Equals operator. | |
Public Attributes | |
optional< float > | aspectRatioMultiplier |
Aspect ratio multiplier. | |
Camera * | cameraNodeFromRenderPass |
The Camera node set in this render pass. | |
optional< Vector3 > | cameraPosition |
Camera position. | |
optional< Vector2 > | nearFarPlanes |
Camera Z range. | |
optional< Matrix4x4 > | projectionMatrix |
Projection matrix. | |
optional< Matrix4x4 > | projectionMatrixModifier |
Projection matrix modifier. | |
optional< Matrix4x4 > | viewMatrix |
View (camera) matrix. | |
Camera settings structure.
Kanzi passed the camera settings structure as a parameter downward to child render passes.
|
explicitdefault |
Constructor.
|
default |
Copy constructor.
other | Source camera settings. |
|
default |
Move constructor.
other | Source camera settings. |
|
inline |
Indicates whether the camera settings structure is complete.
A complete camera settings structure contains all possible settings.
void kanzi::RenderPass::CameraSettings::initializeFrom | ( | Renderer3D & | renderer, |
Camera & | cameraNode, | ||
const Vector4 & | viewport, | ||
bool | force ) |
Initializes the camera settings by reading properties from a node.
|
inline |
Equals operator.
other | Camera settings to compare against. |
|
inline |
Not equals operator.
other | Camera settings to compare against. |
|
default |
Copy operator.
other | Source camera settings. |
|
default |
Move operator.
other | Source camera settings. |
Camera* kanzi::RenderPass::CameraSettings::cameraNodeFromRenderPass |
optional<Vector2> kanzi::RenderPass::CameraSettings::nearFarPlanes |
Camera Z range.
Near plane first, then far plane.
optional<Matrix4x4> kanzi::RenderPass::CameraSettings::viewMatrix |
View (camera) matrix.
optional<Matrix4x4> kanzi::RenderPass::CameraSettings::projectionMatrix |
Projection matrix.
optional<Matrix4x4> kanzi::RenderPass::CameraSettings::projectionMatrixModifier |
Projection matrix modifier.
Intended to be passed downward to successive render passes. Kanzi multiplies this matrix to projection matrices from right if it is set.
optional<float> kanzi::RenderPass::CameraSettings::aspectRatioMultiplier |
Aspect ratio multiplier.
Intended to be passed downward to successive render passes. Kanzi multiplies the aspect ratio with this value before calculating projection if it is set.