Skip to content

classColorBuf 02

Constructor & Destructor Documentation

ColorBuf::ColorBuf  )  [inline]
 

Creates an instance of a ColorBuf where the initial color is black and the alpha channel is fully opaque.

Definition at line 62 of file ColorBuf.h.

References color, MAXCOLOR, and values.

ColorBuf::ColorBuf LONG  col  )  [inline]
 

Creates an instance of a ColorBuf. The color is copied from the col parameter. The alpha channel is fully opaque.

Note:
If col parameter contained valid alpha channel values, it was discarded by the constructor.

Definition at line 63 of file ColorBuf.h.

References color, MAXCOLOR, and values.

ColorBuf::ColorBuf UBYTE  pred,
UBYTE  pgreen,
UBYTE  pblue
[inline]
 

Creates an instance of a ColorBuf. The color channels are copied from the parameters and the alpha channel is fully opaque.

Definition at line 64 of file ColorBuf.h.

References MAXCOLOR, and values.

ColorBuf::ColorBuf UBYTE  pred,
UBYTE  pgreen,
UBYTE  pblue,
UBYTE  palpha
[inline]
 

Creates an instance of a ColorBuf. The colors and alpha channels are copied from the parameters.

Definition at line 65 of file ColorBuf.h.

References values.

ColorBuf::ColorBuf COLORREF  c  )  [inline]
 

Creates an instance of a ColorBuf. The color is copied from the c parameter. The alpha channel is fully opaque.

Note:
If c parameter contained valid alpha channel values, it was discarded by the constructor.

Definition at line 66 of file ColorBuf.h.

References values.

ColorBuf::ColorBuf const RGBAFloat color  )  [inline]
 

Creates an instance of a ColorBuf. The colors and alpha channels are set from the color parameter which is interpreted as being normalized. That is color and alpha channel values of 1.0 is mapped to 255.

Definition at line 13 of file ColorBuf.inl.

References RGBAFloat::Alpha(), RGBAFloat::Blue(), fast_ftol_unsigned(), RGBAFloat::Green(), MAXCOLOR, MIN, RGBAFloat::Red(), and values.

Here is the call graph for this function: