Swaps two textures in the texture buffer. More...
#include <pipeline.h>
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 | |
TextureBuffer * | buffer |
u8 | texture_a |
u8 | texture_b |
Swaps two textures in the texture buffer.
SwapTexturesStep::SwapTexturesStep | ( | TextureBuffer * | buffer, |
u8 | texture_a, | ||
u8 | texture_b ) |
|
overridevirtual |
Runs the step.
This method is invoked by the pipeline.
Implements RenderStep.
References buffer, TextureBuffer::swapTextures(), texture_a, and texture_b.
|
private |
Referenced by run().
|
private |
Referenced by run().
|
private |
Referenced by run().