Classes/Utilities/GL/matrix.h

 
/*
 Copyright (C) 2016 Apple Inc. All Rights Reserved.
 See LICENSE.txt for this sample’s licensing information
 
 Abstract:
 Simple 4x4 matrix computations
 */
 
#ifndef MATRIX_H
#define MATRIX_H
 
void mat4f_LoadIdentity(float* m);
void mat4f_LoadScale(float* s, float* m);
 
void mat4f_LoadXRotation(float radians, float* mout);
void mat4f_LoadYRotation(float radians, float* mout);
void mat4f_LoadZRotation(float radians, float* mout);
 
void mat4f_LoadTranslation(float* t, float* mout);
 
void mat4f_LoadPerspective(float fov_radians, float aspect, float zNear, float zFar, float* mout);
void mat4f_LoadOrtho(float left, float right, float bottom, float top, float near, float far, float* mout);
 
void mat4f_MultiplyMat4f(const float* a, const float* b, float* mout);
 
#endif /* MATRIX_H */