gnash-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnash-dev] Problem with Drawing API


From: zou lunkai
Subject: Re: [Gnash-dev] Problem with Drawing API
Date: Tue, 6 Nov 2007 09:51:43 +0800

> I had the normalization step in mind while doing the DrawingAPI interface
> so we have a ::finalize method in DynamicShape which should be called before
> any function that needs normalization of it (rendering, hit test, bounds
> computation) and that uses a "dirty" flag set whenever something is drawn.
> Currently the function does nothing.

For swf defined shapes, the normalization step is done by the pp
compiler. There should be a question for the dynamic shapes created by
DrawingAPI: who should take care of the  normalization?  DrawingAPI
interface?  renderer?  or the API users?

 I  guess the API users  should be  responsible for not producing
malformed shapes. It is not a trivial work for a *decoder*  to produce
a satisfied normalized shape with random inputs.

I agree ::finalize method is needed  for some attempts(eg. at least
warnings for malformed), but don't expect too much.  The DrawingAPI
is capable for creating weird shapes out of your imagination:)

--zou




reply via email to

[Prev in Thread] Current Thread [Next in Thread]