67 #ifndef _graphicsproceduralimagegenerator_cpp
68 #define _graphicsproceduralimagegenerator_cpp
70 #include "Graphics/Procedural/Texture/imagegenerator.h"
72 #include "Graphics/image.h"
112 {
return "ImageGenerator"; }
Image * GenImage
A pointer to the image to copy into a TextureBuffer.
Creates an image to be modified from a pre-existing image on disk.
Whole GetWidth() const
Get the pixel width of this texture.
ColourValue GetColourAt(const Whole X, const Whole Y, const Whole Z) const
Gets the colour of an individual pixel in this image.
#define MEZZ_EXCEPTION(num, desc)
An easy way to throw exceptions with rich information.
UInt32 GetHeight() const
Gets the height of this image in pixels.
ImageGenerator()
Class constructor.
UInt32 GetWidth() const
Gets the width of this image in pixels.
This implements the exception hiearchy for Mezzanine.
virtual void AddToTextureBuffer(TextureBuffer &Buffer) const
Replaces and populates the pixels as configured in this generator to a TextureBuffer.
virtual ~ImageGenerator()
Class destructor.
This class represents an image loaded into system memory.
Thrown when the available information should have worked but failed for unknown reasons.
Thrown when parameters are checked at runtime and found invalid.
virtual String GetName() const
Gets the name of this generator.
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.
ImageGenerator & SetImage(Image *ToGenerate)
Sets the image to copy into the TextureBuffer.
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...
std::string String
A datatype used to a series of characters.