A modifer that will draw coloured pixels at random positions on the texture. More...
#include <randompixelsmodifier.h>
Public Member Functions | |
RandomPixelsModifier () | |
Blank constructor. | |
virtual | ~RandomPixelsModifier () |
Class destructor. | |
virtual String | GetName () const |
Gets the name of this modifier. More... | |
virtual void | Modify (TextureBuffer &Buffer) |
Alters the generated pixels in a TextureBuffer. More... | |
RandomPixelsModifier & | SetColour (const ColourValue &Colour) |
Sets the colour of the pixels to be generated. More... | |
RandomPixelsModifier & | SetColour (const Real Red, const Real Green, const Real Blue, const Real Alpha=1.0) |
Sets the colour of the pixels to be generated. More... | |
RandomPixelsModifier & | SetColour (const UInt8 Red, const UInt8 Green, const UInt8 Blue, const UInt8 Alpha) |
Sets the colour of the pixels to be generated. More... | |
RandomPixelsModifier & | SetPixelCount (const Whole Count) |
Sets the number of pixels to generate. More... | |
RandomPixelsModifier & | SetSeed (const Whole Seed) |
Sets the seed for the random number generator used to determine pixel positions. More... | |
Public Member Functions inherited from Mezzanine::Graphics::Procedural::TextureModifier | |
TextureModifier () | |
Blank constructor. | |
virtual | ~TextureModifier () |
Class destructor. | |
Protected Attributes | |
Whole | GeneratorSeed |
The seed to be used for the randomly generatated texture positions the pixels will be drawn to. More... | |
ColourValue | PixelColour |
The colour of the randomly placed pixels. More... | |
Whole | PixelCount |
The number of randomly placed pixels to generate. More... | |
A modifer that will draw coloured pixels at random positions on the texture.
Definition at line 82 of file randompixelsmodifier.h.
|
virtual |
Gets the name of this modifier.
Implements Mezzanine::Graphics::Procedural::TextureModifier.
Definition at line 131 of file randompixelsmodifier.cpp.
|
virtual |
Alters the generated pixels in a TextureBuffer.
Buffer | The buffer to be modified. |
Implements Mezzanine::Graphics::Procedural::TextureModifier.
Definition at line 93 of file randompixelsmodifier.cpp.
RandomPixelsModifier & Mezzanine::Graphics::Procedural::RandomPixelsModifier::SetColour | ( | const ColourValue & | Colour | ) |
Sets the colour of the pixels to be generated.
Colour | The colour of the randomly placed pixels. Initial Value: 1.0, 1.0, 1.0, 1.0. |
Definition at line 134 of file randompixelsmodifier.cpp.
RandomPixelsModifier & Mezzanine::Graphics::Procedural::RandomPixelsModifier::SetColour | ( | const Real | Red, |
const Real | Green, | ||
const Real | Blue, | ||
const Real | Alpha = 1.0 |
||
) |
Sets the colour of the pixels to be generated.
Red | The Red component for the colour of the randomly generated pixels. Initial Value: 1.0. |
Green | The Green component for the colour of the randomly generated pixels. Initial Value: 1.0. |
Blue | The Blue component for the colour of the randomly generated pixels. Initial Value: 1.0. |
Alpha | The Alpha component for the colour of the randomly generated pixels. Initial Value: 1.0. |
Definition at line 137 of file randompixelsmodifier.cpp.
RandomPixelsModifier & Mezzanine::Graphics::Procedural::RandomPixelsModifier::SetColour | ( | const UInt8 | Red, |
const UInt8 | Green, | ||
const UInt8 | Blue, | ||
const UInt8 | Alpha | ||
) |
Sets the colour of the pixels to be generated.
Red | The Red component for the colour of the randomly generated pixels. Initial Value: 1.0. |
Green | The Green component for the colour of the randomly generated pixels. Initial Value: 1.0. |
Blue | The Blue component for the colour of the randomly generated pixels. Initial Value: 1.0. |
Alpha | The Alpha component for the colour of the randomly generated pixels. Initial Value: 1.0. |
Definition at line 140 of file randompixelsmodifier.cpp.
RandomPixelsModifier & Mezzanine::Graphics::Procedural::RandomPixelsModifier::SetPixelCount | ( | const Whole | Count | ) |
Sets the number of pixels to generate.
Count | The number of randomly placed pixels to generate. Initial Value: 0. |
Definition at line 143 of file randompixelsmodifier.cpp.
RandomPixelsModifier & Mezzanine::Graphics::Procedural::RandomPixelsModifier::SetSeed | ( | const Whole | Seed | ) |
Sets the seed for the random number generator used to determine pixel positions.
Seed | The seed to be used for the randomly generatated texture positions the pixels will be drawn to. Initial Value: 5120. |
Definition at line 146 of file randompixelsmodifier.cpp.
|
protected |
The seed to be used for the randomly generatated texture positions the pixels will be drawn to.
Definition at line 93 of file randompixelsmodifier.h.
|
protected |
The colour of the randomly placed pixels.
Definition at line 87 of file randompixelsmodifier.h.
|
protected |
The number of randomly placed pixels to generate.
Definition at line 90 of file randompixelsmodifier.h.