output from demo_mat.c OpenGL projection matrix pmatrix[ 0.. 3] 1.000000, 0.000000, 0.000000, 0.000000 pmatrix[ 4.. 7] 0.000000, 0.750000, 0.000000, 0.000000 pmatrix[ 8..11] 0.000000, 0.000000, -1.020202, -1.000000 pmatrix[12..15] 0.000000, 0.000000, -4.040404, 0.000000 model view matrix, identity mmatrix[ 0.. 3] 1.000000, 0.000000, 0.000000, 0.000000 mmatrix[ 4.. 7] 0.000000, 1.000000, 0.000000, 0.000000 mmatrix[ 8..11] 0.000000, 0.000000, 1.000000, 0.000000 mmatrix[12..15] 0.000000, 0.000000, 0.000000, 1.000000 model view matrix, after rotation about X axis mmatrix[ 0.. 3] 1.000000, 0.000000, 0.000000, 0.000000 mmatrix[ 4.. 7] 0.000000, 0.866025, 0.500000, 0.000000 mmatrix[ 8..11] 0.000000, -0.500000, 0.866025, 0.000000 mmatrix[12..15] 0.000000, 0.000000, 0.000000, 1.000000 model view matrix, after rotation about X and Y axis mmatrix[ 0.. 3] 0.866025, 0.250000, -0.433013, 0.000000 mmatrix[ 4.. 7] 0.000000, 0.866025, 0.500000, 0.000000 mmatrix[ 8..11] 0.500000, -0.433013, 0.750000, 0.000000 mmatrix[12..15] 0.000000, 0.000000, 0.000000, 1.000000 model view matrix, after rotation about X,Y,Z axis mmatrix[ 0.. 3] 0.750000, 0.649519, -0.125000, 0.000000 mmatrix[ 4.. 7] -0.433013, 0.625000, 0.649519, 0.000000 mmatrix[ 8..11] 0.500000, -0.433013, 0.750000, 0.000000 mmatrix[12..15] 0.000000, 0.000000, 0.000000, 1.000000 model view matrix, after rotation and translation mmatrix[ 0.. 3] 0.750000, 0.649519, -0.125000, 0.000000 mmatrix[ 4.. 7] -0.433013, 0.625000, 0.649519, 0.000000 mmatrix[ 8..11] 0.500000, -0.433013, 0.750000, 0.000000 mmatrix[12..15] -10.116025, 10.559772, -13.825962, 1.000000 0.5, 1.5, 2.5 at win x=25.798641, y=345.927915, z=0.827098 proj -2.000000, -2.666667, -2.000000 to win x=0.000000, y=0.000000, z=0.000000 proj 2.000000, 2.666667, -2.000000 to win x=300.000000, y=400.000000, z=0.000000 proj -200.000000, 266.666667, -200.000000 to win x=0.000000, y=400.000000, z=1.000000 proj 200.000000, -266.666667, -200.000000 to win x=300.000000, y=0.000000, z=1.000000 model view matrix in display mmatrix[ 0.. 3] 0.750000, 0.649519, -0.125000, 0.000000 mmatrix[ 4.. 7] -0.433013, 0.625000, 0.649519, 0.000000 mmatrix[ 8..11] 0.500000, -0.433013, 0.750000, 0.000000 mmatrix[12..15] -10.116025, 10.559772, -13.825962, 1.000000 projection matrix in display pmatrix[ 0.. 3] 1.000000, 0.000000, 0.000000, 0.000000 pmatrix[ 4.. 7] 0.000000, 0.750000, 0.000000, 0.000000 pmatrix[ 8..11] 0.000000, 0.000000, -1.020202, -1.000000 pmatrix[12..15] 0.000000, 0.000000, -4.040404, 0.000000