| TMCGradient::TMCGradient | ( | void | ) | [inline] |
| TMCGradient::TMCGradient | ( | boolean | isEmpty | ) | [inline] |
| TMCGradient::TMCGradient | ( | const TMCClassArray< TMCColorRGBAIndex > & | colorArray | ) | [inline] |
| void TMCGradient::GetColor | ( | real32 | pos, | |
| TMCColorRGBA & | color | |||
| ) | const |
Get a color in the gradient. Position must be beetween 0 and 1.
| pos | the position asked | |
| color | the color to be filled |
| int32 TMCGradient::GetColorKeyCount | ( | ) | const [inline] |
| void TMCGradient::GetColorKey | ( | const int32 | elem, | |
| TMCColorRGBAIndex & | colorKey | |||
| ) | const [inline] |
Color keys accessor
| elem | the index in the array | |
| colorKey | the TMCColorRGBAIndex to be returned |
| int32 TMCGradient::FindColorKey | ( | const TMCColorRGBAIndex & | colorKey, | |
| const real32 | epsilon | |||
| ) | const |
Looks for a specific colorKey in the array of keys. If several are found in the tolerance (epsilon), the nearest one is choosen.
| colorKey | the TMCColorRGBAIndex to be found in the array. | |
| epsilon | a tolerance. |
Look for a colorKey with the same index in the array of keys. If several are found in the tolerance (epsilon), the nearest one is choosen.
| index | the index to be found. | |
| epsilon | a tolerance. |
| void TMCGradient::SetColorKeyColor | ( | const int32 | elem, | |
| TMCColorRGBA & | color | |||
| ) |
Sets the color for a colorKey.
| elem | the position of the colorKey in the array. | |
| color | the new color for this colorKey. |
Set the index for a colorKey.
| elem | the position of the colorKey in the array. | |
| index | the new index for this colorKey. |
| int32 TMCGradient::AddColorKey | ( | TMCColorRGBAIndex & | colorIndex | ) |
Adds a new colorKey to the array of keys
| colorIndex | the colorKey to be added |
| int32 TMCGradient::AddColorKey | ( | TMCColorRGBA & | color, | |
| real32 | index | |||
| ) |
Adds a new colorKey to the array of keys
| color | the colorKey to be added | |
| index | the index of the colorKey |
| int32 TMCGradient::AddColorKey | ( | real32 | red, | |
| real32 | green, | |||
| real32 | blue, | |||
| real32 | alpha, | |||
| real32 | index | |||
| ) |
Adds a new colorKey to the array of keys
| red | the red part of the colorKey to be added | |
| green | the green part of the colorKey to be added | |
| blue | the blue part of the colorKey to be added | |
| alpha | the alpha part of the colorKey to be added | |
| index | the index of the colorKey |
Removes a colorKey from the array of keys.
| elem | the position of the colorKey in the array. |
| boolean TMCGradient::IsEqual | ( | const TMCGradient & | grad, | |
| const real32 | epsilon = 0.0f | |||
| ) | const |
Equality test beetween this gradient and another one
| grad | the other gradient | |
| epsilon | a tolerance value |
| void TMCGradient::Interpolate | ( | const TMCGradient & | from, | |
| const TMCGradient & | to, | |||
| const real32 | interpolant | |||
| ) |
Linear interpolation: set this gradient to a value beetween the from and to gradients
| from | first gradient. | |
| to | second gradient. | |
| interpolant | interpolation value (should be beetween 0 and 1). |
| void TMCGradient::Interpolate | ( | const TVector2 & | interpolants, | |
| const TMCGradient & | lowerLeft, | |||
| const TMCGradient & | lowerRight, | |||
| const TMCGradient & | upperLeft, | |||
| const TMCGradient & | upperRight | |||
| ) |
Bilinear interpolation: set this gradient to a value beetween the 4 gradients
| interpolants | interpolation values ( x [left/right], y [lower/upper]) | |
| lowerLeft,lowerRight,upperLeft,upperRight,: | the 4 gradients |
| boolean TMCGradient::operator== | ( | const TMCGradient & | rhs | ) | const [inline] |
| boolean TMCGradient::operator!= | ( | const TMCGradient & | rhs | ) | const [inline] |
| TMCGradient & TMCGradient::operator= | ( | const TMCGradient & | grad | ) | [inline] |
| TMCGradient& TMCGradient::operator= | ( | const int32 | i | ) | [inline] |
TMCClassArray<TMCColorRGBAIndex> TMCGradient::fColorIndexArray [protected] |
1.5.3