LIFE_OPENGL is a C program 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>
# include <OpenGL/gl.h> # include <OpenGL/glu.h> # include <GLUT/glut.h>
The compilation statement, which might ordinarily be
was modified to:
gcc life_opengl.c -lGL -lGLU -lglut
gcc life_opengl.c -framework OpenGL -framework GLUT
LIFE_OPENGL is available in a C version and a C++ version.
CAUSTIC_OPENGL, a C++ program which computes a caustic curve and displays it using OpenGL.
FLOOD_OPENGL, a C program which allows a user to select a region and flood it with color, using OpenGL, by Art Wetzel.
FOREST_FIRE_SIMULATION, a C program which models the occurrence of fires in a forest, and displays the status of the forest using X Windows, by Michael Creutz.
LIGHTS_OUT_OPENGL, a C program which sets up a Lights Out game and allows the user to solve it, using the OpenGL graphics window.
LISSAJOUS_OPENGL, a C++ program which computes a Lissajous figure and displays it using OpenGL.
MANDELBROT, a FORTRAN90 program which generates an ASCII PPM image of the Mandelbrot set;
OPENGL, C programs which demonstrate the use of OpenGL for graphics applications.
POLYGONAL_SURFACE_DISPLAY_OPENGL, a C++ program which displays a surface in 3D described as a set of polygons, using OpenGL.
XISING, a C program which models the variations in ferromagnetism in a material, displaying the results using X Windows.
XWAVES, a C program which simulates the behavior of solutions of certain forms of the wave equation, displaying the results using X Windows.
XY_DISPLAY_OPENGL, a C++ program which reads an XY file of 2D point coordinates, and displays an image of those points using OpenGL.
XYZ_DISPLAY_OPENGL, a C++ program which reads an XYZ file of 3D point coordinates, and displays an image of those points using OpenGL.
You can go up one level to the C source codes.