GLUT Subwindow Template
This article describes in detail how to set up your first OpenGL GLUT window with multiple sub-windows, and provides you with a template for your OpenGL applications. It can be used in the following ways:
- Understand GLUT sub-windows
- Learn new GLUT event handlers
- Use the code as template if you ever needed a Graphics program with multiple sub-windows
Click below for a screen shot of what the program would look like when its run.
Make sure you read the GLUT Window Template article as a prerequisite to this article.
Check it out, and let me know your feedback.
Enjoy!
Ali B

Hey Ali,I Liked your multiple subwindow totorial,I altered it so I can change the size of the subwindows with the mouse sort of like a split window. I am building my own GUI toolkit from scratch but I don’t seem to be able to get focus
on the GUI objects with the glut passive mouse if they are in a multiple subwindow setup. Do you know how to do that?
A tutorial on something like that (with an example program)would be great. Also a tutorial on us using gl selection mechanism to heirarchial picking on points,lines & polygons in 3d(with a good example program).I am also building a 3d modeler/editor. Much Thanks, Jody Bush