public StandardLayout(DeviceResources deviceResources) : base() { for (int i = 0; i < BlendMode.c_parameterCount; i++) { Parameters[i] = new DCParameter(); } }
public StandardLayout(RenderTexture Data) { tiledTexture = new TiledTexture(Data); for (int i = 0; i < BlendMode.c_parameterCount; i++) { Parameters[i] = new DCParameter(); } }
public StandardLayout(TiledTexture loadedData) { tiledTexture = loadedData; for (int i = 0; i < BlendMode.c_parameterCount; i++) { Parameters[i] = new DCParameter(); } }
public PureLayout(DeviceResources deviceResources) { colorBuffer = new ConstantBuffer(deviceResources, 16); for (int i = 0; i < BlendMode.c_parameterCount; i++) { Parameters[i] = new DCParameter(); } }
public PureLayout(PureLayout copySource) { Hidden = copySource.Hidden; Alpha = copySource.Alpha; RenderBufferNum = copySource.RenderBufferNum; RefBufferNum = copySource.RefBufferNum; guid = Guid.NewGuid(); //DeviceResources deviceResources = copySource.BlendModeUsedData.GetDeviceResources(); colorBuffer = new ConstantBuffer(copySource.colorBuffer.GetDeviceResources(), 16); for (int i = 0; i < BlendMode.c_parameterCount; i++) { Parameters[i] = new DCParameter(); } BlendMode = copySource.BlendMode; Color = copySource.Color; }
public StandardLayout(StandardLayout standardLayout) { if (standardLayout.activated) { tiledTexture = new TiledTexture(standardLayout.PaintingTexture); } else if (standardLayout.tiledTexture != null) { tiledTexture = new TiledTexture(standardLayout.tiledTexture); } PaintingTexture = standardLayout.PaintingTexture; PaintingTextureTemp = standardLayout.PaintingTextureTemp; for (int i = 0; i < BlendMode.c_parameterCount; i++) { Parameters[i] = new DCParameter(); Parameters[i].Value = standardLayout.Parameters[i].Value; } BlendMode = standardLayout.BlendMode; Alpha = standardLayout.Alpha; RenderBufferNum = standardLayout.RenderBufferNum; RefBufferNum = standardLayout.RefBufferNum; guid = Guid.NewGuid(); }