Minetest 5.10.0-dev
 
Loading...
Searching...
No Matches
sidebyside.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 "stereo.h"
23
25{
26public:
28
29 void setRenderSource(RenderSource *_source) override;
30 void setRenderTarget(RenderTarget *_target) override;
31
32 void reset(PipelineContext &context) override {}
33 void run(PipelineContext &context) override;
34private:
39};
40
41void populateSideBySidePipeline(RenderPipeline *pipeline, Client *client, bool horizontal, bool flipped, v2f &virtual_size_scale);
Definition client.h:118
Definition sidebyside.h:25
void setRenderTarget(RenderTarget *_target) override
Assigned render target to this step.
Definition sidebyside.cpp:33
void run(PipelineContext &context) override
Runs the step.
Definition sidebyside.cpp:38
v2f offset
Definition sidebyside.h:36
RenderTarget * target
Definition sidebyside.h:38
u8 texture_index
Definition sidebyside.h:35
void setRenderSource(RenderSource *_source) override
Assigns render source to this step.
Definition sidebyside.cpp:29
DrawImageStep(u8 texture_index, v2f offset)
Definition sidebyside.cpp:25
void reset(PipelineContext &context) override
Definition sidebyside.h:32
RenderSource * source
Definition sidebyside.h:37
Render Pipeline provides a flexible way to execute rendering steps in the engine.
Definition pipeline.h:364
Represents a source of rendering information such as textures.
Definition pipeline.h:75
Base class for rendering steps in the pipeline.
Definition pipeline.h:295
Represents a render target (screen or framebuffer)
Definition pipeline.h:93
core::vector2d< f32 > v2f
Definition irr_v2d.h:26
Definition activeobjectmgr.cpp:26
void populateSideBySidePipeline(RenderPipeline *pipeline, Client *client, bool horizontal, bool flipped, v2f &virtual_size_scale)
Definition sidebyside.cpp:49
Definition pipeline.h:42