Minetest 5.9.0-dev
 
Loading...
Searching...
No Matches
stereo.h
Go to the documentation of this file.
1/*
2Minetest
3Copyright (C) 2010-2013 celeron55, Perttu Ahola <celeron55@gmail.com>
4Copyright (C) 2017 numzero, Lobachevskiy Vitaliy <numzer0@yandex.ru>
5
6This program is free software; you can redistribute it and/or modify
7it under the terms of the GNU Lesser General Public License as published by
8the Free Software Foundation; either version 2.1 of the License, or
9(at your option) any later version.
10
11This program is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU Lesser General Public License for more details.
15
16You should have received a copy of the GNU Lesser General Public License along
17with this program; if not, write to the Free Software Foundation, Inc.,
1851 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19*/
20
21#pragma once
22#include "core.h"
23#include "plain.h"
24#include "pipeline.h"
25
26
31{
32public:
33 OffsetCameraStep(float eye_offset);
34 OffsetCameraStep(bool right_eye);
35
36 void run(PipelineContext &context) override;
37 void reset(PipelineContext &context) override;
38private:
39 core::matrix4 base_transform;
40 core::matrix4 move;
41};
Offset camera for a specific eye in stereo rendering mode.
Definition: stereo.h:31
core::matrix4 move
Definition: stereo.h:40
void run(PipelineContext &context) override
Runs the step.
Definition: stereo.cpp:44
void reset(PipelineContext &context) override
Definition: stereo.cpp:39
core::matrix4 base_transform
Definition: stereo.h:39
Provides default empty implementation of supporting methods in a rendering step.
Definition: pipeline.h:314
Definition: pipeline.h:35