Пример #1
0
        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;
        }
Пример #2
0
 public XNAGraph()
 {
     XPlane    = new XPlane(2, 2);
     AutoRange = true;
 }
Пример #3
0
 private void InitHardwareAcceleration()
 {
     MiniPlane = new XPlane(2, 2);
     MaxiPlane = new XPlane(640, 480);
 }