20 #include "../basic_types.h"
41 #ifdef BEATMUP_CHANNEL_ORDER_ARGB
43 inline color4f
r()
const {
return rows[1]; }
44 inline color4f
g()
const {
return rows[2]; }
45 inline color4f
b()
const {
return rows[3]; }
46 inline color4f&
a() {
return rows[0]; }
47 inline color4f&
r() {
return rows[1]; }
48 inline color4f&
g() {
return rows[2]; }
49 inline color4f&
b() {
return rows[3]; }
50 #elif BEATMUP_CHANNEL_ORDER_BGRA
51 inline color4f
b()
const {
return rows[0]; }
52 inline color4f
g()
const {
return rows[1]; }
53 inline color4f
r()
const {
return rows[2]; }
54 inline color4f
a()
const {
return rows[3]; }
55 inline color4f&
b() {
return rows[0]; }
56 inline color4f&
g() {
return rows[1]; }
57 inline color4f&
r() {
return rows[2]; }
58 inline color4f&
a() {
return rows[3]; }
90 Matrix(
float hDegrees,
float saturationFactor = 1.0f,
float valueFactor = 1.0f);
Matrix()
Initializes the color matrix to identity.
void operator=(const Matrix &)
Matrix operator*(const Matrix &) const
Computes the right-multiplication of the current Matrix and another Matrix.
color4f & operator[](int)
Retrieves matrix rows by index in 0..3 range.
Beatmup object base class
Beatmup::color3f preservedColor