vtdata library
Public Member Functions | Public Attributes | List of all members
RGBi Class Reference

Public Member Functions

 RGBi (short _r, short _g, short _b)
 RGBi (const class RGBf &v)
 RGBi (const class RGBAi &v)
void Set (short _r, short _g, short _b)
RGBi operator+ (const RGBi &v) const
RGBi operator+ (const class RGBAi &v) const
RGBi operator- (const RGBi &v) const
RGBi operator* (float s) const
RGBi operator/ (float s) const
void operator*= (float s)
void operator/= (float s)
void operator+= (const RGBi &v)
void operator+= (const class RGBAi &v)
void Crop ()
RGBioperator= (const RGBi &v)
RGBioperator= (const class RGBf &v)
RGBioperator= (const class RGBAi &v)
bool operator== (const RGBi &v) const
bool operator!= (const RGBi &v) const

Public Attributes

short r
short g
short b

Detailed Description

An RGB class for handling color operations.

This one handles colors with integer components (0-255)