Luanti 5.15.0-dev
 
Loading...
Searching...
No Matches
anaglyph.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 "pipeline.h"
8
13{
14public:
16
17 void run(PipelineContext &context) override;
18private:
20};
21
27{
28public:
30
31 void reset(PipelineContext &context) override {}
32 void activate(PipelineContext &context) override;
33private:
35};
36
37
43{
44public:
46
47 virtual void activate(PipelineContext &context) override;
48private:
50 bool enable;
51};
52
void populateAnaglyphPipeline(RenderPipeline *pipeline, Client *client)
Definition anaglyph.cpp:53
Resets depth buffer of the current render target.
Definition anaglyph.h:27
void activate(PipelineContext &context) override
Activate the render target and configure OpenGL state for the output.
Definition anaglyph.cpp:35
ClearDepthBufferTarget(RenderTarget *target)
ClearDepthBufferTarget.
Definition anaglyph.cpp:31
void reset(PipelineContext &context) override
Resets the state of the object for the next pipeline iteration.
Definition anaglyph.h:31
RenderTarget * target
Definition anaglyph.h:34
Definition client.h:106
Enables or disables override material when activated.
Definition anaglyph.h:43
bool enable
Definition anaglyph.h:50
ConfigureOverrideMaterialTarget(RenderTarget *upstream, bool enable)
Definition anaglyph.cpp:41
virtual void activate(PipelineContext &context) override
Activate the render target and configure OpenGL state for the output.
Definition anaglyph.cpp:46
RenderTarget * upstream
Definition anaglyph.h:49
Render Pipeline provides a flexible way to execute rendering steps in the engine.
Definition pipeline.h:353
Represents a render target (screen or framebuffer)
Definition pipeline.h:78
Set color mask when rendering the next steps.
Definition anaglyph.h:13
int color_mask
Definition anaglyph.h:19
void run(PipelineContext &context) override
Runs the step.
Definition anaglyph.cpp:19
SetColorMaskStep(int color_mask)
SetColorMaskStep step.
Definition anaglyph.cpp:15
Provides default empty implementation of supporting methods in a rendering step.
Definition pipeline.h:310
Definition activeobjectmgr.cpp:11
Definition pipeline.h:27