X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=dosdemo;a=blobdiff_plain;f=src%2Fvmath.h;h=463fea6e32ef6e0bbd8ad5611be235cae15622fa;hp=6d1add9a1d89b850b93f60e9e29fe84254b7f1c6;hb=fcac764d752234a03df536dd408235170394f6ad;hpb=b546d1a5227ee3a263447e279434842d230f700a diff --git a/src/vmath.h b/src/vmath.h index 6d1add9..463fea6 100644 --- a/src/vmath.h +++ b/src/vmath.h @@ -126,4 +126,37 @@ static INLINE quat_t quat_rotate(quat_t q, float angle, float x, float y, float return quat_mul(q, rq); } +static INLINE void mat4_transpose(float *mat) +{ + int i, j; + + for(i=0; i<4; i++) { + for(j=0; j