Intro to OpenGL and Tcl/Tk
- General introduction
- Introduction to OpenGL
- Programming examples 1 and 2
- Introduction to Tcl/Tk
- Programming examples 3, 4 and 5
Introduction to OpenGL
Your program calls OpenGL graphics functions, which access the graphics hardware for you.
So: OpenGL is hardware independent -> no user I/O (windows, mouse, etc.)
For user I/O we use Tcl/Tk. Also available: auxiliary library. On other systems it may for instance be Windows NT.
What do you do to get your picture on screen?
- Build models from points (vertices), lines, polygons (must be convex)
- Specify the scene: type of projection, position of viewpoint
- Specify whether shading, lighting, etc. should be used
- Send your data to OpenGL
You can also store your model data in a display list, and "execute"
it later (Chapter 4 of the OpenGL Programming Guide).
Programming examples 1 and 2
All programming examples can be found in /u/cs426/Examples/Tcl+OpenGL/ex*.
Introduction to Tcl/Tk