Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
ConfigureOverrideMaterialTarget Class Reference

Enables or disables override material when activated. More...

#include <anaglyph.h>

+ Inheritance diagram for ConfigureOverrideMaterialTarget:
+ Collaboration diagram for ConfigureOverrideMaterialTarget:

Public Member Functions

 ConfigureOverrideMaterialTarget (RenderTarget *upstream, bool enable)
 
virtual void activate (PipelineContext &context) override
 Activate the render target and configure OpenGL state for the output.
 
- Public Member Functions inherited from RenderTarget
virtual void reset (PipelineContext &context) override
 Resets the state of the object for the next pipeline iteration.
 
- Public Member Functions inherited from RenderPipelineObject
virtual ~RenderPipelineObject ()=default
 

Private Attributes

RenderTargetupstream
 
bool enable
 

Additional Inherited Members

- Protected Attributes inherited from RenderTarget
bool m_clear {true}
 

Detailed Description

Enables or disables override material when activated.

Constructor & Destructor Documentation

◆ ConfigureOverrideMaterialTarget()

ConfigureOverrideMaterialTarget::ConfigureOverrideMaterialTarget ( RenderTarget * upstream,
bool enable )

Member Function Documentation

◆ activate()

void ConfigureOverrideMaterialTarget::activate ( PipelineContext & context)
overridevirtual

Activate the render target and configure OpenGL state for the output.

This is usually done by

See also
RenderStep implementations.

Reimplemented from RenderTarget.

References RenderTarget::activate(), PipelineContext::device, enable, and upstream.

+ Here is the call graph for this function:

Member Data Documentation

◆ enable

bool ConfigureOverrideMaterialTarget::enable
private

Referenced by activate().

◆ upstream

RenderTarget* ConfigureOverrideMaterialTarget::upstream
private

Referenced by activate().


The documentation for this class was generated from the following files: