Beginning to implement switchin() and switchout() Magic tool plugin API.

This commit is contained in:
William Kendrick 2008-07-08 00:21:31 +00:00
parent b14e850f12
commit b4ed444f0f
40 changed files with 389 additions and 420 deletions

View file

@ -4,7 +4,7 @@
blackAndWhite, Convert the image to greyscale or threshold it into pure black and pure white
Tux Paint - A simple drawing program for children.
Copyright (c) 2002-2007 by Bill Kendrick and others; see AUTHORS.txt
Copyright (c) 2002-2008 by Bill Kendrick and others; see AUTHORS.txt
bill@newbreedsoftware.com
http://www.tuxpaint.org/
@ -23,7 +23,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
(See COPYING.txt)
Last updated: June 6, 2008
Last updated: July 7, 2008
$Id$
*/
@ -203,3 +203,11 @@ int blackAndWhite_requires_colors(magic_api * api, int which)
return 0;
}
void blackAndWhite_switchin(magic_api * api, int which, SDL_Surface * canvas)
{
}
void blackAndWhite_switchout(magic_api * api, int which, SDL_Surface * canvas)
{
}

View file

@ -23,7 +23,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
(See COPYING.txt)
Last updated: May 6, 2008
Last updated: July 7, 2008
$Id$
*/
@ -320,3 +320,12 @@ int blocks_chalk_drip_requires_colors(magic_api * api ATTRIBUTE_UNUSED, int whic
{
return 0;
}
void blocks_chalk_drip_switchin(magic_api * api, int which, SDL_Surface * canvas)
{
}
void blocks_chalk_drip_switchout(magic_api * api, int which, SDL_Surface * canvas)
{
}

View file

@ -4,7 +4,7 @@
Blur Magic Tool Plugin
Tux Paint - A simple drawing program for children.
Copyright (c) 2002-2007 by Bill Kendrick and others; see AUTHORS.txt
Copyright (c) 2002-2008 by Bill Kendrick and others; see AUTHORS.txt
bill@newbreedsoftware.com
http://www.tuxpaint.org/
@ -25,7 +25,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
(See COPYING.txt)
Last updated: August 7, 2007
Last updated: July 7, 2008
$Id$
*/
@ -205,3 +205,11 @@ int blur_requires_colors(magic_api * api, int which)
return 0;
}
void blur_switchin(magic_api * api, int which, SDL_Surface * canvas)
{
}
void blur_switchout(magic_api * api, int which, SDL_Surface * canvas)
{
}

View file

@ -4,7 +4,7 @@
blurAll, Blur the whole image
Tux Paint - A simple drawing program for children.
Copyright (c) 2002-2007 by Bill Kendrick and others; see AUTHORS.txt
Copyright (c) 2002-2008 by Bill Kendrick and others; see AUTHORS.txt
bill@newbreedsoftware.com
http://www.tuxpaint.org/
@ -23,7 +23,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
(See COPYING.txt)
Last updated: June 6, 2008
Last updated: July 7, 2008
$Id$
*/
@ -186,3 +186,11 @@ int blurAll_requires_colors(magic_api * api, int which)
return 0;
}
void blurAll_switchin(magic_api * api, int which, SDL_Surface * canvas)
{
}
void blurAll_switchout(magic_api * api, int which, SDL_Surface * canvas)
{
}

View file

@ -6,7 +6,7 @@
Albert Cahalan <albert@users.sf.net>
Copyright (c) 2002-2007 by Bill Kendrick and others; see AUTHORS.txt
Copyright (c) 2002-2008 by Bill Kendrick and others; see AUTHORS.txt
bill@newbreedsoftware.com
http://www.tuxpaint.org/
@ -25,7 +25,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
(See COPYING.txt)
Last updated: August 18, 2007
Last updated: July 7, 2008
$Id$
*/
@ -293,3 +293,12 @@ static void do_brick(magic_api * api, SDL_Surface * canvas,
api->playsound(brick_snd, (x * 255) / canvas->w, 255);
}
void bricks_switchin(magic_api * api, int which, SDL_Surface * canvas)
{
}
void bricks_switchout(magic_api * api, int which, SDL_Surface * canvas)
{
}

View file

