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