Fills full image with given colour gradients.
More...
#include <ProceduralTextureGenerator.h>
|
| | Gradient (TextureBufferPtr pBuffer) |
| | Default constructor. More...
|
| |
| Gradient & | setColourA (Ogre::ColourValue colour) |
| | Set the colour in the top left corner of the image. More...
|
| |
| Gradient & | setColourA (Ogre::Real red, Ogre::Real green, Ogre::Real blue, Ogre::Real alpha=1.0f) |
| | Set the colour in the top left corner of the image. More...
|
| |
| Gradient & | setColourB (Ogre::ColourValue colour) |
| | Set the colour in the top right corner of the image. More...
|
| |
| Gradient & | setColourB (Ogre::Real red, Ogre::Real green, Ogre::Real blue, Ogre::Real alpha=1.0f) |
| | Set the colour in the top right corner of the image. More...
|
| |
| Gradient & | setColourC (Ogre::ColourValue colour) |
| | Set the colour in the bottom left corner of the image. More...
|
| |
| Gradient & | setColourC (Ogre::Real red, Ogre::Real green, Ogre::Real blue, Ogre::Real alpha=1.0f) |
| | Set the colour in the bottom left corner of the image. More...
|
| |
| Gradient & | setColourD (Ogre::ColourValue colour) |
| | Set the colour in the bottom right corner of the image. More...
|
| |
| Gradient & | setColourD (Ogre::Real red, Ogre::Real green, Ogre::Real blue, Ogre::Real alpha=1.0f) |
| | Set the colour in the bottom right corner of the image. More...
|
| |
| Gradient & | setColours (Ogre::ColourValue colourA, Ogre::ColourValue colourB, Ogre::ColourValue colourC, Ogre::ColourValue colourD) |
| | Sets the colours of the image corners. More...
|
| |
| TextureBufferPtr | process () |
| | Run image generation. More...
|
| |
| Ogre::String | getName () |
| | Get name of the filter as string. More...
|
| |
| void | setLog (bool enable=true) |
| | Enable/Disable logging. More...
|
| |
Fills full image with given colour gradients.
Each corner of the image has unique color.
Example:
◆ Gradient()
Default constructor.
- Parameters
-
| pBuffer | Image buffer where to store the generated image. |
◆ getName()
Get name of the filter as string.
◆ logMsg()
| void Procedural::TextureProcessing::logMsg |
( |
Ogre::String |
msg | ) |
|
|
protectedinherited |
◆ process()
◆ setColourA() [1/2]
Set the colour in the top left corner of the image.
- Parameters
-
◆ setColourA() [2/2]
Set the colour in the top left corner of the image.
- Parameters
-
| red | Red value of new colour in the top left corner [0.0, 1.0] (default 0.0) |
| green | Green value of new colour in the top left corner [0.0, 1.0] (default 0.0) |
| blue | Blue value of new colour in the top left corner [0.0, 1.0] (default 1.0) |
| alpha | Alpha value of new colour in the top left corner [0.0, 1.0] (default 1.0) |
◆ setColourB() [1/2]
Set the colour in the top right corner of the image.
- Parameters
-
◆ setColourB() [2/2]
Set the colour in the top right corner of the image.
- Parameters
-
| red | Red value of new colour in the top right corner [0.0, 1.0] (default 0.0) |
| green | Green value of new colour in the top right corner [0.0, 1.0] (default 1.0) |
| blue | Blue value of new colour in the top right corner [0.0, 1.0] (default 0.0) |
| alpha | Alpha value of new colour in the top right corner [0.0, 1.0] (default 1.0) |
◆ setColourC() [1/2]
Set the colour in the bottom left corner of the image.
- Parameters
-
◆ setColourC() [2/2]
Set the colour in the bottom left corner of the image.
- Parameters
-
| red | Red value of new colour in the bottom left corner [0.0, 1.0] (default 1.0) |
| green | Green value of new colour in the bottom left corner [0.0, 1.0] (default 0.0) |
| blue | Blue value of new colour in the bottom left corner [0.0, 1.0] (default 0.0) |
| alpha | Alpha value of new colour in the bottom left corner [0.0, 1.0] (default 1.0) |
◆ setColourD() [1/2]
Set the colour in the bottom right corner of the image.
- Parameters
-
| colour | New colour in the bottom right corner for processing (default Ogre::ColourValue(0.0f, 1.0f, 1.0f)) |
◆ setColourD() [2/2]
Set the colour in the bottom right corner of the image.
- Parameters
-
| red | Red value of new colour in the bottom right corner [0.0, 1.0] (default 0.0) |
| green | Green value of new colour in the bottom right corner [0.0, 1.0] (default 1.0) |
| blue | Blue value of new colour in the bottom right corner [0.0, 1.0] (default 1.0) |
| alpha | Alpha value of new colour in the bottom right corner [0.0, 1.0] (default 1.0) |
◆ setColours()
Sets the colours of the image corners.
- Parameters
-
◆ 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:
- ProceduralTextureGenerator.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