glLoadIdentity();

Started by
0 comments, last by Mat1515 20 years, 5 months ago
glLoadIdentity(); can someone explain to me exactly what it does im having trouble grasping the concept
Ut o not me again:) lol
Advertisement
It loads the current matrix with an identity matrix. An identity matrix looks like this:
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