classColorBuf 04

ColorBuf ColorBuf::operator+ const ColorBuf other  )  [inline]

 

Returns the result of adding the passed value (right side operand) to the current value (left side operand).

Definition at line 119 of file ColorBuf.h.

References alpha, blue, green, red, and values.

void ColorBuf::operator+= const ColorBuf other  )  [inline]
 

Adds the parameter value to the current instance channels (color and alpha) values. Values are capped to 255.

Definition at line 98 of file ColorBuf.h.

References MAXCOLOR, and values.

void ColorBuf::operator-= const ColorBuf other  )  [inline]
 

Subtracts the parameter value from the current instance value.

Definition at line 129 of file ColorBuf.h.

References values.

ColorBuf & ColorBuf::operator= const ColorBuf other  )  [inline]
 

Sets the color and alpha channels to the new values.

Definition at line 57 of file ColorBuf.h.

References color.

UBYTE ColorBuf::Red  )  const [inline]
 

Retrieve the red channel value. Return value is UBYTE so between 0 and 255.

Definition at line 69 of file ColorBuf.h.

References values.

void ColorBuf::Set const RGBFloat color  )  [inline]
 

Sets the color channel values from the normalized (from 0.0 to 1.0) color parameter.

Definition at line 21 of file ColorBuf.inl.

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

Here is the call graph for this function:

void ColorBuf::Set UBYTE  pred,
UBYTE  pgreen,
UBYTE  pblue,
UBYTE  alpha
[inline]
 

Sets the colors and alpha channels values from the parameters.

Definition at line 74 of file ColorBuf.h.

References values.

void ColorBuf::SetAlpha UBYTE  alpha  )  [inline]
 

Sets the alpha opacity channel value from the parameter.

Definition at line 78 of file ColorBuf.h.

References values.

void ColorBuf::SetBlue UBYTE  blue  )  [inline]
 

Sets the blue color channel value from the parameter.

Definition at line 77 of file ColorBuf.h.

References values.

void ColorBuf::SetColor ULONG  pcolor  )  [inline]
 

Sets the colors and alpha channels values from the parameter.

Definition at line 79 of file ColorBuf.h.

References color, MAXCOLOR, and values.