TkOGL is a package extension to the Tcl scripting language that enables a user to utilize OpenGL, a multi-platform API for interactive 2D and 3D graphics applications. TkOGL makes it possible for the user to display OpenGL graphics on the Tk canvas along with other Tk widgets. This creates opportunities for developers, educators and presenters to script up interactive demos, graphical learning models, and colorful presentations. Designing a simple user interface that interacts with OpenGL graphics is much simpler and much faster through the Tcl interpreter. Much like other Tk Widgets, OpenGL graphics can be rendered step by step so users can see the progressive steps appear on the canvas. TkOGL eliminates the use of compilers, shared libraries, header files and utility toolkits such as GLUT.

TkOGL achieves this by wrapping the GL and GLU commands through SWIG (Simplified Wrapper and Interface Generator), compiling the wrapper code and generating the Tcl extension packages. TkOGL has a window manager which interprets the OpenGL commands and displays the intended graphics like any other application. TkOGL consists of three packages, TkOGL, OpenGL, and OpenGLU, all of which are available under Windows 2000 and Debian Linux platforms.

TkOGL is based on the original work done by Claudio Esperanca in 1997, TkOGL 1.0. Click here for his publication in USENIX. Since then, the project has been managed by Sidney Fels, a professor at the University of British Columbia in Vancouver, Canada. Progressive development versions of TkOGL had been worked on by second and fourth year Electrical and Computer Engineering students under the supervision of Dr. Fels. 

Bézier Surface Demo

TkOGL Features

Home | News | Download | Documentation | Multimedia | Related Links | Contact Info