personally, I would use:
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
glPerspective(…);
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
glScale(1.0, 1.0, -1.0);
gluLookAt(…);
- toggle your cullface
personally, I would use:
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
glPerspective(…);
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
glScale(1.0, 1.0, -1.0);
gluLookAt(…);
Originally posted by yoyo:
[b]personally, I would use:
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
glPerspective(…);
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
glScale(1.0, 1.0, -1.0);
gluLookAt(…);
- toggle your cullface[/b]
I think it would be a cleaner style to use glFrontFace to set the orientation of your polygons, but this is just a minor issue.