swig/Examples/GIFPlot
William S Fulton c4f76bb782 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4818 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-05-21 21:49:28 +00:00
..
Chicken Added "module" target to build a dynamic module, got "clean" target to 2003-03-10 19:13:56 +00:00
Common-Lisp/full The great merge 2002-11-30 22:01:28 +00:00
Guile The great merge 2002-11-30 22:01:28 +00:00
Include Removed deprecated pragmas 2003-04-03 12:12:22 +00:00
Interface The great merge 2002-11-30 22:01:28 +00:00
Java VC++ pollution 2003-02-25 22:11:44 +00:00
Lib Makefile no longer used 2003-02-19 21:25:05 +00:00
Ocaml Added info about dynamic linking to doc 2003-02-27 09:25:00 +00:00
Perl VC++ pollution 2003-02-25 22:11:44 +00:00
Php The great merge 2002-11-30 22:01:28 +00:00
Pike VC++ pollution 2003-02-25 22:11:44 +00:00
Python VC++ pollution 2003-02-25 22:11:44 +00:00
Ruby VC++ pollution 2003-02-25 22:11:44 +00:00
Tcl The great merge 2002-11-30 22:01:28 +00:00
.cvsignore *** empty log message *** 2003-05-21 21:49:28 +00:00
Makefile.in The great merge 2002-11-30 22:01:28 +00:00
README The great merge 2002-11-30 22:01:28 +00:00

GIFPlot
=======

To illustrate various SWIG features, the following examples involve
building an interface to a small, but somewhat useful graphics library
for creating 2D and 3D images in the form of GIF files.  The Perl,
Python, Tcl, Java and Ruby directories contain various examples specific to
those languages.

This library was originally developed as part of the SPaSM molecular
dynamics project at Los Alamos National Laboratory.  However, due to
patent enforcement issues related to LZW encoding and a general lack
of time on the part of the author, the library was never officially
released.  On the plus side, a number of people have found it to be a
useful easter egg within the SWIG distribution :-).

<LEGAL>
DUE TO PATENT RESTRICTIONS ON THE LZW COMPRESSION ALGORITHM, THIS
LIBRARY ONLY PRODUCES UNCOMPRESSED GIF FILES.  SO THERE.
</LEGAL>

Building the Library
====================

In order to run the examples, it is first necessary to build the GIFPlot
C library.  To do this, simply follow these instructions:

	./configure
	make

On Windows, you can probably just do this:

        cd Lib
        nmake /f Makefile.msc

Running the Examples
====================

Once the library has been built, go the Perl, Python, Tcl, Java or Ruby directory
to see various SWIG examples.   Each example should have a README file with a
description.

The examples are compiled using the makefile located in the top level "Examples"
directory of the distribution.   If they don't compile, you will need to
adjust the settings in this file.

Documentation
=============

Read the source Luke.   The examples should be pretty much self-explanatory.
The header file Include/gifplot.h contains the full API.

The original documentation for the library can be found online at:

          http://islab.cs.uchicago.edu/gifplot


Let me know what you think!
===========================
If you found this example to be useful, confusing, or otherwise, I would like to know
about it.   Suggestions for improvement are welcome.

-- Dave (beazley@cs.uchicago.edu)