67 #ifndef _graphicsproceduralinvertmodifier_cpp
68 #define _graphicsproceduralinvertmodifier_cpp
70 #include "Graphics/Procedural/Texture/invertmodifier.h"
93 for(
Whole Y = 0 ; Y < Height ; ++Y )
95 for(
Whole X = 0 ; X < Width ; ++X )
104 {
return "InvertModifier"; }
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 ...
bool Boole
Generally acts a single bit, true or false.
Whole GetWidth() const
Get the pixel width of this texture.
A modifier that will invert the value of each colour channel for each pixel.
virtual String GetName() const
Gets the name of this modifier.
This is a simple class for holding 4 reals representing the colour any give object or lightsource can...
virtual ~InvertModifier()
Class destructor.
Real GreenChannel
Value from 0.0 to 1.0 representing the amount of green present in the colour. 1.0 if very green...
Real AlphaChannel
Value from 0.0 to 1.0 representing the transparency of the colours. 1.0 is opaque and 0...
void SetPixelReal(const Whole X, const Whole Y, const Real Red, const Real Green, const Real Blue, const Real Alpha=1.0)
Set colour of a specified pixel using a 0.0-1.0 range. the X or Y location go beyond the set size of ...
A convenience buffer that stores pixel colour values of a texture to be generated.
The bulk of the engine components go in this namspace.
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...
virtual void Modify(TextureBuffer &Buffer)
Alters the generated pixels in a TextureBuffer.
InvertModifier & SetIncludeAlpha(const Boole Alpha)
Sets whether or not the Alpha channel should be included for inversion.
Real RedChannel
Value from 0.0 to 1.0 representing the amount of red present in the colour. 1.0 if very red...
InvertModifier()
Blank constructor.
Boole IncludeAlpha
Whether or not the Alpha channel should be inverted when a texture is processed.
std::string String
A datatype used to a series of characters.