FreeGlut 和 OpenGL多窗口显示
glut多窗口(子窗口)程序的实现:类似MFC的拆分窗口, http://hi.baidu.com/gongziya/item/fc232eac321212a628ce9d30 和: http://www.lighthouse3d.com/tutorials/glut-tutorial/subwindows/ 多个窗口(不是子窗口): http://www.cs.uml.edu/~hmasterm/Charts/Managing_Multiple_Windows.pdf 和: http://www.cs.uml.edu/~hmasterm/Charts/Managing_Multiple_Windows.pdf #include <Windows.h> #include <GL/GL.h> #include <GL/freeglut.h> */ /*--> */ void window1_reshape(int width, int height) { } void window1_display() { glClear(GL_COLOR_BUFFER_BIT); glClearColor(1.0,1.0,0.0,1.); glBegin(GL_TRIANGLES); glVertex3f(-0.5,-0.5,0.0); glVertex3f(0.5,0.0,0.0);