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