/* 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 */ /* movieclip.h */ #ifndef MING_MOVIECLIP_H_INCLUDED #define MING_MOVIECLIP_H_INCLUDED #define SWF_H_INCLUDED /* XXX - have to know about sprite object internals to extend it. hrm. */ #include "blocks/sprite.h" #include "blocks/block.h" #include "blocks/matrix.h" #include "blocks/cxform.h" #include "blocks/soundstream.h" #include "blocks/outputblock.h" #include "blocks/placeobject.h" #include "libming.h" #include "displaylist.h" struct _swfMovieClip { struct _sprite sprite; SWFBlockList blockList; SWFDisplayList displayList; unsigned short nFrames; }; typedef struct _swfMovieClip *SWFMovieClip; #define SWFMOVIECLIP_SIZE sizeof(struct _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); void SWFMovie_setSoundStream(SWFMovieClip movie, SWFSound sound, float rate); int SWFMovieClip_output(SWFMovieClip clip, SWFByteOutputMethod method, void *data); #endif /* MING_MOVIECLIP_H_INCLUDED */