This file is part of "life", a Filter plugin for Adobe Photoshop Copyright (C) 2003-6 Toby Thain, toby@telegraphics.com.au This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Life filter plugin for Photoshop -------------------------------- This filter implements Conway's Life cellular automaton. For more information on Life, see http://www.math.com/students/wonders/life/life.html Notes on source code -------------------- Source code and makefiles under GPL license are provided for MPW (Mac 68K, Mac PowerPC Classic and Carbon targets), and mingw32 (Windows/Win32 target). A Photoshop SDK is required (available from Adobe Systems, http://www.adobe.com/). The SDK was also distributed with Photoshop 6.0 and earlier. Edit the makefiles ("life.make" for MPW, "Makefile" for mingw32) to reflect the SDK's installed location. Makefiles as distributed also assume some source files are located in directories "../common/tt" and "../common/adobeplugin". This merely reflects what I find convenient for my own personal file organisation, because many files are shared between projects. These files can be moved into the plugin directory then makefiles must be edited to reflect this. In order to build the Carbon plugin with an SDK prior to version 7.0, it is necessary to edit the SDK file :PhotoshopAPI:Resources:PIPL.r as follows: 1. find the line "case CodePowerPC:" 2. duplicate the next 15 lines 3. in the copy only, change "case CodePowerPC:" to "case CodePowerPCbundle:" and change the 5 occurrences of "pwpc" to "ppcb" (Other changes may be necessary if attempting to build with the v7.0 SDK; I have neither seen nor used that version of the SDK, and this code has not been tested with it.) In order to build the 68K plugin with MPW (SC compiler), it is necessary to edit the SDK file :Photoshop:PITypes.h as follows: 1. find the line "typedef long long int64;" 2. add preprocessor directives above and below it, as follows: #ifndef __SC__ typedef long long int64; #endif Development systems ------------------- MPW and mingw32 can be freely downloaded from http://developer.apple.com/tools/mpw-tools/ and http://www.mingw.org/ respectively. Mingw32 can be hosted on virtually any UNIX or Linux system, or under Windows. MPW runs on PowerPC and 68K Macs under Mac OS 9 or earlier, or Classic mode under OS X.