glMultMatrixd()

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?

Thanks.

Unless you’re looking for ultimate speed, it’s not that hard, a double loop should do… see http://mathworld.wolfram.com/MatrixMultiplication.html (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 http://www.opengl.org/resources/faq/technical/transformations.htm

I’ll have alook.

Thanks!