Hello there,

I am right in thinking that the OpenGL function:
glMultMatrixd() is not an easy function to re-create.

It’s just that I was looking through the mesa implementation
and it looked quite in depth?


Unless you’re looking for ultimate speed, it’s not that hard, a double loop should do… see (equations 3-12 should give you enough to work with).

Note that OpenGL spec refers to the matrices being stored in column major order, however it doesn’t REALLY matter, see question 9.005 on

I’ll have alook.