コード例 #1
0
        public override void render(AsRenderSupport support, float parentAlpha)
        {
            float  alpha       = parentAlpha * this.getAlpha();
            int    numChildren = (int)(mChildren.getLength());
            String blendMode   = support.getBlendMode();
            int    i           = 0;

            for (; i < numChildren; ++i)
            {
                AsDisplayObject child = mChildren[i];
                if (child.getHasVisibleArea())
                {
                    AsFragmentFilter filter = child.getFilter();
                    support.pushMatrix();
                    support.transformMatrix(child);
                    support.setBlendMode(child.getBlendMode());
                    if (filter != null)
                    {
                        filter.render(child, support, alpha);
                    }
                    else
                    {
                        child.render(support, alpha);
                    }
                    support.setBlendMode(blendMode);
                    support.popMatrix();
                }
            }
        }