Example #1
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="args">frame data</param>
 public ColorRGBAFrameDataEventArgs(ColorRGBAFrameData args)
 {
     if (args == null)
     {
         throw new ArgumentNullException("args");
     }
     this.args = args;
 }
Example #2
0
 public void TestCopy()
 {
     using (ColorRGBAFrameData frame = new ColorRGBAFrameData())
     {
         using (DynamicColorRGBATexture texture = new DynamicColorRGBATexture(device))
         {
             texture.Copy(device.ImmediateContext, frame);
         }
     }
 }
Example #3
0
 /// <summary>
 /// Copy depth frame to graphics card
 /// </summary>
 /// <param name="context">Device context</param>
 /// <param name="data">Color frame data</param>
 public void Copy(DeviceContext context, ColorRGBAFrameData data)
 {
     this.texture.Upload(context, data.DataPointer, data.SizeInBytes);
 }