glutInit(int param1, char **param2);
int h=480;
int w=640;
glutInitDisplayMode(GLUT_RGB | GLUT_DOUBLE | GLUT_DEPTH);
glutInitWindowSize (w, h);
glutInitWindowPosition (0, 0);
glutCreateWindow("Bleh");
glutInitWindowSize (200, 200);
glutInitWindowPosition (500, 500);
glutCreateWindow("Info");
glutDisplayFunc(Render2);
glShadeModel(GL_SMOOTH); glClearColor(0.0f, 0.0f, 0.0f, 0.5f);
glClearDepth(1.0f);
glEnable(GL_DEPTH_TEST);
glDepthFunc(GL_LEQUAL);
glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST);
glLightfv(GL_LIGHT1, GL_AMBIENT, LightAmbient);
glLightfv(GL_LIGHT1, GL_DIFFUSE, LightDiffuse);
glLightfv(GL_LIGHT1, GL_POSITION,LightPosition); glEnable(GL_LIGHT1);
glEnable(GL_TEXTURE_2D);
LoadGLTextures();
BuildFont();
glMatrixMode(GL_PROJECTION);
glutDisplayFunc(RenderScene);
glutKeyboardFunc(Input);
glutSpecialFunc(Input);
gluPerspective(45, (GLfloat)w/(GLfloat)h, 1.0, 450.0);
glMatrixMode(GL_MODELVIEW);
glutMainLoop();