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

Implements direct output to screen framebuffer. More...

#include <pipeline.h>

+ Inheritance diagram for ScreenTarget:
+ Collaboration diagram for ScreenTarget:

Public Member Functions

virtual void activate (PipelineContext &context) override
 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
 

Private Attributes

core::dimension2du size
 

Additional Inherited Members

- Protected Attributes inherited from RenderTarget
bool m_clear {true}
 

Detailed Description

Implements direct output to screen framebuffer.

Member Function Documentation

◆ activate()

void ScreenTarget::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::clear_color, PipelineContext::device, RenderTarget::m_clear, and size.

+ Here is the call graph for this function:

◆ reset()

void ScreenTarget::reset ( PipelineContext & context)
overridevirtual

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

Reimplemented from RenderTarget.

References PipelineContext::device, RenderTarget::reset(), and size.

+ Here is the call graph for this function:

Member Data Documentation

◆ size

core::dimension2du ScreenTarget::size
private

Referenced by activate(), and reset().


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