Twists the pixel positions in a circle on the Texture. More...
#include <vortexmodifier.h>
Public Member Functions | |
VortexModifier () | |
Blank constructor. | |
virtual | ~VortexModifier () |
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... | |
VortexModifier & | SetVortexCenter (const Vector2 &Center) |
Sets the center point where the texture will be twisted. More... | |
VortexModifier & | SetVortexCenter (const Real X, const Real Y) |
Sets the center point where the texture will be twisted. More... | |
VortexModifier & | SetVortexCenterX (const Real X) |
Sets the center point on the X axis where the texture will be twisted. More... | |
VortexModifier & | SetVortexCenterY (const Real Y) |
Sets the center point on the Y axis where the texture will be twisted. More... | |
VortexModifier & | SetVortexRadius (const Vector2 &Radius) |
Sets the radius of the twisting circle. More... | |
VortexModifier & | SetVortexRadius (const Real X, const Real Y) |
Sets the radius of the twisting circle. More... | |
VortexModifier & | SetVortexRadiusX (const Real X) |
Sets the radius on the X axis of the twisting circle. More... | |
VortexModifier & | SetVortexRadiusY (const Real Y) |
Sets the radius on the Y axis of the twisting circle. More... | |
VortexModifier & | SetVortexTwist (const Real Twist) |
Sets the angle by which to rotate pixels within the vortex. More... | |
Public Member Functions inherited from Mezzanine::Graphics::Procedural::TextureModifier | |
TextureModifier () | |
Blank constructor. | |
virtual | ~TextureModifier () |
Class destructor. | |
Protected Attributes | |
Real | TwistAngle |
The amount of twist to be applied in radians. More... | |
Vector2 | VortexCenter |
The center of the twisting circle on the texture. More... | |
Vector2 | VortexRadius |
The size of the twisting circle on the texture. More... | |
Twists the pixel positions in a circle on the Texture.
Definition at line 84 of file vortexmodifier.h.
|
virtual |
Gets the name of this modifier.
Implements Mezzanine::Graphics::Procedural::TextureModifier.
Definition at line 159 of file vortexmodifier.cpp.
|
virtual |
Alters the generated pixels in a TextureBuffer.
Buffer | The buffer to be modified. |
Implements Mezzanine::Graphics::Procedural::TextureModifier.
Definition at line 90 of file vortexmodifier.cpp.
VortexModifier & Mezzanine::Graphics::Procedural::VortexModifier::SetVortexCenter | ( | const Vector2 & | Center | ) |
Sets the center point where the texture will be twisted.
Center | The center of the twisting circle on the texture. Initial Value: (0.0,0.0). |
Definition at line 165 of file vortexmodifier.cpp.
VortexModifier & Mezzanine::Graphics::Procedural::VortexModifier::SetVortexCenter | ( | const Real | X, |
const Real | Y | ||
) |
Sets the center point where the texture will be twisted.
X | The center of the twisting circle on the X axis. Initial Value: 0.0. |
Y | The center of the twisting circle on the Y axis. Initial Value: 0.0. |
Definition at line 168 of file vortexmodifier.cpp.
VortexModifier & Mezzanine::Graphics::Procedural::VortexModifier::SetVortexCenterX | ( | const Real | X | ) |
Sets the center point on the X axis where the texture will be twisted.
X | The center of the twisting circle on the X axis. Initial Value: 0.0. |
Definition at line 171 of file vortexmodifier.cpp.
VortexModifier & Mezzanine::Graphics::Procedural::VortexModifier::SetVortexCenterY | ( | const Real | Y | ) |
Sets the center point on the Y axis where the texture will be twisted.
Y | The center of the twisting circle on the Y axis. Initial Value: 0.0. |
Definition at line 174 of file vortexmodifier.cpp.
VortexModifier & Mezzanine::Graphics::Procedural::VortexModifier::SetVortexRadius | ( | const Vector2 & | Radius | ) |
Sets the radius of the twisting circle.
Radius | The size of the twisting circle on the texture. Initial Value: (0.0,0.0). |
Definition at line 177 of file vortexmodifier.cpp.
VortexModifier & Mezzanine::Graphics::Procedural::VortexModifier::SetVortexRadius | ( | const Real | X, |
const Real | Y | ||
) |
Sets the radius of the twisting circle.
X | The radius of the twisting circle on the X axis. Initial Value: 0.0. |
Y | The radius of the twisting circle on the Y axis. Initial Value: 0.0. |
Definition at line 180 of file vortexmodifier.cpp.
VortexModifier & Mezzanine::Graphics::Procedural::VortexModifier::SetVortexRadiusX | ( | const Real | X | ) |
Sets the radius on the X axis of the twisting circle.
X | The radius of the twisting circle on the X axis. Initial Value: 0.0. |
Definition at line 183 of file vortexmodifier.cpp.
VortexModifier & Mezzanine::Graphics::Procedural::VortexModifier::SetVortexRadiusY | ( | const Real | Y | ) |
Sets the radius on the Y axis of the twisting circle.
Y | The radius of the twisting circle on the Y axis. Initial Value: 0.0. |
Definition at line 186 of file vortexmodifier.cpp.
VortexModifier & Mezzanine::Graphics::Procedural::VortexModifier::SetVortexTwist | ( | const Real | Twist | ) |
Sets the angle by which to rotate pixels within the vortex.
Twist | The amount of rotation in radians to be applied to pixels within the vortex. Initial Value: 0.0. |
Definition at line 189 of file vortexmodifier.cpp.
|
protected |
The amount of twist to be applied in radians.
Definition at line 95 of file vortexmodifier.h.
|
protected |
The center of the twisting circle on the texture.
Definition at line 89 of file vortexmodifier.h.
|
protected |
The size of the twisting circle on the texture.
Definition at line 92 of file vortexmodifier.h.