I want to know if i can mix glPerspective and glOrtho in my program. ie, i need draw four pictures
on the four corners of my client area and a ball in the middle, the ball must rotate repeatedly.
if i only use glOrtho and the pixel space, the ball cannt work(i am not sure about this, can anybody
tell me if i was right?), because it has a depth(z) component. so i want to do the following:
glOrtho(0.0, w, 0.0, h, 0.1f, 100.0f);
//draw the four pictures at here
gluPerspective(45.0f, (GLfloat)w/(GLfloat)h, 0.1f, 100.0f);
//draw the ball and rotate it.
could this works well? Thanks a lot!