A modifier that will use the colours of the texture to be modified to perform a linear interpolation between two other textures. More...
#include <weighedlerpmodifier.h>
Public Member Functions | |||
WeighedLerpModifier () | |||
Blank constructor. | |||
virtual | ~WeighedLerpModifier () | ||
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... | |||
WeighedLerpModifier & | SetFirstTexture (TextureBuffer *First) | ||
The first texture to interpolate.
| |||
WeighedLerpModifier & | SetSecondTexture (TextureBuffer *Second) | ||
The second texture to interpolate.
| |||
Public Member Functions inherited from Mezzanine::Graphics::Procedural::TextureModifier | |||
TextureModifier () | |||
Blank constructor. | |||
virtual | ~TextureModifier () | ||
Class destructor. | |||
Protected Attributes | |
TextureBuffer * | FirstTexture |
The first texture to interpolate. More... | |
TextureBuffer * | SecondTexture |
The second texture to interpolate. More... | |
A modifier that will use the colours of the texture to be modified to perform a linear interpolation between two other textures.
This modifier will perform a Lerp operation between the two specified textures. This differs from the LerpGenerator in that the texture to be modified is used to determine the amount of interpolation there is to be performed. This operation is done on each colour channel of each pixel. The result of the Lerp is then written back to the texture.
Definition at line 84 of file weighedlerpmodifier.h.
|
virtual |
Gets the name of this modifier.
Implements Mezzanine::Graphics::Procedural::TextureModifier.
Definition at line 125 of file weighedlerpmodifier.cpp.
|
virtual |
Alters the generated pixels in a TextureBuffer.
Buffer | The buffer to be modified. |
Implements Mezzanine::Graphics::Procedural::TextureModifier.
Definition at line 92 of file weighedlerpmodifier.cpp.
WeighedLerpModifier & Mezzanine::Graphics::Procedural::WeighedLerpModifier::SetFirstTexture | ( | TextureBuffer * | First | ) |
The first texture to interpolate.
If | the texture provided here isn't at least the same size as the texture to be modified a PARAMETERS_EXCEPTION will be thrown. |
First | A pointer to the first texture to interpolate between. Initial Value: NULL. |
Definition at line 131 of file weighedlerpmodifier.cpp.
WeighedLerpModifier & Mezzanine::Graphics::Procedural::WeighedLerpModifier::SetSecondTexture | ( | TextureBuffer * | Second | ) |
The second texture to interpolate.
If | the texture provided here isn't at least the same size as the texture to be modified a PARAMETERS_EXCEPTION will be thrown. |
Second | A pointer to the second texture to interpolate between. Initial Value: NULL. |
Definition at line 137 of file weighedlerpmodifier.cpp.
|
protected |
The first texture to interpolate.
Definition at line 89 of file weighedlerpmodifier.h.
|
protected |
The second texture to interpolate.
Definition at line 92 of file weighedlerpmodifier.h.