A modifier that will copy a portion of one texture and place it into another. More...
#include <blitmodifier.h>
Public Member Functions | |
BlitModifier () | |
Blank constructor. | |
virtual | ~BlitModifier () |
Class destructor. | |
virtual String | GetName () const |
Gets the name of this modifier. More... | |
virtual void | Modify (TextureBuffer &Buffer) |
Alters the generated pixels in a TextureBuffer. More... | |
BlitModifier & | SetDestRect (const WholeRect &Rect) |
Sets the Rect on the destination texture to copy pixels to. More... | |
BlitModifier & | SetDestRect (const Whole RectLeft, const Whole RectTop, const Whole RectRight, const Whole RectBottom) |
Sets the Rect on the destination texture to copy pixels to. More... | |
BlitModifier & | SetSrcRect (const WholeRect &Rect) |
Sets the Rect on the source texture to copy pixels from. More... | |
BlitModifier & | SetSrcRect (const Whole RectLeft, const Whole RectTop, const Whole RectRight, const Whole RectBottom) |
Sets the Rect on the source texture to copy pixels from. More... | |
BlitModifier & | SetSrcTexture (TextureBuffer *SrcTexture) |
Sets the source texture to be copied from. More... | |
Public Member Functions inherited from Mezzanine::Graphics::Procedural::TextureModifier | |
TextureModifier () | |
Blank constructor. | |
virtual | ~TextureModifier () |
Class destructor. | |
Protected Attributes | |
WholeRect | BlitDestRect |
The bounds of the pixels to be copied over in the destination texture. More... | |
WholeRect | BlitSrcRect |
The bounds of the pixels to copy from the source texture. More... | |
TextureBuffer * | BlitSrcTexture |
A pointer to the source texture from which to copy pixels. More... | |
A modifier that will copy a portion of one texture and place it into another.
Definition at line 84 of file blitmodifier.h.
|
virtual |
Gets the name of this modifier.
Implements Mezzanine::Graphics::Procedural::TextureModifier.
Definition at line 109 of file blitmodifier.cpp.
|
virtual |
Alters the generated pixels in a TextureBuffer.
Buffer | The buffer to be modified. |
Implements Mezzanine::Graphics::Procedural::TextureModifier.
Definition at line 88 of file blitmodifier.cpp.
BlitModifier & Mezzanine::Graphics::Procedural::BlitModifier::SetDestRect | ( | const WholeRect & | Rect | ) |
Sets the Rect on the destination texture to copy pixels to.
Rect | The Rect describing the bounds for the pixels to copy to on the desination texture. Initial value is a zero Rect. |
Definition at line 133 of file blitmodifier.cpp.
BlitModifier & Mezzanine::Graphics::Procedural::BlitModifier::SetDestRect | ( | const Whole | RectLeft, |
const Whole | RectTop, | ||
const Whole | RectRight, | ||
const Whole | RectBottom | ||
) |
Sets the Rect on the destination texture to copy pixels to.
RectLeft | The Left edge of the destination texture Rect. Initial Value: 0. |
RectTop | The Top edge of the destination texture Rect. Initial Value: 0. |
RectRight | The Right edge of the destination texture Rect. Initial Value: 0. |
RectBottom | The Bottom edge of the destination texture Rect. Initial Value: 0. |
Definition at line 139 of file blitmodifier.cpp.
BlitModifier & Mezzanine::Graphics::Procedural::BlitModifier::SetSrcRect | ( | const WholeRect & | Rect | ) |
Sets the Rect on the source texture to copy pixels from.
Rect | The Rect describing the bounds for the pixels to copy from the source texture. Initial value is a zero Rect. |
Definition at line 121 of file blitmodifier.cpp.
BlitModifier & Mezzanine::Graphics::Procedural::BlitModifier::SetSrcRect | ( | const Whole | RectLeft, |
const Whole | RectTop, | ||
const Whole | RectRight, | ||
const Whole | RectBottom | ||
) |
Sets the Rect on the source texture to copy pixels from.
RectLeft | The Left edge of the source texture Rect. Initial Value: 0. |
RectTop | The Top edge of the source texture Rect. Initial Value: 0. |
RectRight | The Right edge of the source texture Rect. Initial Value: 0. |
RectBottom | The Bottom edge of the source texture Rect. Initial Value: 0. |
Definition at line 127 of file blitmodifier.cpp.
BlitModifier & Mezzanine::Graphics::Procedural::BlitModifier::SetSrcTexture | ( | TextureBuffer * | SrcTexture | ) |
Sets the source texture to be copied from.
SrcTexture | A pointer to the source texture from which to copy pixels. |
Definition at line 115 of file blitmodifier.cpp.
|
protected |
The bounds of the pixels to be copied over in the destination texture.
Definition at line 95 of file blitmodifier.h.
|
protected |
The bounds of the pixels to copy from the source texture.
Definition at line 92 of file blitmodifier.h.
|
protected |
A pointer to the source texture from which to copy pixels.
Definition at line 89 of file blitmodifier.h.