life_opengl


life_opengl, a C code which implements John Conway's Game of Life, presenting the evolution graphically, using OpenGL.

OpenGL on Macintosh OS X

OpenGL ships with OS9 and OSX for the Macintosh.

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_opengl.c -lGL -lGLU -lglut 
      
was modified to:

        gcc life_opengl.c -framework OpenGL -framework GLUT
      

Licensing:

The information on this web page is distributed under the MIT license.

Languages:

life_opengl is available in a C version and a C++ version a Fortran90 version and a MATLAB version and an Octave version.

Related Data and Programs:

life_serial, a C code which computes a few steps of the evolution of John Conway's Game of Life, intended as a starting point for implementing a parallel version.

lissajous, a C code which displays a Lissajous figure, of the form x = sin ( a1 t + b1 ), y = sin ( a2 t + b2 ).

opengl_test, a C code which uses opengl() for graphics;

Author:

Simon Green

Reference:

Source Code:


Last revised on 20 March 2008.