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