Combine inputs together.
More...
#include <ProceduralTextureModifiers.h>
Combine inputs together.
Provides several ways of combining. Clamps bitmap to base input size.
Example:
◆ COMBINE_METHOD
Methods how to combine image.
Enumerator |
---|
METHOD_ADD_CLAMP | |
METHOD_ADD_WRAP | |
METHOD_SUB_CLAMP | |
METHOD_SUB_WRAP | |
METHOD_MULTIPLY | |
METHOD_MULTIPLY2 | |
METHOD_BLEND | |
METHOD_ALPHA | |
METHOD_LAYER | |
◆ Combine()
Default constructor.
- Parameters
-
pBuffer | Image buffer where to modify the image. |
◆ addImage()
Add image to process queue.
- Parameters
-
image | Pointer on image to process |
method | Method how to process the image |
◆ getName()
Get name of the filter as string.
◆ logMsg()
void Procedural::TextureProcessing::logMsg |
( |
Ogre::String |
msg | ) |
|
|
protectedinherited |
◆ process()
◆ setColour() [1/2]
Set the percent colour to add on image.
- Parameters
-
◆ setColour() [2/2]
Set the percent colour to add on image.
- Parameters
-
red | Red value of drawing colour [0.0, 1.0] (default 1.0) |
green | Green value of drawing colour [0.0, 1.0] (default 1.0) |
blue | Blue value of drawing colour [0.0, 1.0] (default 1.0) |
alpha | Alpha value of drawing colour [0.0, 1.0] (default 1.0) |
◆ setLog()
void Procedural::TextureProcessing::setLog |
( |
bool |
enable = true | ) |
|
|
inherited |
Enable/Disable logging.
- Parameters
-
enable | true enables logging of filter actions |
◆ 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