Rotate & zoom image.
More...
#include <ProceduralTextureModifiers.h>
Rotate & zoom image.
Rotate the image and/or zoom on a specific pat of it.
Example:
◆ RotationZoom()
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 center position of the rotation on x axis.
- Parameters
-
centerx | New relative center of the rotation center [0.0, 1.0] (default 0.5) |
◆ setCenterY()
Set the relative center position of the rotation on y axis.
- Parameters
-
centery | New relative center of the rotation 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 |
◆ setRotation() [1/3]
Set the rotation angle.
- Parameters
-
rotation | New rotation angle [0, 360] degree (default 0) |
◆ setRotation() [2/3]
Set the rotation angle.
- Parameters
-
◆ setRotation() [3/3]
Set the rotation angle.
- Parameters
-
rotation | New rotation angle [0.0, 1.0] (default 0.0) |
◆ setWrap()
RotationZoom& Procedural::RotationZoom::setWrap |
( |
bool |
wrap | ) |
|
Set wrap.
- Parameters
-
wrap | New wrap value (default true) |
◆ setZoomX()
Set the zoom factor in x direction.
- Parameters
-
zoomx | New factor for zoom in x direction (default 1.0) |
◆ setZoomY()
Set the zoom factor in y direction.
- Parameters
-
zoomy | New factor for zoom in y direction (default 1.0) |
◆ mBuffer
◆ mLog
bool Procedural::TextureProcessing::mLog |
|
protectedinherited |
◆ mName
The documentation for this class was generated from the following file:
- ProceduralTextureModifiers.h
Gradient & setColours(Ogre::ColourValue colourA, Ogre::ColourValue colourB, Ogre::ColourValue colourC, Ogre::ColourValue colourD)
Sets the colours of the image corners.
class to store image data while processing
Definition: ProceduralTextureBuffer.h:50