67 #ifndef _graphicsproceduralchannelmodifier_cpp
68 #define _graphicsproceduralchannelmodifier_cpp
70 #include "Graphics/Procedural/Texture/channelmodifier.h"
109 {
return "ChannelModifier"; }
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 ...
Zero the red channel for each pixel in the texture. Ignored if "CS_Gray" is selected.
Whole ChannelOp
A bitfield containing the operation to be performed.
virtual void Modify(TextureBuffer &Buffer)
Alters the generated pixels in a TextureBuffer.
virtual String GetName() const
Gets the name of this modifier.
Whole GetWidth() const
Get the pixel width of this texture.
Zero the blue channel for each pixel in the texture. Ignored if "CS_Gray" is selected.
Zero the green channel for each pixel in the texture. Ignored if "CS_Gray" is selected.
ChannelModifier()
Blank constructor.
This is a simple class for holding 4 reals representing the colour any give object or lightsource can...
float Real
A Datatype used to represent a real floating point number.
Real GreenChannel
Value from 0.0 to 1.0 representing the amount of green present in the colour. 1.0 if very green...
void SetGreenReal(const Whole X, const Whole Y, const Real Green)
Sets the green colour value of a specified pixel. the X or Y location go beyond the set size of this ...
ChannelModifier & SetSelection(const Whole Op)
Sets the channels that are to be zero'd or if the modifier should generate a gray texture...
Real AlphaChannel
Value from 0.0 to 1.0 representing the transparency of the colours. 1.0 is opaque and 0...
virtual ~ChannelModifier()
Class destructor.
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 ...
void SetAlphaReal(const Whole X, const Whole Y, const Real Alpha)
Sets the alpha colour value of a specified pixel. the X or Y location go beyond the set size of this ...
void SetBlueReal(const Whole X, const Whole Y, const Real Blue)
Sets the blue colour value of a specified pixel. the X or Y location go beyond the set size of this t...
A modifier that will zero out selected colour channels or produce a grey version of the provided text...
A convenience buffer that stores pixel colour values of a texture to be generated.
void SetRedReal(const Whole X, const Whole Y, const Real Red)
Sets the red colour value of a specified pixel. the X or Y location go beyond the set size of this te...
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...
Zero the alpha channel for each pixel in the texture. Warning: This will make the texture disappear...
Real RedChannel
Value from 0.0 to 1.0 representing the amount of red present in the colour. 1.0 if very red...
Generate a black and white version of the image by averaging channel intensities. ...
std::string String
A datatype used to a series of characters.