Drawing in GL

Tiny Drawing Programs in C Using OpenGL

2003

A few years ago, I happened upon a program called Dynadraw by Paul Haeberli. It was the first time I encountered an interactive graphical C program that was beautiful and relatively simple. Thinking it would be nice to get into using C for interactive work, I opened up the red book and the GLUT spec, ported Dynadraw to Mac OS X, and made a few simpler derivative works.

The programs are set up a bit like Macromedia Flash and Director. The coordinate space has been set up so that the origin is in the upper left with the positive y axis pointing downward. Pixel offsets are used for positioning. The screen is updated on a regular interval. These programs serve as a nice stepping stone for Flash and Director programmers to get into OpenGL and GLUT.

Download

This software is provided without even a semblance of a warrantee or guarantee, best of luck to you. Refer to the Dynadraw website for information about the original 1989 version.

Mac OS X 10.3 Required

Build Instructions

  1. Ensure that GCC is installed. Apple's XCode Developer Tools for Mac OS X includes GCC.
  2. Unarchive the tarball
  3. The comments at the top of each file includes Mac OS X build instructions, but these sources should compile without much trouble on any recent system.

Copyright © 2003 Nicholas Zambetti