博客转自: http://www.lighthouse3d.com/tutorials/glut-tutorial/subwindows/ 创建和销毁子窗口 With GLUT we can define subwindows, i.e. divide the main window in different regions, each with its own OpenGL context and callbacks. One possible application is to provide several views of the same scene simultaneously. In order to create a subwindow we use the function glutCreateSubWindow with the following syntax: int glutCreateSubWindow( int parentWindow, int x, int y, int width, int height); Parameters: parentwindow – the id of the parent window x, y – the top left corner of the subwindow, relative to the