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

Swaps two textures in the texture buffer. More...

#include <pipeline.h>

+ Inheritance diagram for SwapTexturesStep:
+ Collaboration diagram for SwapTexturesStep:

Public Member Functions

 SwapTexturesStep (TextureBuffer *buffer, u8 texture_a, u8 texture_b)
 
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

TextureBufferbuffer
 
u8 texture_a
 
u8 texture_b
 

Detailed Description

Swaps two textures in the texture buffer.

Constructor & Destructor Documentation

◆ SwapTexturesStep()

SwapTexturesStep::SwapTexturesStep ( TextureBuffer * buffer,
u8 texture_a,
u8 texture_b )

Member Function Documentation

◆ run()

void SwapTexturesStep::run ( PipelineContext & context)
overridevirtual

Runs the step.

This method is invoked by the pipeline.

Implements RenderStep.

References buffer, TextureBuffer::swapTextures(), texture_a, and texture_b.

+ Here is the call graph for this function:

Member Data Documentation

◆ buffer

TextureBuffer* SwapTexturesStep::buffer
private

Referenced by run().

◆ texture_a

u8 SwapTexturesStep::texture_a
private

Referenced by run().

◆ texture_b

u8 SwapTexturesStep::texture_b
private

Referenced by run().


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