What does glLoadIdentity() do in OpenGL?
The identity matrix, in terms of the projection and modelview matrices, essentially resets the matrix back to its default state. As you hopefully know, glTranslate and glRotate are always relative to the matrix’s current state. So for instance, if you call glTranslate, you are translating from the matrix’s current ‘position’, not from the origin. But … Read more