X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=dosdemo;a=blobdiff_plain;f=src%2Fvmath.h;h=3cdbedf7fc4353ccf494b2a456d508ec2304975a;hp=6d1add9a1d89b850b93f60e9e29fe84254b7f1c6;hb=45f6f46fe758d15aafccdb69ae837fc7d84ee466;hpb=100da5f0dbf2d9edbc65d6308f9481ca2e4f55df diff --git a/src/vmath.h b/src/vmath.h index 6d1add9..3cdbedf 100644 --- a/src/vmath.h +++ b/src/vmath.h @@ -126,4 +126,19 @@ 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