Newer
Older
Import / applications / HighwayDash / ports / Platform / Qt / GLKMatrix.h
@John John on 29 Dec 2020 913 bytes bulk import from macbookpro checkouts
#ifndef GLK_MATRIX_H
#define GLK_MATRIX_H


struct GLKMatrix4
{
  float m[16];
};


struct GLKMatrix3
{
  float m[9];
};


GLKMatrix3 GLKMatrix4GetMatrix3(GLKMatrix4);
GLKMatrix4 GLKMatrix4MakePerspective(float a_fov, float a_aspect, float a_near, float a_far);
GLKMatrix4 GLKMatrix4MakeTranslation(float, float, float);
GLKMatrix4 GLKMatrix4Rotate(GLKMatrix4, float a_rad, float, float, float);
GLKMatrix4 GLKMatrix4Scale(GLKMatrix4, float, float, float);
GLKMatrix4 GLKMatrix4Translate(GLKMatrix4, float, float, float);
GLKMatrix4 GLKMatrix4Multiply(GLKMatrix4, GLKMatrix4);
GLKMatrix3 GLKMatrix3InvertAndTranspose(GLKMatrix3, bool*);
GLKMatrix4 GLKMatrix4MakeOrtho(float,float,float,float,float,float);
GLKMatrix4 GLKMatrix4MakeTranslation(float,float,float);
GLKMatrix4 GLKMatrix4Make(float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float);


#endif // GLK_MATRIX_H