| Context: | TOC -> GLUT/Tk Overview |
| Details: | Installation, Application Programming Interface, Application Development |
GLUT/Tk was written by the Visualization and Usability Group.
The Tcl/Tk system is of course a widely available full-featured menu system.
GLUT/Tk integrates these two very successful and portable systems: GLUT for portable 3D graphics, and Tcl/Tk for the development of sophisticated GUIs. Although both of these were originally developed under X windows and Unix, they now both offer a Windows version as well.
GLUT/Tk is a "light-weight" system that seeks to leverage GLUT and Tcl/Tk by tying them together in a stylistically consistent way with the addition of only a few commands to each. As a result, developers can code 3D applications, including graphical input, windows, and menus, that will port easily between Unix-based systems and Windows-based systems. Furthermore, there should be at most a negligible performance penalty, since the purely graphical operations are still programmed directly in OpenGL.
The independent processes then send messages back and forth. To the GLUT process, the Tcl process appears to be just another input device (like the mouse and keyboard), and the API is written to conform to this model. The GLUT process can also send certain events back to the Tcl process that simulate button presses of selected menu widgets. (Terminology note: we will refer to an interactive subwindow of the Tk window as a tk-button and reserve the simple term button for the part of the mouse that your finger presses.) This latter capability is useful for implementing shortcut keystrokes.