Filling a matrix in opengl

Started by
0 comments, last by executor_2k2 21 years, 9 months ago
Im using 4x4 matrices and they are represented in code by arrays of 16 floats aka float array[16]. When I use glMultMatrixf or similar commands how are my matrices loaded in ogl? Do the first four floats become the first column or first row in opengl?
Well, that was a waste of 2 minutes of my life. Now I have to code faster to get 'em back...
Advertisement
The first four floats becomes the first column in OpenGL. Like this:

00 04 08 12
01 05 09 13
02 06 10 14
03 07 11 15
~neoztar "Any lock can be picked with a big enough hammer"my website | opengl extensions | try here firstguru of the week | msdn library | c++ faq lite

This topic is closed to new replies.

Advertisement