Camera settings structure. More...
#include <kanzi/core.ui/graphics3d/render_pass.hpp>
Public Member Functions | |
CameraSettings ()=default | |
Constructor. More... | |
CameraSettings (const CameraSettings &other)=default | |
Copy constructor. More... | |
CameraSettings (CameraSettings &&other)=default | |
Move constructor. More... | |
void | initializeFrom (Renderer3D &renderer, Camera &cameraNode, const Vector4 &viewport, bool force) |
Initializes the camera settings by reading properties from a node. More... | |
bool | isComplete () const |
Indicates whether the camera settings structure is complete. More... | |
bool | operator!= (const CameraSettings &other) const |
Not equals operator. More... | |
CameraSettings & | operator= (const CameraSettings &other)=default |
Copy operator. More... | |
CameraSettings & | operator= (CameraSettings &&other)=default |
Move operator. More... | |
bool | operator== (const CameraSettings &other) const |
Equals operator. More... | |
Public Attributes | |
optional< float > | aspectRatioMultiplier |
Aspect ratio multiplier. More... | |
Camera * | cameraNodeFromRenderPass |
The Camera node set in this render pass. More... | |
optional< Vector3 > | cameraPosition |
Camera position. More... | |
optional< Vector2 > | nearFarPlanes |
Camera Z range. More... | |
optional< Matrix4x4 > | projectionMatrix |
Projection matrix. More... | |
optional< Matrix4x4 > | projectionMatrixModifier |
Projection matrix modifier. More... | |
optional< Matrix4x4 > | viewMatrix |
View (camera) matrix. More... | |
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.