示例#1
0
 /*
  *      Constructor
  */
 public PixelSourceLayer(LayeredTexture parent, PixelSource ps, Pixel.PixelBlendMode blendMode, int xOffset, int yOffset)
 {
     mPixelSource    = ps;
     mPixelBlendMode = blendMode;
     mOffsetX        = xOffset;
     mOffsetY        = yOffset;
     mParent         = parent;
     mFilter         = new ClearFilter();
 }
示例#2
0
        public LayeredTexture(LayeredTexture copy)
            : this(copy.mWidth, copy.mHeight, copy.mRequireAlphaChannel)
        {
            foreach (PixelSourceLayer layer in copy.mLayers)
            {
                this.AddLayer(copy.GetNameForLayer(layer), layer.PixelBlendMode, layer.PixelSource);
            }

            FlattenLayers();
        }