Minor cleanups (regions, tabs). Started getting the WinForms related things out of this class.

This commit is contained in:
the_fiddler 2007-04-24 12:15:09 +00:00
parent 4a290c7182
commit 2dc06f2d66

View file

@ -4,6 +4,8 @@
*/ */
#endregion #endregion
#region --- Using Directives ---
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Drawing; using System.Drawing;
@ -11,9 +13,11 @@ using System.Runtime.InteropServices;
using System.Windows.Forms; using System.Windows.Forms;
using System.Text; using System.Text;
using OpenTK.OpenGL; //using OpenTK.OpenGL;
using OpenTK.Platform.Windows; using OpenTK.Platform.Windows;
#endregion
namespace OpenTK.OpenGL.Platform namespace OpenTK.OpenGL.Platform
{ {
public class WindowsContext : GLContext public class WindowsContext : GLContext
@ -98,14 +102,11 @@ namespace OpenTK.OpenGL.Platform
MakeCurrent(); MakeCurrent();
c.TopLevelControl.Move += new EventHandler(c_Move); //c.TopLevelControl.Move += new EventHandler(c_Move);
c.Move += new EventHandler(c_Move); //c.Move += new EventHandler(c_Move);
c.Resize += new EventHandler(c_Resize); //c.Resize += new EventHandler(c_Resize);
//GL.Init();
//new GL();
//if (load_extensions) //GL.ReloadFunctions();
// LoadExtensions();
} }
void c_Resize(object sender, EventArgs e) void c_Resize(object sender, EventArgs e)
@ -233,7 +234,7 @@ namespace OpenTK.OpenGL.Platform
currentMode.PelsHeight, currentMode.PelsHeight,
currentMode.BitsPerPel, currentMode.BitsPerPel,
currentMode.DisplayFrequency currentMode.DisplayFrequency
); );
modes.Add(mode); modes.Add(mode);
} }