A colour filter.
More...
#include <ProceduralTextureModifiers.h>
A colour filter.
Adjust colour, contrast, brightness and alpha.
Example:
◆ Colours()
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()
◆ setAlpha()
Set alpha of the image.
- Parameters
-
alpha | New image alpha (default 127) |
◆ setBrightness()
Set brightness of the image.
- Parameters
-
brightness | New image brightness (default 127) |
◆ setColourBase() [1/2]
Set the base colour to work on.
- Parameters
-
◆ setColourBase() [2/2]
Set the base colour to work on.
- Parameters
-
red | Red value of base colour [0.0, 1.0] (default 0.0) |
green | Green value of base colour [0.0, 1.0] (default 0.0) |
blue | Blue value of base colour [0.0, 1.0] (default 0.0) |
alpha | Alpha value of base colour [0.0, 1.0] (default 0.0) |
◆ setColourPercent() [1/2]
Set the percent colour to add on image.
- Parameters
-
◆ setColourPercent() [2/2]
Set the percent colour to add on image.
- Parameters
-
red | Red value of percent colour [0.0, 1.0] (default 1.0) |
green | Green value of percent colour [0.0, 1.0] (default 1.0) |
blue | Blue value of percent colour [0.0, 1.0] (default 1.0) |
alpha | Alpha value of percent colour [0.0, 1.0] (default 1.0) |
◆ setContrast()
Set contrast of the image.
- Parameters
-
contrast | New image contrast (default 127) |
◆ setLog()
void Procedural::TextureProcessing::setLog |
( |
bool |
enable = true | ) |
|
|
inherited |
Enable/Disable logging.
- Parameters
-
enable | true enables logging of filter actions |
◆ setSaturation()
Set saturation of the image.
- Parameters
-
saturation | New image saturation (default 127) |
◆ 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