View Full Version : glMultMatrixd()

09-17-2009, 04:33 PM
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?


Lord crc
09-17-2009, 10:44 PM
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

09-20-2009, 08:25 AM
I'll have alook.