public virtual void DestroyDevice() { while (Processing > 0) { StopPending = true; StopARE.WaitOne(); } TRawDepth.Dispose(); TRawDepth = null; TDepth.Dispose(); TDepth = null; TDepthCorrection.Dispose(); TDepthCorrection = null; SingleTargetA.Dispose(); SingleTargetA = null; SingleTargetB.Dispose(); SingleTargetB = null; Vector2TargetA.Dispose(); Vector2TargetA = null; Vector2TargetB.Dispose(); Vector2TargetB = null; Vector4Target.Dispose(); Vector4Target = null; MiniPlane.Dispose(); MiniPlane = null; MaxiPlane.Dispose(); MaxiPlane = null; XContent.Unload(); XContent.Dispose(); XContent = null; XEffect = null; XDevice.Dispose(); XDevice = null; }
public XNAGraph() { XPlane = new XPlane(2, 2); AutoRange = true; }
private void InitHardwareAcceleration() { MiniPlane = new XPlane(2, 2); MaxiPlane = new XPlane(640, 480); }