@ -4,7 +4,7 @@
Calligraphy Magic Tool Plugin
Tux Paint - A simple drawing program for children.
Copyright (c) 2002-2007 by Bill Kendrick and others; see AUTHORS.txt
Copyright (c) 2002-2008 by Bill Kendrick and others; see AUTHORS.txt
bill@newbreedsoftware.com
http://www.tuxpaint.org/
@ -23,7 +23,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
(See COPYING.txt)
Last updated: August 21, 2007
Last updated: July 7, 2008
$Id$
*/
@ -420,3 +420,11 @@ static float calligraphy_dist(float x1, float y1, float x2, float y2)
return d;
}
void calligraphy_switchin(magic_api * api, int which, SDL_Surface * canvas)
{
}
void calligraphy_switchout(magic_api * api, int which, SDL_Surface * canvas)
{
}

View file

@ -4,7 +4,7 @@
Cartoon Magic Tool Plugin
Tux Paint - A simple drawing program for children.
Copyright (c) 2002-2007 by Bill Kendrick and others; see AUTHORS.txt
Copyright (c) 2002-2008 by Bill Kendrick and others; see AUTHORS.txt
bill@newbreedsoftware.com
http://www.tuxpaint.org/
@ -23,7 +23,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
(See COPYING.txt)
Last updated: August 21, 2007
Last updated: July 7, 2008
$Id$
*/
@ -223,3 +223,11 @@ int cartoon_requires_colors(magic_api * api, int which)
return 0;
}
void cartoon_switchin(magic_api * api, int which, SDL_Surface * canvas)
{
}
void cartoon_switchout(magic_api * api, int which, SDL_Surface * canvas)
{
}

View file

@ -4,7 +4,7 @@
Distortion Magic Tool Plugin
Tux Paint - A simple drawing program for children.
Copyright (c) 2002-2007 by Bill Kendrick and others; see AUTHORS.txt
Copyright (c) 2002-2008 by Bill Kendrick and others; see AUTHORS.txt
bill@newbreedsoftware.com
http://www.tuxpaint.org/
@ -23,7 +23,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
(See COPYING.txt)
Last updated: October 24, 2007
Last updated: July 7, 2008
$Id$
*/
@ -226,3 +226,11 @@ static void distortion_line_callback(void * ptr, int which,
}
}
void distortion_switchin(magic_api * api, int which, SDL_Surface * canvas)
{
}
void distortion_switchout(magic_api * api, int which, SDL_Surface * canvas)
{
}

View file

@ -4,7 +4,7 @@
Emboss Magic Tool Plugin
Tux Paint - A simple drawing program for children.
Copyright (c) 2002-2007 by Bill Kendrick and others; see AUTHORS.txt
Copyright (c) 2002-2008 by Bill Kendrick and others; see AUTHORS.txt
bill@newbreedsoftware.com
http://www.tuxpaint.org/
@ -23,7 +23,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
(See COPYING.txt)
Last updated: August 7, 2007
Last updated: July 7, 2008
$Id$
*/
@ -179,3 +179,11 @@ int emboss_requires_colors(magic_api * api, int which)
return 0;
}
void emboss_switchin(magic_api * api, int which, SDL_Surface * canvas)
{
}
void emboss_switchout(magic_api * api, int which, SDL_Surface * canvas)
{
}

View file

@ -4,7 +4,7 @@
Fade and Darken Magic Tools Plugin
Tux Paint - A simple drawing program for children.
Copyright (c) 2002-2007 by Bill Kendrick and others; see AUTHORS.txt
Copyright (c) 2002-2008 by Bill Kendrick and others; see AUTHORS.txt
bill@newbreedsoftware.com
http://www.tuxpaint.org/
@ -23,7 +23,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
(See COPYING.txt)
Last updated: May 6, 2008
Last updated: July 7, 2008
$Id$
*/
@ -230,3 +230,12 @@ int fade_darken_requires_colors(magic_api * api ATTRIBUTE_UNUSED, int which ATTR
{
return 0;
}
void fade_darken_switchin(magic_api * api, int which, SDL_Surface * canvas)
{
}
void fade_darken_switchout(magic_api * api, int which, SDL_Surface * canvas)
{
}

View file

@ -4,7 +4,7 @@
Fill Magic Tool Plugin
Tux Paint - A simple drawing program for children.
Copyright (c) 2002-2007 by Bill Kendrick and others; see AUTHORS.txt
Copyright (c) 2002-2008 by Bill Kendrick and others; see AUTHORS.txt
bill@newbreedsoftware.com
http://www.tuxpaint.org/
@ -27,7 +27,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
(See COPYING.txt)
Last updated: August 7, 2007
Last updated: July 7, 2008
$Id$
*/
@ -246,3 +246,11 @@ static void do_flood_fill(magic_api * api, SDL_Surface * canvas, int x, int y,
}
}
void fill_switchin(magic_api * api, int which, SDL_Surface * canvas)
{
}
void fill_switchout(magic_api * api, int which, SDL_Surface * canvas)
{
}

