This topic is a trick? no 馃檪

Some times when you need to do matrix multiplication in many S.O. with different compilers or SSE2, 3… 3D Now! and so on you want to optimize matrix multiplication with ASM code. Next is a little trick for to use that in GPU without this ASM and more faster. For example if you want model animation:

float mBone01[16] = { ... }
float mBone02[16] = { ... }
float mResult[16];

glMatrixMode  ( GL_MODELVIEW );
glLoadIdentity( );
glLoadMatrix  ( mBone01 );
glMultMatrix  ( mBone02 );
glGetMatrix   ( GL_MODELVIEW, mResult );