Exemple #1
0
 /// <summary>
 /// Clean up any resources being used.
 /// </summary>
 /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
 protected override void Dispose(bool disposing)
 {
     this.timer1.Stop();
     this.timer1.Dispose();
     //SDL.SDL_GL_DeleteContext(glContext);
     //glContext = IntPtr.Zero;
     SDL.SDL_SetHintWithPriority(
         SDL.SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS,
         "0",
         SDL.SDL_HintPriority.SDL_HINT_OVERRIDE
         );
     SDL.SDL_DestroyWindow(this._sdl_formhandle);
     _sdl_formhandle = IntPtr.Zero;
     SDL.SDL_Quit();
     if (disposing && (components != null))
     {
         components.Dispose();
     }
     base.Dispose(disposing);
 }