Ejemplo n.º 1
0
 public StandardLayout(DeviceResources deviceResources) : base()
 {
     for (int i = 0; i < BlendMode.c_parameterCount; i++)
     {
         Parameters[i] = new DCParameter();
     }
 }
Ejemplo n.º 2
0
 public StandardLayout(RenderTexture Data)
 {
     tiledTexture = new TiledTexture(Data);
     for (int i = 0; i < BlendMode.c_parameterCount; i++)
     {
         Parameters[i] = new DCParameter();
     }
 }
Ejemplo n.º 3
0
 public StandardLayout(TiledTexture loadedData)
 {
     tiledTexture = loadedData;
     for (int i = 0; i < BlendMode.c_parameterCount; i++)
     {
         Parameters[i] = new DCParameter();
     }
 }
Ejemplo n.º 4
0
 public PureLayout(DeviceResources deviceResources)
 {
     colorBuffer = new ConstantBuffer(deviceResources, 16);
     for (int i = 0; i < BlendMode.c_parameterCount; i++)
     {
         Parameters[i] = new DCParameter();
     }
 }
Ejemplo n.º 5
0
 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;
 }
Ejemplo n.º 6
0
        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();
        }