VisioMove SDK (iOS)
2.1.22
|
Public Member Functions | |
VgColor (float pRed=0.0f, float pGreen=0.0f, float pBlue=0.0f, float pAlpha=1.0f) | |
VgColor (const VgColor &pColor) | |
bool | operator== (const VgColor &pOther) const |
bool | operator!= (const VgColor &pOther) const |
VgColor & | operator*= (float const &pScalar) |
VgColor | operator* (float const &pScalar) |
Public Attributes | |
float | mRed |
float | mGreen |
float | mBlue |
float | mAlpha |
This struct represents a color. It is defined using four values: The first three values represent red, green and blue (respectively) following the additive color model and the last value is for alpha (transparency). Those values can be set in the [0.0, 1.0] range. A value of 1.0 for alpha means that the color is completely opaque, while a value of 0.0 means the color is completely transparent.
|
inline |
Constructs a color with the RGBA value pRed, pGreen, pBlue and pAlpha. The parameters must be in the [0.0, 1.0] range. Default values are set to (0.0, 0.0, 0.0, 1.0) (opaque black).
|
inline |
Copy constructor.
|
inline |
|
inline |
returns the all the colors components and alpha multiplied by scalar
pScalar | factor to multiply all color channels. Alpha stays unchanged |
|
inline |
returns the all the colors components and alpha multiplied by scalar
pScalar | factor to multiply all color channels. Alpha stays unchanged |
|
inline |
References mAlpha, mBlue, mGreen, and mRed.
Referenced by VgEngine::VgVisibilityRamp::operator!=(), and VgEngine::VgOrientationConstraints::operator!=().
float VgEngine::VgColor::mAlpha |
The alpha component of the color.
Referenced by operator==().
float VgEngine::VgColor::mBlue |
The blue component of the color.
Referenced by operator==().
float VgEngine::VgColor::mGreen |
The green component of the color.
Referenced by operator==().
float VgEngine::VgColor::mRed |
The red component of the color.
Referenced by operator==().