Exemplo n.º 1
0
 internal override void ReleaseXNAResources()
 {
     if (VideoTextureBuffer != null)
     {
         VideoTextureBuffer.Dispose();
     }
     if (DepthTextureBuffer != null)
     {
         DepthTextureBuffer.Dispose();
     }
 }
Exemplo n.º 2
0
 public void SetDevice(GraphicsDevice device, Effect effect)
 {
     XDevice = device;
     XEffect = effect;
     if (DataTexture != null)
     {
         DataTexture.Dispose();
         DataTexture = null;
     }
     RefreshTexture();
     Rect = new Microsoft.Xna.Framework.Rectangle(0, 0, XDevice.PresentationParameters.BackBufferWidth, XDevice.PresentationParameters.BackBufferHeight);
     XPlane.SetDevice(XDevice);
 }
Exemplo n.º 3
0
 internal override void ReleaseXNAResources()
 {
     XNAReady = false;
     if (VideoTextureBuffer != null)
     {
         VideoTextureBuffer.Dispose();
         VideoTextureBuffer = null;
     }
     if (DepthTextureBuffer != null)
     {
         DepthTextureBuffer.Dispose();
         DepthTextureBuffer = null;
     }
     FileLoaded = false;
 }