/* * 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(); }
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(); }