Minetest
5.10.0-dev
Loading...
Searching...
No Matches
interlaced.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 "
stereo.h
"
23
24
class
InitInterlacedMaskStep
:
public
TrivialRenderStep
25
{
26
public
:
27
InitInterlacedMaskStep
(
TextureBuffer
*
buffer
, u8
index
);
28
void
run
(
PipelineContext
&context);
29
private
:
30
TextureBuffer
*
buffer
;
31
video::ITexture *
last_mask
{
nullptr
};
32
u8
index
;
33
};
34
35
void
populateInterlacedPipeline
(
RenderPipeline
*pipeline,
Client
*
client
);
Client
Definition
client.h:119
InitInterlacedMaskStep
Definition
interlaced.h:25
InitInterlacedMaskStep::last_mask
video::ITexture * last_mask
Definition
interlaced.h:31
InitInterlacedMaskStep::InitInterlacedMaskStep
InitInterlacedMaskStep(TextureBuffer *buffer, u8 index)
Definition
interlaced.cpp:27
InitInterlacedMaskStep::buffer
TextureBuffer * buffer
Definition
interlaced.h:30
InitInterlacedMaskStep::run
void run(PipelineContext &context)
Runs the step.
Definition
interlaced.cpp:32
InitInterlacedMaskStep::index
u8 index
Definition
interlaced.h:32
RenderPipeline
Render Pipeline provides a flexible way to execute rendering steps in the engine.
Definition
pipeline.h:364
TextureBuffer
Texture buffer represents a framebuffer with a multiple attached textures.
Definition
pipeline.h:122
TrivialRenderStep
Provides default empty implementation of supporting methods in a rendering step.
Definition
pipeline.h:321
populateInterlacedPipeline
void populateInterlacedPipeline(RenderPipeline *pipeline, Client *client)
Definition
interlaced.cpp:51
client
Definition
activeobjectmgr.cpp:26
stereo.h
PipelineContext
Definition
pipeline.h:42
client
render
interlaced.h
Generated on Sun Sep 1 2024 10:52:54 for Minetest by
1.11.0