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.

glut_subwindow_template.jpg

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

  1. 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

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.