#include <fbtypes.h>
Class Description
Color and alpha vector.
Definition at line 489 of file fbtypes.h.
Constructor & Destructor Documentation
FBColorAndAlpha::FBColorAndAlpha |
( |
|
) |
|
FBColorAndAlpha::FBColorAndAlpha |
( |
double * |
pValue |
) |
|
Constructor from array.
- Parameters:
-
pValue |
Array to take values from. |
FBColorAndAlpha::FBColorAndAlpha |
( |
double |
pRed, |
|
|
double |
pGreen, |
|
|
double |
pBlue, |
|
|
double |
pAlpha = 1.0 |
|
) |
|
|
Constructor.
- Parameters:
-
pRed |
Red component. |
pGreen |
Green component. |
pBlue |
Blue component. |
pAlpha |
Alpha component(default=1.0). |
FBColorAndAlpha::FBColorAndAlpha |
( |
const FBColor & |
pValue |
) |
|
Constructor from FBColor.
- Parameters:
-
pValue |
FBColor to take values from. |
FBColorAndAlpha::FBColorAndAlpha |
( |
const FBColorF
& |
pValue |
) |
|
Constructor from FBColorF.
- Parameters:
-
pValue |
FBColorF to take values from. |
Member Function Documentation
double& FBColorAndAlpha::operator[] |
( |
int |
pIndex |
) |
|
Overloaded [] operator.
- Parameters:
-
pIndex |
Element to access. |
- Returns:
- Element at pIndex.
Reimplemented from FBVector4<
double >.
FBColorAndAlpha::operator double * |
( |
|
) |
const |
Overloaded cast to array.
- Returns:
- Array of items of tType.
Reimplemented from FBVector4<
double >.
Overloaded equal operator.
- Parameters:
-
- Returns:
- this vector as a const.
void FBColorAndAlpha::operator= |
( |
double * |
pValue |
) |
|
const FBVector4< double >&
FBColorAndAlpha::operator= |
( |
const FBVector4< double >
& |
pVector |
) |
|
void FBVector4< double >::Init |
( |
|
) |
[inherited] |
Initialization function.
Clear vector.
void FBVector4< double >::Set |
( |
double * |
pValue |
) |
[inherited] |
Set vector from an array.
- Parameters:
-
pValue |
Array to copy value from. |
not equal operator.
- Parameters:
-
pVector |
Vector to compare. |
- Returns:
- true if not equal.
equal operator.
- Parameters:
-
pVector |
Vector to compare. |
- Returns:
- true if equal.
Member Data Documentation
The documentation for this class was generated from the following
file: