[Swfdec] implementing MovieClip drawing API
Nguyen Thai Ngoc Duy
pclouds at gmail.com
Tue Jul 3 10:58:36 PDT 2007
On 7/2/07, Benjamin Otte <otte at gnome.org> wrote:
> I've thought about it for a hile, but I have no ideal solution. One
> problem for that might be that I don't like the whole SwfdecShape
> structure and always wanted to clean it up. ;)
>
> Anyway, what I would do right now is implement it by using
> SwfdecShapeVec structures. Create a new ShapeVec and pattern for every
> begin* function and the fill the path in while the moveTo and lineTo
> functions get called.
>
> You'll probably need to add functions that allow ou creation of
> SwfdecStroke and SwfdecPattern objects, since now they're all just
> created by parsing. And you'll probably want to add some drawing API
> to swfdec_shape.[ch] like swfdec_shape_vec_paint () or something.
Sounds lots of work. Perhaps I should just link with ming and generate
bitstream while waiting for SwfdecShape reorg ;)
>
> And don't forget to put tests in test/image/ ;)
>
> Benjamin
>
>
> On 7/1/07, Nguyen Thai Ngoc Duy <pclouds at gmail.com> wrote:
> > Hi,
> >
> > I would like to implement MovieClip.{moveTo,lineTo,lineStyle}. I
> > initially thought I could place an SwfdecShape inside an
> > SwfdecSpriteMovie created by createEmptyMovieClip then call
> > swfdec_shape_ counterparts when MovieClip.{moveTo,lineTo,lineStyle}
> > were called. It wasn't as easy as I had thought. All the functions are
> > highly tied to swf bitstream, even adding an SwfdecShapeMovie to
> > SwfdecSpriteMovie.
> >
> > Do you have any suggestion? Should I just use ming to generate swf
> > bitstream and feed it to swfdec?
> >
> > Thanks
> > --
> > Duy
> > _______________________________________________
> > Swfdec mailing list
> > Swfdec at lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/swfdec
> >
>
--
Duy
More information about the Swfdec
mailing list