View file

@ -4,7 +4,7 @@
Flower Magic Tool Plugin
Tux Paint - A simple drawing program for children.
Copyright (c) 2002-2007 by Bill Kendrick and others; see AUTHORS.txt
Copyright (c) 2002-2008 by Bill Kendrick and others; see AUTHORS.txt
bill@newbreedsoftware.com
http://www.tuxpaint.org/
@ -23,7 +23,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
(See COPYING.txt)
Last updated: August 21, 2007
Last updated: July 7, 2008
$Id$
*/
@ -594,3 +594,11 @@ static void flower_colorize_petals(magic_api * api)
SDL_UnlockSurface(flower_petals);
}
void flower_switchin(magic_api * api, int which, SDL_Surface * canvas)
{
}
void flower_switchout(magic_api * api, int which, SDL_Surface * canvas)
{
}

View file

@ -4,7 +4,7 @@
Foam Magic Tool Plugin
Tux Paint - A simple drawing program for children.
Copyright (c) 2002-2007 by Bill Kendrick and others; see AUTHORS.txt
Copyright (c) 2002-2008 by Bill Kendrick and others; see AUTHORS.txt
bill@newbreedsoftware.com
http://www.tuxpaint.org/
@ -23,7 +23,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
(See COPYING.txt)
Last updated: August 21, 2007
Last updated: July 7, 2008
$Id$
*/
@ -417,3 +417,11 @@ int foam_requires_colors(magic_api * api, int which)
return 0; /* FIXME: Would be nice to tint the bubbles */
}
void foam_switchin(magic_api * api, int which, SDL_Surface * canvas)
{
}
void foam_switchout(magic_api * api, int which, SDL_Surface * canvas)
{
}

View file

@ -4,7 +4,7 @@
Glass Tile Magic Tool Plugin
Tux Paint - A simple drawing program for children.
Copyright (c) 2002-2007 by Bill Kendrick and others; see AUTHORS.txt
Copyright (c) 2002-2008 by Bill Kendrick and others; see AUTHORS.txt
bill@newbreedsoftware.com
http://www.tuxpaint.org/
@ -23,7 +23,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
(See COPYING.txt)
Last updated: August 21, 2007
Last updated: July 7, 2008
$Id$
*/
@ -279,3 +279,11 @@ int glasstile_requires_colors(magic_api * api, int which)
return 0;
}
void glasstile_switchin(magic_api * api, int which, SDL_Surface * canvas)
{
}
void glasstile_switchout(magic_api * api, int which, SDL_Surface * canvas)
{
}

View file

@ -5,7 +5,7 @@
Tux Paint - A simple drawing program for children.
by Albert Cahalan <albert@users.sf.net>
Copyright (c) 2002-2007 by Bill Kendrick and others; see AUTHORS.txt
Copyright (c) 2002-2008 by Bill Kendrick and others; see AUTHORS.txt
bill@newbreedsoftware.com
http://www.tuxpaint.org/
@ -24,7 +24,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
(See COPYING.txt)
Last updated: August 18, 2007
Last updated: July 7, 2008
$Id$
*/
@ -244,3 +244,11 @@ static int log2int(int x)
return y;
}
void grass_switchin(magic_api * api, int which, SDL_Surface * canvas)
{
}
void grass_switchout(magic_api * api, int which, SDL_Surface * canvas)
{
}

View file

@ -4,7 +4,7 @@
Kaleidoscope Magic Tool Plugin
Tux Paint - A simple drawing program for children.
Copyright (c) 2002-2007 by Bill Kendrick and others; see AUTHORS.txt
Copyright (c) 2002-2008 by Bill Kendrick and others; see AUTHORS.txt
bill@newbreedsoftware.com
http://www.tuxpaint.org/
@ -23,7 +23,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
(See COPYING.txt)
Last updated: November 21, 2007
Last updated: July 7, 2008
$Id$
*/
@ -164,3 +164,11 @@ int kalidescope_requires_colors(magic_api * api, int which)
return 1;
}
void kalidescope_switchin(magic_api * api, int which, SDL_Surface * canvas)
{
}
void kalidescope_switchout(magic_api * api, int which, SDL_Surface * canvas)
{
}

View file

