Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
stereo.h
Go to the documentation of this file.
1// Luanti
2// SPDX-License-Identifier: LGPL-2.1-or-later
3// Copyright (C) 2010-2013 celeron55, Perttu Ahola <celeron55@gmail.com>
4// Copyright (C) 2017 numzero, Lobachevskiy Vitaliy <numzer0@yandex.ru>
5
6#pragma once
7#include "core.h"
8#include "plain.h"
9#include "pipeline.h"
10
11
16{
17public:
18 OffsetCameraStep(float eye_offset);
19 OffsetCameraStep(bool right_eye);
20
21 void run(PipelineContext &context) override;
22 void reset(PipelineContext &context) override;
23private:
24 core::matrix4 base_transform;
25 core::matrix4 move;
26};
Offset camera for a specific eye in stereo rendering mode.
Definition stereo.h:16
OffsetCameraStep(float eye_offset)
Definition stereo.cpp:12
core::matrix4 move
Definition stereo.h:25
void run(PipelineContext &context) override
Runs the step.
Definition stereo.cpp:29
void reset(PipelineContext &context) override
Definition stereo.cpp:24
core::matrix4 base_transform
Definition stereo.h:24
Provides default empty implementation of supporting methods in a rendering step.
Definition pipeline.h:310
Definition pipeline.h:27