Overview

Sample Code

Programming Guide

API Reference

Support

HPS::RGBAColor Class Reference

Public Member Functions

HPS_INLINE bool Equals (RGBAColor const &c, int in_tolerance=32) const
 
HPS_INLINE float Gray () const
 
HPS_INLINE bool IsGray () const
 
HPS_INLINE bool IsValid () const
 
HPS_INLINE bool operator!= (RGBAColor const &c) const
 
HPS_INLINE RGBAColor const operator* (RGBAColor const &c) const
 
HPS_INLINE RGBAColor const operator* (float s) const
 
HPS_INLINE RGBAColor const operator* (RGBColor const &c) const
 
HPS_INLINE RGBAColoroperator*= (RGBAColor const &c)
 
HPS_INLINE RGBAColoroperator*= (float s)
 
HPS_INLINE RGBAColoroperator*= (RGBColor const &c)
 
HPS_INLINE RGBAColor const operator+ (RGBAColor const &c) const
 
HPS_INLINE RGBAColor const operator+ (float s) const
 
HPS_INLINE RGBAColor const operator+ (RGBColor const &c) const
 
HPS_INLINE RGBAColoroperator+= (RGBAColor const &c)
 
HPS_INLINE RGBAColoroperator+= (float s)
 
HPS_INLINE RGBAColoroperator+= (RGBColor const &c)
 
HPS_INLINE RGBAColor const operator- (RGBAColor const &c) const
 
HPS_INLINE RGBAColor const operator- (float s) const
 
HPS_INLINE RGBAColor const operator- (RGBColor const &c) const
 
HPS_INLINE RGBAColoroperator-= (RGBAColor const &c)
 
HPS_INLINE RGBAColoroperator-= (float s)
 
HPS_INLINE RGBAColoroperator-= (RGBColor const &c)
 
HPS_INLINE RGBAColor const operator/ (float s) const
 
HPS_INLINE RGBAColoroperator/= (float s)
 
HPS_INLINE bool operator== (RGBAColor const &c) const
 
HPS_INLINE RGBAColor (float gray, float a=1)
 
HPS_INLINE RGBAColor (float r, float g, float b, float a=1)
 
HPS_INLINE RGBAColor (RGBColor const &c)
 
HPS_INLINE RGBAColor (RGBColor const &c, float a)
 
HPS_INLINE RGBAColor (RGBA32Color const &c32)
 
HPS_INLINE RGBAColor (RGBAS32Color const &c32)
 

Static Public Member Functions

static HPS_INLINE RGBAColor Black ()
 
static HPS_INLINE RGBAColor Invalid ()
 
static HPS_INLINE RGBAColor Nothing ()
 
static HPS_INLINE RGBAColor White ()
 

Public Attributes

float alpha
 
float blue
 
float green
 
float red
 

Member Function Documentation

HPS_INLINE bool HPS::RGBAColor::operator!= ( RGBAColor const &  c) const
inline

Determines RGBA non-equivalency between this object and argument.

Parameters
cThe color object to test against
Returns
true if the objects are not equivalent, false otherwise
HPS_INLINE bool HPS::RGBAColor::operator== ( RGBAColor const &  c) const
inline

Determines RGBA equivalency between this object and argument.

Parameters
cThe color object to test against
Returns
true if the objects are equivalent, false otherwise

Member Data Documentation

float HPS::RGBAColor::alpha

Alpha component of this color object, from 0.0 to 1.0

float HPS::RGBAColor::blue

Blue component of this color object, from 0.0 to 1.0

float HPS::RGBAColor::green

Green component of this color object, from 0.0 to 1.0

float HPS::RGBAColor::red

Red component of this color object, from 0.0 to 1.0


The documentation for this class was generated from the following file: