Minetest 5.10.0-dev
 
Loading...
Searching...
No Matches
OffsetCameraStep Class Reference

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
 

Detailed Description

Offset camera for a specific eye in stereo rendering mode.

Constructor & Destructor Documentation

◆ OffsetCameraStep() [1/2]

OffsetCameraStep::OffsetCameraStep ( float eye_offset)

References move.

◆ OffsetCameraStep() [2/2]

OffsetCameraStep::OffsetCameraStep ( bool right_eye)

References BS, g_settings, Settings::getFloat(), and move.

+ Here is the call graph for this function:

Member Function Documentation

◆ reset()

void OffsetCameraStep::reset ( PipelineContext & context)
overridevirtual

Reimplemented from TrivialRenderStep.

References base_transform, PipelineContext::client, Client::getCamera(), and Camera::getCameraNode().

+ Here is the call graph for this function:

◆ run()

void OffsetCameraStep::run ( PipelineContext & context)
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:

Member Data Documentation

◆ base_transform

core::matrix4 OffsetCameraStep::base_transform
private

Referenced by reset(), and run().

◆ move

core::matrix4 OffsetCameraStep::move
private

The documentation for this class was generated from the following files: