| Context: | TOC -> GLUT/Tk Overview -> Application Development |
| Related: | Installation, Application Programming Interface, Application Development |
| Details: | Example |
#include <GL/glut.h>
set GLUTTK = /home/grfx/newglut/glut-3.7 cc -o platonics.oglx -I$GLUTTK/include \ -xansi -Olimit 1300 -32 -O2 platonics.c $GLUTTK/lib/glut/libglut.a \ -lGLU -lGL -lXmu -lXext -lX11 -nostdlib -L/usr/lib -lm
package require gluttk
Also, you may want to include the utility routine: enable_glut_to_tk in your Tcl script. You should now be able to invoke the new Tcl commands.