Minor cleanups (regions, tabs). Started getting the WinForms related things out of this class.
This commit is contained in:
parent
4a290c7182
commit
2dc06f2d66
1 changed files with 10 additions and 9 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue