67 #ifndef _graphicsproceduralweighedlerpmodifier_cpp
68 #define _graphicsproceduralweighedlerpmodifier_cpp
70 #include "Graphics/Procedural/Texture/weighedlerpmodifier.h"
103 for(
Whole Y = 0 ; Y < TargetHeight ; ++Y )
105 for(
Whole X = 0 ; X < TargetWidth ; ++X )
126 {
return "WeighedLerpModifier"; }
ColourChannelType & GetPixel(const Whole X, const Whole Y, const UInt16 Component)
Gets access to the pixel at the specified position in this buffer. the X or Y location go beyond the ...
A simple functor for interpolating data points in a simple way.
Whole GetWidth() const
Get the pixel width of this texture.
virtual void Modify(TextureBuffer &Buffer)
Alters the generated pixels in a TextureBuffer.
#define MEZZ_EXCEPTION(num, desc)
An easy way to throw exceptions with rich information.
WeighedLerpModifier & SetSecondTexture(TextureBuffer *Second)
The second texture to interpolate. the texture provided here isn't at least the same size as the text...
This is a simple class for holding 4 reals representing the colour any give object or lightsource can...
This implements the exception hiearchy for Mezzanine.
Real GreenChannel
Value from 0.0 to 1.0 representing the amount of green present in the colour. 1.0 if very green...
WeighedLerpModifier()
Blank constructor.
Real AlphaChannel
Value from 0.0 to 1.0 representing the transparency of the colours. 1.0 is opaque and 0...
A modifier that will use the colours of the texture to be modified to perform a linear interpolation ...
virtual String GetName() const
Gets the name of this modifier.
Thrown when parameters are checked at runtime and found invalid.
A convenience buffer that stores pixel colour values of a texture to be generated.
static T InterpolateMath(T Begin, T End, Real Location)
Get a value at a given location between exactly two others.
The bulk of the engine components go in this namspace.
WeighedLerpModifier & SetFirstTexture(TextureBuffer *First)
The first texture to interpolate. the texture provided here isn't at least the same size as the textu...
unsigned long Whole
Whole is an unsigned integer, it will be at least 32bits in size.
Whole GetHeight() const
Get the pixel height of this texture.
Real BlueChannel
Value from 0.0 to 1.0 representing the amount of blue present in the colour. 1.0 if very blue...
void SetPixel(const Whole X, const Whole Y, const ColourValue &Colour)
Set colour of a specified pixel using a ColourValue. the X or Y location go beyond the set size of th...
Real RedChannel
Value from 0.0 to 1.0 representing the amount of red present in the colour. 1.0 if very red...
TextureBuffer * FirstTexture
The first texture to interpolate.
Helper classes to assist in generating data points between two other data points. ...
std::string String
A datatype used to a series of characters.
TextureBuffer * SecondTexture
The second texture to interpolate.
virtual ~WeighedLerpModifier()
Class destructor.