|
Public Member Functions |
| | ColorReal (real red=1.0f, real green=1.0f, real blue=1.0f, real alpha=1.0f) |
| | Constructs a color using the 4 given real values.
|
| | ColorReal (const real *color) |
| | Constructs a color from the given 4-element real array.
|
| | ColorReal (const Vector4 &v) |
| | Constructs a color from the given vector.
|
| template<wxUint32 RedShift, wxUint32 GreenShift, wxUint32 BlueShift, wxUint32 AlphaShift> |
| | ColorReal (Color< RedShift, GreenShift, BlueShift, AlphaShift > color) |
| | Constructs a color from the given Color object.
|
| void | Set (real red, real green, real blue, real alpha=1.0f) |
| | Sets this color using the 4 given real values.
|
| void | Set (const Vector4 &v) |
| | Sets this color using the given vector.
|
| void | SetAlpha (real alpha) |
| | Sets the alpha component of this color.
|
| void | SetRed (real red) |
| | Sets the red component of this color.
|
| void | SetGreen (real green) |
| | Sets the green component of this color.
|
| void | SetBlue (real blue) |
| | Sets the blue component of this color.
|
| real | GetAlpha () const |
| | Returns the alpha component of this color.
|
| real | GetRed () const |
| | Returns the red component of this color.
|
| real | GetGreen () const |
| | Returns the green component of this color.
|
| real | GetBlue () const |
| | Returns the blue component of this color.
|
| | operator real * () |
| | Casts this color to a real array.
|
| | operator const real * () const |
| | Casts this color to a const real array.
|
| template<wxUint32 RedShift, wxUint32 GreenShift, wxUint32 BlueShift, wxUint32 AlphaShift> |
| ColorReal & | operator= (Color< RedShift, GreenShift, BlueShift, AlphaShift > color) |
| | Assigns the given Color object to this color.
|
| ColorReal & | operator= (const Vector4 &v) |
| | Assigns the given vector to this color object.
|
| Vector4 | GetAsVector4 () const |
| | Returns this color as a vector.
|
| void | Clamp () |
| | Clamps all components of this color to the range [0, 1].
|
| bool | operator== (const ColorReal &color) const |
| | Equality operator.
|
| bool | operator!= (const ColorReal &color) const |
| | Inequality operator.
|
Public Attributes |
|
|
real | m_red |
| | Color component.
|
|
real | m_green |
| | Color component.
|
|
real | m_blue |
| | Color component.
|
|
real | m_alpha |
| | Color component.
|