Luanti 5.16.0-dev
Loading...
Searching...
No Matches
RenderTarget Class Reference

Represents a render target (screen or framebuffer). More...

#include <pipeline.h>

Inheritance diagram for RenderTarget:
Collaboration diagram for RenderTarget:

Public Member Functions

virtual void activate (PipelineContext &context)
 Activate the render target and configure OpenGL state for the output.
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

Protected Attributes

bool m_clear {true}

Detailed Description

Represents a render target (screen or framebuffer).

Member Function Documentation

◆ activate()

virtual void RenderTarget::activate ( PipelineContext & context)
inlinevirtual

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

This is usually done by

See also
RenderStep implementations.

Reimplemented in ClearDepthBufferTarget, ConfigureOverrideMaterialTarget, DynamicTarget, ScreenTarget, and TextureBufferOutput.

References m_clear.

Referenced by ScreenTarget::activate(), and TextureBufferOutput::activate().

Here is the caller graph for this function:

◆ reset()

virtual void RenderTarget::reset ( PipelineContext & context)
inlineoverridevirtual

Resets the state of the object for the next pipeline iteration.

Reimplemented from RenderPipelineObject.

Reimplemented in ClearDepthBufferTarget, and ScreenTarget.

References m_clear.

Referenced by ScreenTarget::reset().

Here is the caller graph for this function:

Member Data Documentation

◆ m_clear

bool RenderTarget::m_clear {true}
protected

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