LIFE_OPEN_GL is a C program, using GLfloat arithmetic, which implements John Conway's Game of Life, presenting the evolution graphically, using OpenGL.
OpenGL ships with OS9 and OSX for the Macintosh. You can obtain the latest software version on the Apple OpenGL web site.
Note that the source code and compilation script have been adapted for use on a Macintosh running OS X.
For that reason, the include file references have been changed from:
# include <GL/gl.h>
# include <GL/glu.h>
# include <GL/glut.h>
to:
# include <OpenGL/gl.h>
# include <OpenGL/glu.h>
# include <GLUT/glut.h>
The compilation statement, which might ordinarily be
gcc life_open_gl.c -lGL -lGLU -lglut
was modified to:
gcc life_open_gl.c -framework OpenGL -framework GLUT
Simon Green
FLOOD_OPEN_GL is a C program which allows a user to select a region and flood it with color, using OpenGL, by Art Wetzel.
OPEN_GL is a C example directory which demonstrates the use of OpenGL for graphics applications.
You can go up one level to the C source codes.