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

#include <sidebyside.h>

+ Inheritance diagram for DrawImageStep:
+ Collaboration diagram for DrawImageStep:

Public Member Functions

 DrawImageStep (u8 texture_index, v2f offset)
 
void setRenderSource (RenderSource *_source) override
 Assigns render source to this step.
 
void setRenderTarget (RenderTarget *_target) override
 Assigned render target to this step.
 
void reset (PipelineContext &context) override
 
void run (PipelineContext &context) override
 Runs the step.
 
- Public Member Functions inherited from RenderPipelineObject
virtual ~RenderPipelineObject ()=default
 

Private Attributes

u8 texture_index
 
v2f offset
 
RenderSourcesource
 
RenderTargettarget
 

Constructor & Destructor Documentation

◆ DrawImageStep()

DrawImageStep::DrawImageStep ( u8 texture_index,
v2f offset )

Member Function Documentation

◆ reset()

void DrawImageStep::reset ( PipelineContext & context)
inlineoverridevirtual

Reimplemented from RenderPipelineObject.

◆ run()

void DrawImageStep::run ( PipelineContext & context)
overridevirtual

Runs the step.

This method is invoked by the pipeline.

Implements RenderStep.

References RenderTarget::activate(), PipelineContext::device, RenderSource::getTexture(), offset, source, target, and texture_index.

+ Here is the call graph for this function:

◆ setRenderSource()

void DrawImageStep::setRenderSource ( RenderSource * source)
overridevirtual

Assigns render source to this step.

Parameters
sourcesource of rendering information

Implements RenderStep.

References source.

Referenced by populateSideBySidePipeline().

+ Here is the caller graph for this function:

◆ setRenderTarget()

void DrawImageStep::setRenderTarget ( RenderTarget * target)
overridevirtual

Assigned render target to this step.

Parameters
targetrender target to send output to.

Implements RenderStep.

References target.

Member Data Documentation

◆ offset

v2f DrawImageStep::offset
private

Referenced by run().

◆ source

RenderSource* DrawImageStep::source
private

Referenced by run(), and setRenderSource().

◆ target

RenderTarget* DrawImageStep::target
private

Referenced by run(), and setRenderTarget().

◆ texture_index

u8 DrawImageStep::texture_index
private

Referenced by run().


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