blob: 3d99312dabf65694ad90472f64ee1d04f8af5ddd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#ifndef __MICRO_MAT4_H__
#define __MICRO_MAT4_H__
#include "common.h"
typedef float mat4[4][4];
void mat4_identity(mat4 m);
void mat4_translate(mat4 m, float x, float y);
void mat4_mult(mat4 dst, mat4 a, mat4 b);
void mat4_ortho(
mat4 m,
float l, float r,
float t, float b,
float n, float f
);
#endif // __MICRO_MAT4_H__
|