From 2dc06f2d6650588079e84d9aca8de95f9d74fe6c Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Tue, 24 Apr 2007 12:15:09 +0000 Subject: [PATCH] Minor cleanups (regions, tabs). Started getting the WinForms related things out of this class. --- .../OpenGL/OpenGL/Contexts/WindowsContext.cs | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/Source/OpenGL/OpenGL/Contexts/WindowsContext.cs b/Source/OpenGL/OpenGL/Contexts/WindowsContext.cs index 05186bdb..371828dc 100644 --- a/Source/OpenGL/OpenGL/Contexts/WindowsContext.cs +++ b/Source/OpenGL/OpenGL/Contexts/WindowsContext.cs @@ -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); }