From 957c64c7b8b5e98d8a03dd84c7e27e7991fb9dbc Mon Sep 17 00:00:00 2001 From: iamcheeseman Date: Mon, 6 Apr 2026 17:04:05 -0400 Subject: Initial commit --- micro/mat4.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 micro/mat4.h (limited to 'micro/mat4.h') diff --git a/micro/mat4.h b/micro/mat4.h new file mode 100644 index 0000000..3d99312 --- /dev/null +++ b/micro/mat4.h @@ -0,0 +1,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__ -- cgit v1.3-2-g0d8e