@ -4,7 +4,7 @@
Light Magic Tool Plugin
Tux Paint - A simple drawing program for children.
Copyright (c) 2002-2007 by Bill Kendrick and others; see AUTHORS.txt
Copyright (c) 2002-2008 by Bill Kendrick and others; see AUTHORS.txt
bill@newbreedsoftware.com
http://www.tuxpaint.org/
@ -23,7 +23,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
(See COPYING.txt)
Last updated: August 21, 2007
Last updated: July 7, 2008
$Id$
*/
@ -207,3 +207,11 @@ int light_requires_colors(magic_api * api, int which)
return 1;
}
void light_switchin(magic_api * api, int which, SDL_Surface * canvas)
{
}
void light_switchout(magic_api * api, int which, SDL_Surface * canvas)
{
}

View file

@ -4,7 +4,7 @@
Metal Paint Magic Tool Plugin
Tux Paint - A simple drawing program for children.
Copyright (c) 2002-2007 by Bill Kendrick and others; see AUTHORS.txt
Copyright (c) 2002-2008 by Bill Kendrick and others; see AUTHORS.txt
bill@newbreedsoftware.com
http://www.tuxpaint.org/
@ -23,7 +23,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
(See COPYING.txt)
Last updated: August 7, 2007
Last updated: July 7, 2008
$Id$
*/
@ -173,3 +173,11 @@ int metalpaint_requires_colors(magic_api * api, int which)
return 1;
}
void metalpaint_switchin(magic_api * api, int which, SDL_Surface * canvas)
{
}
void metalpaint_switchout(magic_api * api, int which, SDL_Surface * canvas)
{
}

View file

@ -4,7 +4,7 @@
Mirror and Flip Magic Tools Plugin
Tux Paint - A simple drawing program for children.
Copyright (c) 2002-2007 by Bill Kendrick and others; see AUTHORS.txt
Copyright (c) 2002-2008 by Bill Kendrick and others; see AUTHORS.txt
bill@newbreedsoftware.com
http://www.tuxpaint.org/
@ -23,7 +23,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
(See COPYING.txt)
Last updated: October 29, 2007
Last updated: July 7, 2008
$Id$
*/
@ -198,3 +198,11 @@ int mirror_flip_requires_colors(magic_api * api, int which)
return 0;
}
void mirror_flip_switchin(magic_api * api, int which, SDL_Surface * canvas)
{
}
void mirror_flip_switchout(magic_api * api, int which, SDL_Surface * canvas)
{
}

View file

@ -4,7 +4,7 @@
Negative Magic Tool Plugin
Tux Paint - A simple drawing program for children.
Copyright (c) 2002-2007 by Bill Kendrick and others; see AUTHORS.txt
Copyright (c) 2002-2008 by Bill Kendrick and others; see AUTHORS.txt
bill@newbreedsoftware.com
http://www.tuxpaint.org/
@ -23,7 +23,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
(See COPYING.txt)
Last updated: August 7, 2007
Last updated: July 7, 2008
$Id$
*/
@ -163,3 +163,11 @@ int negative_requires_colors(magic_api * api, int which)
return 0;
}
void negative_switchin(magic_api * api, int which, SDL_Surface * canvas)
{
}
void negative_switchout(magic_api * api, int which, SDL_Surface * canvas)
{
}

View file

@ -4,7 +4,7 @@
Rainbow Magic Tool Plugin
Tux Paint - A simple drawing program for children.
Copyright (c) 2002-2007 by Bill Kendrick and others; see AUTHORS.txt
Copyright (c) 2002-2008 by Bill Kendrick and others; see AUTHORS.txt
bill@newbreedsoftware.com
http://www.tuxpaint.org/
@ -23,7 +23,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
(See COPYING.txt)
Last updated: August 7, 2007
Last updated: July 7, 2008
$Id$
*/
@ -193,3 +193,11 @@ int rainbow_requires_colors(magic_api * api, int which)
return 0;
}
void rainbow_switchin(magic_api * api, int which, SDL_Surface * canvas)
{
}
void rainbow_switchout(magic_api * api, int which, SDL_Surface * canvas)
{
}

View file

@ -4,7 +4,7 @@
Ripples Magic Tool Plugin
Tux Paint - A simple drawing program for children.
Copyright (c) 2002-2007 by Bill Kendrick and others; see AUTHORS.txt
Copyright (c) 2002-2008 by Bill Kendrick and others; see AUTHORS.txt
bill@newbreedsoftware.com
http://www.tuxpaint.org/
@ -23,7 +23,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
(See COPYING.txt)
Last updated: August 7, 2007
Last updated: July 7, 2008
$Id$
*/
@ -177,3 +177,11 @@ int ripples_requires_colors(magic_api * api, int which)
return 0;
}
void ripples_switchin(magic_api * api, int which, SDL_Surface * canvas)
{
}
void ripples_switchout(magic_api * api, int which, SDL_Surface * canvas)
{
}

