Inheritance: Layer, IRenderable
Esempio n. 1
0
        public void AddLayer(SortableLayer sortableLayer, Layer masterLayer)
        {
            if (masterLayer == null)
            {
                masterLayer = LayersWritable[0];
            }

            masterLayer.Add(sortableLayer);
        }
Esempio n. 2
0
 public void RemoveLayer(SortableLayer sortableLayer)
 {
     RemoveRenderable(sortableLayer);
 }
Esempio n. 3
0
        public void AddLayer(SortableLayer sortableLayer, Layer masterLayer)
        {
            if (masterLayer == null)
            {
                masterLayer = LayersWritable[0];
            }

            masterLayer.Add(sortableLayer);
        }
Esempio n. 4
0
        public virtual void AddToManagers(SystemManagers managers, Layer layer)
        {
            #if DEBUG
            if (managers == null)
            {
                throw new ArgumentNullException("managers cannot be null");
            }
            #endif
            // If mManagers isn't null, it's already been added
            if (mManagers == null)
            {
                mLayer = layer;

                // Set the managers first because it's used by the clip region
                mManagers = managers;

                // If this clips children...
                if (ClipsChildren)
                {
                    // Then let's use a new Layer...
                    if (mSortableLayer == null)
                    {
                        mSortableLayer = new SortableLayer();

                    }

                    mSortableLayer.ParentLayer = layer;

                    mManagers.Renderer.AddLayer(mSortableLayer, layer);

                    // Now we'll just set layer to mSortableLayer so everything goes on as normal
                    layer = mSortableLayer;

                    UpdateLayerScissor();
                }

                AddContainedRenderableToManagers(managers, layer);

                // Custom should be called before children have their Custom called
                CustomAddToManagers();

                AddChildren(managers, layer);
            }
        }
Esempio n. 5
0
 public void RemoveLayer(SortableLayer sortableLayer)
 {
     RemoveRenderable(sortableLayer);
 }