Archived

This topic is now archived and is closed to further replies.

glLoadIdentity();

This topic is 5153 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

It loads the current matrix with an identity matrix. An identity matrix looks like this:

1000
0100
0010
0001


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]

Share this post


Link to post
Share on other sites