internal override void ReleaseXNAResources() { if (VideoTextureBuffer != null) { VideoTextureBuffer.Dispose(); } if (DepthTextureBuffer != null) { DepthTextureBuffer.Dispose(); } }
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); }
internal override void ReleaseXNAResources() { XNAReady = false; if (VideoTextureBuffer != null) { VideoTextureBuffer.Dispose(); VideoTextureBuffer = null; } if (DepthTextureBuffer != null) { DepthTextureBuffer.Dispose(); DepthTextureBuffer = null; } FileLoaded = false; }