Fix up the struct member names in the autowah effect
[openal-soft.git] / common / vecmat.h
blob0a60cb9e894e990a4d8776cb4dcdf292e1363a10
1 #ifndef COMMON_VECMAT_H
2 #define COMMON_VECMAT_H
4 #include "AL/al.h"
7 struct aluVector {
8 alignas(16) ALfloat v[4];
9 };
11 inline void aluVectorSet(aluVector *vector, ALfloat x, ALfloat y, ALfloat z, ALfloat w)
13 vector->v[0] = x;
14 vector->v[1] = y;
15 vector->v[2] = z;
16 vector->v[3] = w;
20 struct aluMatrixf {
21 alignas(16) ALfloat m[4][4];
23 static const aluMatrixf Identity;
26 inline void aluMatrixfSetRow(aluMatrixf *matrix, ALuint row,
27 ALfloat m0, ALfloat m1, ALfloat m2, ALfloat m3)
29 matrix->m[row][0] = m0;
30 matrix->m[row][1] = m1;
31 matrix->m[row][2] = m2;
32 matrix->m[row][3] = m3;
35 inline void aluMatrixfSet(aluMatrixf *matrix, ALfloat m00, ALfloat m01, ALfloat m02, ALfloat m03,
36 ALfloat m10, ALfloat m11, ALfloat m12, ALfloat m13,
37 ALfloat m20, ALfloat m21, ALfloat m22, ALfloat m23,
38 ALfloat m30, ALfloat m31, ALfloat m32, ALfloat m33)
40 aluMatrixfSetRow(matrix, 0, m00, m01, m02, m03);
41 aluMatrixfSetRow(matrix, 1, m10, m11, m12, m13);
42 aluMatrixfSetRow(matrix, 2, m20, m21, m22, m23);
43 aluMatrixfSetRow(matrix, 3, m30, m31, m32, m33);
46 #endif /* COMMON_VECMAT_H */