A modifier that uses an image to lookup and copy pixels of another image. More...
#include <lookupmodifier.h>
Public Member Functions | |
LookupModifier () | |
Blank constructor. | |
virtual | ~LookupModifier () |
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... | |
LookupModifier & | SetLookupTexture (TextureBuffer *Lookup) |
Sets the texture that will be used to retrieve pixel coordinates. More... | |
Public Member Functions inherited from Mezzanine::Graphics::Procedural::TextureModifier | |
TextureModifier () | |
Blank constructor. | |
virtual | ~TextureModifier () |
Class destructor. | |
Protected Attributes | |
TextureBuffer * | LookupTexture |
A pointer to the image to use for pixel lookups. More... | |
A modifier that uses an image to lookup and copy pixels of another image.
This modifier will, for each pixel, first retrieve the red and green intensities for that pixel in the lookup texture. Then convert those intensities into UV coordinates and retrieve the colour of the pixel at those coordinates from the texture being modified. That colour is then written into a temporary buffer that is the final result of this modifier.
Definition at line 85 of file lookupmodifier.h.
|
virtual |
Gets the name of this modifier.
Implements Mezzanine::Graphics::Procedural::TextureModifier.
Definition at line 121 of file lookupmodifier.cpp.
|
virtual |
Alters the generated pixels in a TextureBuffer.
Buffer | The buffer to be modified. |
The | LookupTexture and the Buffer to be modified must be the same size. Otherwise an INVALID_STATE_EXCEPTION will be thrown. |
Implements Mezzanine::Graphics::Procedural::TextureModifier.
Definition at line 90 of file lookupmodifier.cpp.
LookupModifier & Mezzanine::Graphics::Procedural::LookupModifier::SetLookupTexture | ( | TextureBuffer * | Lookup | ) |
Sets the texture that will be used to retrieve pixel coordinates.
Lookup | A pointer to the image to use for pixel lookups. |
Definition at line 127 of file lookupmodifier.cpp.
|
protected |
A pointer to the image to use for pixel lookups.
Definition at line 90 of file lookupmodifier.h.