/* Ming, an SWF output library Copyright (C) 2001 Opaque Industries - http://www.opaque.net/ This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library 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 Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include #include "blocks/swf.h" #include "movie.h" #include "displaylist.h" #include "fill.h" #include "shape_util.h" #include "text_util.h" extern float Ming_scale; extern int Ming_cubicThreshold; extern int SWF_versionNum; int Ming_init(); /* Change the scale, the scale, change it, yeah. default is 20. */ void Ming_setScale(float scale); /* sets the threshold error for drawing cubic beziers. Lower is more accurate, hence larger file size. */ void Ming_setCubicThreshold(int num); /* change the error/warn behavior */ void Ming_setWarnFunction(void (*warn)(char *msg, ...)); void Ming_setErrorFunction(void (*error)(char *msg, ...)); /* set the version number to use */ void Ming_useSWFVersion(int version); /* stupid redef problem if we just include movieclip.h */ typedef void *SWFMovieClip; void destroySWFMovieClip(SWFMovieClip clip); SWFMovieClip newSWFMovieClip(); void SWFMovieClip_setNumberOfFrames(SWFMovieClip clip, int frames); SWFDisplayItem SWFMovieClip_add(SWFMovieClip clip, SWFBlock block); void SWFMovieClip_remove(SWFMovieClip clip, SWFDisplayItem item); void SWFMovieClip_nextFrame(SWFMovieClip clip); void SWFMovieClip_labelFrame(SWFMovieClip clip, char *label); int SWFMovieClip_output(SWFMovieClip clip, SWFByteOutputMethod method, void *data);