67 #ifndef _graphicsproceduraltexturebuffer_h
68 #define _graphicsproceduraltexturebuffer_h
70 #include "colourvalue.h"
71 #include "Graphics/graphicsenumerations.h"
109 ColourChannelType& GetPixel(
const Whole X,
const Whole Y,
const UInt16 Component);
117 const ColourChannelType& GetPixel(
const Whole X,
const Whole Y,
const UInt16 Component)
const;
141 Whole GetWidth()
const;
144 Whole GetHeight()
const;
148 Whole GetPixelCount()
const;
151 Whole GetSubChannelCount()
const;
154 Whole GetByteSize()
const;
185 void SetPixelByte(
const Whole X,
const Whole Y,
const ColourChannelType Red,
const ColourChannelType Green,
const ColourChannelType Blue,
const ColourChannelType Alpha = 255);
208 void SetRedByte(
const Whole X,
const Whole Y,
const ColourChannelType Red);
221 ColourChannelType GetRedByte(
const Whole X,
const Whole Y)
const;
234 void SetGreenByte(
const Whole X,
const Whole Y,
const ColourChannelType Green);
241 void SetGreenReal(
const Whole X,
const Whole Y,
const Real Green);
247 ColourChannelType GetGreenByte(
const Whole X,
const Whole Y)
const;
260 void SetBlueByte(
const Whole X,
const Whole Y,
const ColourChannelType Blue);
273 ColourChannelType GetBlueByte(
const Whole X,
const Whole Y)
const;
286 void SetAlphaByte(
const Whole X,
const Whole Y,
const ColourChannelType Alpha);
293 void SetAlphaReal(
const Whole X,
const Whole Y,
const Real Alpha);
299 ColourChannelType GetAlphaByte(
const Whole X,
const Whole Y)
const;
Whole Height
The size of the texture to be generated on the Y axis.
Whole Width
The size of the texture to be generated on the X axis.
uint8_t UInt8
An 8-bit unsigned integer.
This is a simple class for holding 4 reals representing the colour any give object or lightsource can...
ColourChannelType * Pixels
A pointer to the buffer storing all the pixels of this texture buffer.
float Real
A Datatype used to represent a real floating point number.
uint16_t UInt16
An 16-bit unsigned integer.
Whole Y
Position on the Y axis.
Convenience class for pixel processing.
This class represents a texture loaded into video memory.
This class represents an image loaded into system memory.
PixelFormat
This is used to describe how bits are arraged for each pixel in an image.
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.
std::string String
A datatype used to a series of characters.
Whole X
Position on the X axis.
UInt8 ColourChannelType
Convenience typedef for the datatype containing the value for each colour channel.