The meaning of column-major in opengl has confused me.
A 4x4 matrix looks like this with the numbers representing the sequential order of each number,
1 5 9 13
2 6 10 14
3 7 11 15
4 8 12 16
Correct? So 1 - 4 might represent the x, y, z, and w of some vector…
Would I initialize a float array or a mat4 like this:
mat4( 1, 2, 3, 4,
5, 6, 7, 8,
9, 10, 11, 12,
13, 14, 15, 16);
or like this?
mat4( 1, 5, 9, 13,
2, 6, 10, 14,
3, 7, 11, 15,
4, 8, 12, 16);
Thanks for any help.