Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
SetRenderTargetStep Class Reference

Dynamically changes render target of another step. More...

#include <pipeline.h>

+ Inheritance diagram for SetRenderTargetStep:
+ Collaboration diagram for SetRenderTargetStep:

Public Member Functions

 SetRenderTargetStep (RenderStep *step, RenderTarget *target)
 
virtual void run (PipelineContext &context) override
 Runs the step.
 
- Public Member Functions inherited from TrivialRenderStep
virtual void setRenderSource (RenderSource *source) override
 Assigns render source to this step.
 
virtual void setRenderTarget (RenderTarget *target) override
 Assigned render target to this step.
 
virtual void reset (PipelineContext &) override
 
- Public Member Functions inherited from RenderPipelineObject
virtual ~RenderPipelineObject ()=default
 

Private Attributes

RenderStepstep
 
RenderTargettarget
 

Detailed Description

Dynamically changes render target of another step.

This allows re-running parts of the pipeline with different outputs

Constructor & Destructor Documentation

◆ SetRenderTargetStep()

SetRenderTargetStep::SetRenderTargetStep ( RenderStep * step,
RenderTarget * target )

Member Function Documentation

◆ run()

void SetRenderTargetStep::run ( PipelineContext & context)
overridevirtual

Runs the step.

This method is invoked by the pipeline.

Implements RenderStep.

References RenderStep::setRenderTarget(), step, and target.

+ Here is the call graph for this function:

Member Data Documentation

◆ step

RenderStep* SetRenderTargetStep::step
private

Referenced by run().

◆ target

RenderTarget* SetRenderTargetStep::target
private

Referenced by run().


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