glLoadIdentity();
glLoadIdentity();
can someone explain to me exactly what it does im having trouble grasping the concept
It loads the current matrix with an identity matrix. An identity matrix looks like this:
And you select the current matrix by, glMatrixMode().
So if you code:
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
will make the GL_MODELVIEW matrix look like the 01's above.
[edit] And if you want to know more about an identity matrix and matrices just search google.com
[edited by - angry on November 8, 2003 12:35:32 PM]
1000010000100001
And you select the current matrix by, glMatrixMode().
So if you code:
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
will make the GL_MODELVIEW matrix look like the 01's above.
[edit] And if you want to know more about an identity matrix and matrices just search google.com
[edited by - angry on November 8, 2003 12:35:32 PM]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement