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

UpscaleStep step performs rescaling of the image in the source texture 0 to the size of the target. More...

#include <plain.h>

+ Inheritance diagram for UpscaleStep:
+ Collaboration diagram for UpscaleStep:

Public Member Functions

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 &context) override
 
virtual void run (PipelineContext &context) override
 Runs the step.
 
- Public Member Functions inherited from RenderPipelineObject
virtual ~RenderPipelineObject ()=default
 

Private Attributes

RenderSourcem_source
 
RenderTargetm_target
 

Detailed Description

UpscaleStep step performs rescaling of the image in the source texture 0 to the size of the target.

Member Function Documentation

◆ reset()

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

Reimplemented from RenderPipelineObject.

◆ run()

void UpscaleStep::run ( PipelineContext & context)
overridevirtual

Runs the step.

This method is invoked by the pipeline.

Implements RenderStep.

References RenderTarget::activate(), PipelineContext::device, RenderSource::getTexture(), m_source, m_target, and PipelineContext::target_size.

+ Here is the call graph for this function:

◆ setRenderSource()

virtual void UpscaleStep::setRenderSource ( RenderSource * source)
inlineoverridevirtual

Assigns render source to this step.

Parameters
sourcesource of rendering information

Implements RenderStep.

References m_source.

◆ setRenderTarget()

virtual void UpscaleStep::setRenderTarget ( RenderTarget * target)
inlineoverridevirtual

Assigned render target to this step.

Parameters
targetrender target to send output to.

Implements RenderStep.

References m_target.

Member Data Documentation

◆ m_source

RenderSource* UpscaleStep::m_source
private

Referenced by run(), and setRenderSource().

◆ m_target

RenderTarget* UpscaleStep::m_target
private

Referenced by run(), and setRenderTarget().


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