View file

@ -4,7 +4,7 @@
Sharpen, Trace Contour and Silhouette Magic Tool Plugin
Tux Paint - A simple drawing program for children.
Copyright (c) 2002-2007 by Bill Kendrick and others; see AUTHORS.txt
Copyright (c) 2002-2008 by Bill Kendrick and others; see AUTHORS.txt
bill@newbreedsoftware.com
http://www.tuxpaint.org/
@ -23,7 +23,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
(See COPYING.txt)
Last updated: June 6, 2008
Last updated: July 7, 2008
$Id$
*/
@ -266,3 +266,11 @@ int sharpen_requires_colors(magic_api * api, int which)
return 0;
}
void sharpen_switchin(magic_api * api, int which, SDL_Surface * canvas)
{
}
void sharpen_switchout(magic_api * api, int which, SDL_Surface * canvas)
{
}

View file

@ -4,7 +4,7 @@
Shift Magic Tool Plugin
Tux Paint - A simple drawing program for children.
Copyright (c) 2002-2007 by Bill Kendrick and others; see AUTHORS.txt
Copyright (c) 2002-2008 by Bill Kendrick and others; see AUTHORS.txt
bill@newbreedsoftware.com
http://www.tuxpaint.org/
@ -23,7 +23,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
(See COPYING.txt)
Last updated: November 21, 2007
Last updated: July 7, 2008
$Id$
*/
@ -322,3 +322,12 @@ int shift_requires_colors(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_
{
return 0;
}
void shift_switchin(magic_api * api, int which, SDL_Surface * canvas)
{
}
void shift_switchout(magic_api * api, int which, SDL_Surface * canvas)
{
}

View file

@ -5,7 +5,7 @@
Tux Paint - A simple drawing program for children.
by Albert Cahalan <albert@users.sf.net>
Copyright (c) 2002-2007 by Bill Kendrick and others; see AUTHORS.txt
Copyright (c) 2002-2008 by Bill Kendrick and others; see AUTHORS.txt
bill@newbreedsoftware.com
http://www.tuxpaint.org/
@ -24,7 +24,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
(See COPYING.txt)
Last updated: August 7, 2007
Last updated: July 7, 2008
$Id$
*/
@ -172,3 +172,11 @@ int smudge_requires_colors(magic_api * api, int which)
return 0;
}
void smudge_switchin(magic_api * api, int which, SDL_Surface * canvas)
{
}
void smudge_switchout(magic_api * api, int which, SDL_Surface * canvas)
{
}

View file

@ -4,7 +4,7 @@
Tint Magic Tool Plugin
Tux Paint - A simple drawing program for children.
Copyright (c) 2002-2007 by Bill Kendrick and others; see AUTHORS.txt
Copyright (c) 2002-2008 by Bill Kendrick and others; see AUTHORS.txt
bill@newbreedsoftware.com
http://www.tuxpaint.org/
@ -23,7 +23,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
(See COPYING.txt)
Last updated: August 7, 2007
Last updated: July 7, 2008
$Id$
*/
@ -178,3 +178,11 @@ int tint_requires_colors(magic_api * api, int which)
return 1;
}
void tint_switchin(magic_api * api, int which, SDL_Surface * canvas)
{
}
void tint_switchout(magic_api * api, int which, SDL_Surface * canvas)
{
}

View file

@ -4,7 +4,7 @@
Waves Magic Tool Plugin
Tux Paint - A simple drawing program for children.
Copyright (c) 2002-2007 by Bill Kendrick and others; see AUTHORS.txt
Copyright (c) 2002-2008 by Bill Kendrick and others; see AUTHORS.txt
bill@newbreedsoftware.com
http://www.tuxpaint.org/
@ -23,7 +23,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
(See COPYING.txt)
Last updated: August 7, 2007
Last updated: July 7, 2008
$Id$
*/
@ -154,3 +154,10 @@ int waves_requires_colors(magic_api * api, int which)
return 0;
}
void waves_switchin(magic_api * api, int which, SDL_Surface * canvas)
{
}
void waves_switchout(magic_api * api, int which, SDL_Surface * canvas)
{
}