|
Beatmup
|
RGBA color mapping. More...
#include <matrix.h>
Public Member Functions | |
| color4f | r () const |
| color4f | g () const |
| color4f | b () const |
| color4f | a () const |
| color4f & | r () |
| color4f & | g () |
| color4f & | b () |
| color4f & | a () |
| Matrix () | |
| Initializes the color matrix to identity. More... | |
| Matrix (const color4f &r, const color4f &g, const color4f &b, const color4f &a) | |
| Constructs a matrix from four RGBA color values setting them as matrix rows. More... | |
| Matrix (float hDegrees, float saturationFactor=1.0f, float valueFactor=1.0f) | |
| Constructs a color matrix representing an HSV correction transformation. More... | |
| Matrix (const color3f &preservedColor, float saturationFactor=1.0f, float valueFactor=1.0f) | |
| Constructs a color matrix representing continuous color inversion with a fixed hue point. More... | |
| color4f & | operator[] (int) |
| Retrieves matrix rows by index in 0..3 range. More... | |
| color4f | operator[] (int) const |
| Matrix | operator* (const Matrix &) const |
| Computes the right-multiplication of the current Matrix and another Matrix. More... | |
| void | operator= (const Matrix &) |
Public Member Functions inherited from Beatmup::Object | |
| virtual | ~Object () |
Public Attributes | |
| union { | |
| float elem [4][4] | |
| struct { | |
| color4f rows [4] | |
| } | |
| }; | |
| Matrix elements. More... | |
RGBA color mapping.
A color value is mapped onto another color value by multiplying the 4x4 matrix by an RGBA input column.
| Matrix::Matrix | ( | ) |
Initializes the color matrix to identity.
Definition at line 28 of file matrix.cpp.
Constructs a matrix from four RGBA color values setting them as matrix rows.
| r | First row of the color matrix. |
| g | Second row of the color matrix. |
| b | Third row of the color matrix. |
| a | Fourth row of the color matrix. |
Definition at line 35 of file matrix.cpp.
| Matrix::Matrix | ( | float | hDegrees, |
| float | saturationFactor = 1.0f, |
||
| float | valueFactor = 1.0f |
||
| ) |
Constructs a color matrix representing an HSV correction transformation.
| hDegrees | hue offset in degrees (additive) |
| saturationFactor | saturation scaling factor |
| valueFactor | value scaling factor |
Definition at line 69 of file matrix.cpp.
| Matrix::Matrix | ( | const color3f & | preservedColor, |
| float | saturationFactor = 1.0f, |
||
| float | valueFactor = 1.0f |
||
| ) |
Constructs a color matrix representing continuous color inversion with a fixed hue point.
| preservedColor | color giving a hue value that remains unchanged by the transform. |
| saturationFactor | saturation scaling factor |
| valueFactor | value scaling factor |
Definition at line 84 of file matrix.cpp.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| color4f & Matrix::operator[] | ( | int | row | ) |
Retrieves matrix rows by index in 0..3 range.
Definition at line 42 of file matrix.cpp.
| color4f Matrix::operator[] | ( | int | row | ) | const |
Definition at line 47 of file matrix.cpp.
Computes the right-multiplication of the current Matrix and another Matrix.
Definition at line 52 of file matrix.cpp.
| void Matrix::operator= | ( | const Matrix & | source | ) |
Definition at line 64 of file matrix.cpp.
| union { ... } |
Matrix elements.