1 #ifndef __SSPLAYER_MATRIX__
2 #define __SSPLAYER_MATRIX__
7 void IdentityMatrix(
float* matrix );
8 void ScaleMatrix(
float* _matrix ,
const float x ,
const float y ,
const float z);
9 void TranslationMatrix(
float* _matrix ,
const float x ,
const float y ,
const float z );
10 void MultiplyMatrix(
const float *m0,
const float *m1,
float *matrix);
11 void Matrix4RotationX(
float* _matrix ,
const float radians );
12 void Matrix4RotationY(
float* _matrix ,
const float radians );
13 void Matrix4RotationZ(
float* _matrix ,
const float radians );
15 inline void TranslationMatrixM(
float* _matrix ,
const float x ,
const float y ,
const float z )
19 TranslationMatrix( _m , x , y , z );
21 MultiplyMatrix( _m , _matrix , _matrix );
24 inline void ScaleMatrixM(
float* _matrix ,
const float x ,
const float y ,
const float z )
29 ScaleMatrix( _m , x , y , z );
30 MultiplyMatrix( _m , _matrix , _matrix );
33 inline void RotationXYZMatrixM(
float* _matrix ,
const float x ,
const float y ,
const float z )
40 Matrix4RotationX( _m , x );
42 MultiplyMatrix( _m , _matrix , _matrix );
49 Matrix4RotationY( _m , x );
51 MultiplyMatrix( _m , _matrix , _matrix );
58 Matrix4RotationZ( _m , z );
60 MultiplyMatrix( _m , _matrix , _matrix );