#include <FMColor.h>
Public Member Functions | |
| FMColor () | |
| Creates an empty FMColor. | |
| FMColor (uint8 _r, uint8 _g, uint8 _b, uint8 _a=255) | |
| Creates the FMColor with the coordinates values. | |
| FMColor (uint32 hex) | |
| Creates the FMColor from a color encoded into a uint32. | |
| FMColor (const float *components, uint32 componentCount) | |
Creates the FMColor from a list of floats. | |
| FMColor (const FMVector3 &v) | |
| Creates a color value from a 3D vector. | |
| FMColor (const FMVector4 &v) | |
| Creates a color value from a 4D vector. | |
| void | ToFloats (float *components, uint32 componentCount) |
Get this FMColor as an array of floats. | |
| uint8 | ComponentAverage () |
| Get the average of the three color values of this FMColor. | |
| operator uint8 * () | |
| Get this FMColor as an array of uint8s. | |
Public Attributes | |
| uint8 | r |
| The red component. | |
| uint8 | g |
| The green component. | |
| uint8 | b |
| The blue component. | |
| uint8 | a |
| The alpha component. | |
Not used within FCollada.
|
|
Creates an empty FMColor. The default values are non deterministic. |
|
||||||||||||||||||||
|
Creates the FMColor with the coordinates values.
The first three coordinates are taken from the FMVector3, where the first one is the x value, the second is that y, and the third is the z. The forth value is the
|
|
|
Creates the FMColor from a color encoded into a uint32. The most significant byte makes up the red value. The second most significant makes up the green value, the third the blue, and the forth the alpha.
|
|
||||||||||||
|
Creates the FMColor from a list of
It creates the FMColor with the values specified in the
|
|
|
Creates a color value from a 3D vector. The alpha value of the color is set to the default of 255 (1.0f).
|
|
|
Creates a color value from a 4D vector.
|
|
|
Get the average of the three color values of this FMColor.
|
|
|
Get this FMColor as an array of uint8s.
|
|
||||||||||||
|
Get this FMColor as an array of
It fills the first componentCount elements (max 4) of
|
1.4.6-NO