HPixelRGBA

Functions

HPixelRGBA
HPixelRGBA
void Set
void Setf
unsigned char a
void a

Detailed Description

class HPixelRGBA : public HPixelRGB

The HPixelRGBA class is the data type of a rgba pixel.

Public Functions

inline HPixelRGBA(unsigned char const R = 0, unsigned char const G = 0, unsigned char const B = 0, unsigned char const A = 0)
inline HPixelRGBA(HPixelRGBA const &p)
inline void Set(unsigned char R, unsigned char G, unsigned char B, unsigned char A = 0)

Sets the pixel value.

inline void Setf(float R, float G, float B, float A = 0.0f)

Sets a pixel value taking floats (between 0.0 - 1.0) for rgba.

inline unsigned char a() const
inline void a(unsigned char const A)