[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-dev] Re: Nested masks layers question
From: |
zou lunkai |
Subject: |
[Gnash-dev] Re: Nested masks layers question |
Date: |
Thu, 24 Jan 2008 16:19:30 +0800 |
On Jan 24, 2008 3:39 PM, Sandro Santilli <address@hidden> wrote:
> On Thu, Jan 24, 2008 at 09:13:37AM +0800, zou lunkai wrote:
> > Hello, strk
> >
> > > Suppose in a displayList we have 2 layer masks:
> >
> > > mask1: at depth 1 masks up to layer 3
> > > mask2: at depth 2 (masked by mask1) masks up to layer 5
> > > maskee: at depth 4
> >
> > > Is maskee masked by both mask1 and mask2 or only by mask2 ?
> >
> > yes, the maskee should be masked by both mask1 and mask2. I am pretty
> > sure about this, otherwise the stack based algorithm won't work.
>
> Could you extend the test with this other scenario please:
>
> mask1: at depth 1 masks up to layer 6
> mask2: at depth 2 masks up to layer 3
> maskee: at depth 4
>
> I guess maskee should be masked by mask1 and not mask2.
>
yes, you are right. And our stack mode stil works here.
> The test, with both scenarios (maybe in two frames) would
> be very helpful to test more things:
> - rendering
> - AS hitTest
> - mouse handling (maskee should do something onRollOver/Out, like
> changing alpha)
> - _droptarget (needs something to drag)
>
rendering should be fine. Not sure about the others.
See attached tests by visual check, both cases are tested. Seems masks
could respond to the mouse pointer in the test, but haven't done any
deep deduction.
--zou
masks_test4.c
Description: Text document