A modifier that will zero out selected colour channels or produce a grey version of the provided texture. More...
#include <channelmodifier.h>
Inheritance diagram for Mezzanine::Graphics::Procedural::ChannelModifier:
Collaboration diagram for Mezzanine::Graphics::Procedural::ChannelModifier:Public Types | |
| enum | ChannelSelect { CS_Red = 1, CS_Green = 2, CS_Blue = 4, CS_Alpha = 8, CS_Gray = 16 } |
| An enum describing the operation to be taken. More... | |
Public Member Functions | |
| ChannelModifier () | |
| Blank constructor. | |
| virtual | ~ChannelModifier () |
| 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... | |
| ChannelModifier & | SetSelection (const Whole Op) |
| Sets the channels that are to be zero'd or if the modifier should generate a gray texture. More... | |
Public Member Functions inherited from Mezzanine::Graphics::Procedural::TextureModifier | |
| TextureModifier () | |
| Blank constructor. | |
| virtual | ~TextureModifier () |
| Class destructor. | |
Protected Attributes | |
| Whole | ChannelOp |
| A bitfield containing the operation to be performed. More... | |
A modifier that will zero out selected colour channels or produce a grey version of the provided texture.
Definition at line 82 of file channelmodifier.h.
An enum describing the operation to be taken.
Definition at line 86 of file channelmodifier.h.
|
virtual |
Gets the name of this modifier.
Implements Mezzanine::Graphics::Procedural::TextureModifier.
Definition at line 108 of file channelmodifier.cpp.
|
virtual |
Alters the generated pixels in a TextureBuffer.
| Buffer | The buffer to be modified. |
Implements Mezzanine::Graphics::Procedural::TextureModifier.
Definition at line 88 of file channelmodifier.cpp.
| ChannelModifier & Mezzanine::Graphics::Procedural::ChannelModifier::SetSelection | ( | const Whole | Op | ) |
Sets the channels that are to be zero'd or if the modifier should generate a gray texture.
| Op | A bitfield containing the operation to be performed. Initial Value: CS_Gray. |
Definition at line 114 of file channelmodifier.cpp.
|
protected |
A bitfield containing the operation to be performed.
Definition at line 97 of file channelmodifier.h.
1.8.9.1. Thanks to the
Open Icon Library
for help with some of the icons.