Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
sidebyside.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 "stereo.h"
8
10{
11public:
13
14 void setRenderSource(RenderSource *_source) override;
15 void setRenderTarget(RenderTarget *_target) override;
16
17 void reset(PipelineContext &context) override {}
18 void run(PipelineContext &context) override;
19private:
24};
25
26void populateSideBySidePipeline(RenderPipeline *pipeline, Client *client, bool horizontal, bool flipped, v2f &virtual_size_scale);
Definition client.h:105
Definition sidebyside.h:10
void setRenderTarget(RenderTarget *_target) override
Assigned render target to this step.
Definition sidebyside.cpp:18
void run(PipelineContext &context) override
Runs the step.
Definition sidebyside.cpp:23
v2f offset
Definition sidebyside.h:21
RenderTarget * target
Definition sidebyside.h:23
u8 texture_index
Definition sidebyside.h:20
void setRenderSource(RenderSource *_source) override
Assigns render source to this step.
Definition sidebyside.cpp:14
DrawImageStep(u8 texture_index, v2f offset)
Definition sidebyside.cpp:10
void reset(PipelineContext &context) override
Definition sidebyside.h:17
RenderSource * source
Definition sidebyside.h:22
Render Pipeline provides a flexible way to execute rendering steps in the engine.
Definition pipeline.h:349
Represents a source of rendering information such as textures.
Definition pipeline.h:60
Base class for rendering steps in the pipeline.
Definition pipeline.h:280
Represents a render target (screen or framebuffer)
Definition pipeline.h:78
core::vector2d< f32 > v2f
Definition irr_v2d.h:11
Definition activeobjectmgr.cpp:11
void populateSideBySidePipeline(RenderPipeline *pipeline, Client *client, bool horizontal, bool flipped, v2f &virtual_size_scale)
Definition sidebyside.cpp:34
Definition pipeline.h:27