Esempio n. 1
0
 void UploadTextures()
 {
     if (ColorData != null && DepthData != null && !BufferUsageDisabled && XNAReady)
     {
         VideoTextureBuffer.SetData(ColorData);
         DepthTextureBuffer.SetData(DepthData);
         VideoTextureBuffer.SetData(ColorData);
         DepthTextureBuffer.SetData(DepthData);
         FileLoaded = true;
     }
 }
Esempio n. 2
0
 private void RefreshTexture()
 {
     if (XDevice != null && !XDevice.IsDisposed)
     {
         if ((DataTexture == null || (Data != null && DataTexture.Width != Data.Length)) && XDevice != null && Data != null)
         {
             DataTexture = new TextureDoubleBuffer(XDevice, Data.Length, 1, SurfaceFormat.Single);
         }
         if (DataTexture != null)
         {
             DataTexture.SetData <float>(Data);
         }
     }
 }