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

Public Member Functions

 RGBAf (float _r, float _g, float _b)
 
 RGBAf (float _r, float _g, float _b, float _a)
 
 RGBAf (const class RGBf &v)
 
void Set (float _r, float _g, float _b, float _a)
 
RGBAf operator+ (const RGBAf &v) const
 
RGBAf operator- (const RGBAf &v) const
 
RGBAf operator* (float s) const
 
RGBAf operator/ (float s) const
 
void operator*= (float s)
 
RGBAfoperator= (const RGBf &v)
 
bool operator== (const RGBAf &v2) const
 
bool operator!= (const RGBAf &v2) const
 

Public Attributes

float r
 
float g
 
float b
 
float a
 

Detailed Description

An RGBA class for handling color operations with alpha support.

This one handles colors with float components (0.0 - 1.0)