Offset camera for a specific eye in stereo rendering mode. More...
#include <stereo.h>
Inheritance diagram for OffsetCameraStep:
Collaboration diagram for OffsetCameraStep:Public Member Functions | |
| OffsetCameraStep (float eye_offset) | |
| OffsetCameraStep (bool right_eye) | |
| void | run (PipelineContext &context) override |
| Runs the step. | |
| void | reset (PipelineContext &context) override |
Public Member Functions inherited from TrivialRenderStep | |
| virtual void | setRenderSource (RenderSource *source) override |
| Assigns render source to this step. | |
| virtual void | setRenderTarget (RenderTarget *target) override |
| Assigned render target to this step. | |
Public Member Functions inherited from RenderPipelineObject | |
| virtual | ~RenderPipelineObject ()=default |
Private Attributes | |
| core::matrix4 | base_transform |
| core::matrix4 | move |
Offset camera for a specific eye in stereo rendering mode.
| OffsetCameraStep::OffsetCameraStep | ( | float | eye_offset | ) |
References move.
| OffsetCameraStep::OffsetCameraStep | ( | bool | right_eye | ) |
References BS, g_settings, Settings::getFloat(), and move.
Here is the call graph for this function:
|
overridevirtual |
Reimplemented from TrivialRenderStep.
References base_transform, PipelineContext::client, Client::getCamera(), and Camera::getCameraNode().
Here is the call graph for this function:
|
overridevirtual |
Runs the step.
This method is invoked by the pipeline.
Implements RenderStep.
References base_transform, PipelineContext::client, Client::getCamera(), Camera::getCameraNode(), and move.
Here is the call graph for this function:
|
private |
Referenced by OffsetCameraStep(), OffsetCameraStep(), and run().