コード例 #1
0
ファイル: NativeWindow.cs プロジェクト: mixxit/ClassicalSharp
 /// <summary> Releases all non-managed resources belonging to this NativeWindow. </summary>
 public virtual void Dispose()
 {
     if (!IsDisposed)
     {
         implementation.Dispose();
         GC.SuppressFinalize(this);
         IsDisposed = true;
     }
 }
コード例 #2
0
 /// <summary> Releases all non-managed resources belonging to this NativeWindow. </summary>
 public virtual void Dispose()
 {
     if (!IsDisposed)
     {
         if ((options & GameWindowFlags.Fullscreen) != 0)
         {
             //if (WindowState == WindowState.Fullscreen) WindowState = WindowState.Normal; // TODO: Revise.
             device.RestoreResolution();
         }
         implementation.Dispose();
         GC.SuppressFinalize(this);
         IsDisposed = true;
     }
 }
コード例 #3
0
ファイル: NativeWindow.cs プロジェクト: SnowmanTackler/OpenTK
        /// <summary>
        /// Releases all non-managed resources belonging to this NativeWindow.
        /// </summary>
        public virtual void Dispose()
        {
            if (!IsDisposed)
            {
                if ((options & GameWindowFlags.Fullscreen) != 0)
                {
                    if (device != null)
                    {
                        device.RestoreResolution();
                    }
                }
                implementation.Dispose();
                GC.SuppressFinalize(this);

                IsDisposed = true;
            }
        }