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

Public Member Functions

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

Public Attributes

short r
 
short g
 
short b
 
short a
 

Detailed Description

An RGBA class for handling color operations with alpha support.

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