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 | |
| 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.
Here is the call graph for this function:
|
private |
Referenced by run().
|
private |
Referenced by run().
|
private |
Referenced by run().