void display(void){ changeProjectionSettings() ; // Called whenever something needs to be redrawn on the screen glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glLoadIdentity() ; gluLookAt(0,12,12,0,0,0,0,1,0); // The camera rotates around the objects in the scene with this setting // The camera rotates around it's central axis if I switch the order of lookat // and rotate commands. glRotatef(rot_to_x,1.0,0.0,0.0) ; glRotatef(rot_to_y,0.0,1.0,0.0) ; // Display name changeToOrtho() ; glPushMatrix() ; glLoadIdentity() ; glColor3f(1.0,1.0,0.0) ; renderString(0,10,"Neeraj Prashar - 23389059"); glPopMatrix() ; restoreOldProj() ; // Draw origin and grid drawGrid(); drawOrigin(); // Draw Teapot //buildTeapot() ; // Draw the building parser.buildModelBuilding() ; // Swap buffers and make it viewable glutSwapBuffers() ; }