Offset camera for a specific eye in stereo rendering mode. More...
#include <stereo.h>
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.
|
overridevirtual |
Reimplemented from TrivialRenderStep.
References base_transform, PipelineContext::client, Client::getCamera(), and Camera::getCameraNode().
|
overridevirtual |
Runs the step.
This method is invoked by the pipeline.
Implements RenderStep.
References base_transform, PipelineContext::client, Client::getCamera(), Camera::getCameraNode(), and move.
|
private |
Referenced by OffsetCameraStep(), OffsetCameraStep(), and run().