Twist some fragment of input image.
More...
#include <ProceduralTextureModifiers.h>
Twist some fragment of input image.
Twist parts of the input image arround a given point within a given radius.
Example:
◆ Vortex()
Default constructor.
- Parameters
-
pBuffer | Image buffer where to modify the image. |
◆ getName()
Get name of the filter as string.
◆ logMsg()
void Procedural::TextureProcessing::logMsg |
( |
Ogre::String |
msg | ) |
|
|
protectedinherited |
◆ process()
◆ setCenterX()
Set the relative position of the twist center on x axis.
- Parameters
-
centerx | New relative x position of the twist center [0.0, 1.0] (default 0.5) |
◆ setCenterY()
Set the relative position of the twist center on y axis.
- Parameters
-
centery | New relative y position of the twist center [0.0, 1.0] (default 0.5) |
◆ setLog()
void Procedural::TextureProcessing::setLog |
( |
bool |
enable = true | ) |
|
|
inherited |
Enable/Disable logging.
- Parameters
-
enable | true enables logging of filter actions |
◆ setRadiusX()
Set the relative radius of the twist area on x axis.
- Parameters
-
radiusx | New relative x radius of the twist area [0.0, 1.0] (default 0.5) |
◆ setRadiusY()
Set the relative radius of the twist area on y axis.
- Parameters
-
radiusy | New relative y radius of the twist area [0.0, 1.0] (default 0.5) |
◆ setTwist() [1/3]
Set the twist angle.
- Parameters
-
twist | New twist angle for deformation [0, 360] degree (default 90) |
◆ setTwist() [2/3]
Set the twist angle.
- Parameters
-
◆ setTwist() [3/3]
Set the twist angle.
- Parameters
-
twist | New twist angle for deformation [0.0, 1.0] (default 0.25) |
◆ mBuffer
◆ mLog
bool Procedural::TextureProcessing::mLog |
|
protectedinherited |
◆ mName
The documentation for this class was generated from the following file:
- ProceduralTextureModifiers.h
class to store image data while processing
Definition: ProceduralTextureBuffer.h:50