//[System.Runtime.InteropServices.DllImport("opengl32.dll")] //bool wglShareLists(IntPtr hglrc1, IntPtr hglrc2); public ContextRef CreateGLContext(int major_version, int minor_version, bool forward_compatible) { var gl = new Bizware.BizwareGL.Drivers.OpenTK.IGL_TK(major_version, minor_version, forward_compatible); var ret = new ContextRef { gl = gl }; return(ret); }
public static void CreateInstance(Bizware.BizwareGL.Drivers.OpenTK.IGL_TK mainContext) { if (Instance != null) { throw new InvalidOperationException("Attempt to create more than one GLManager"); } Instance = new GLManager(); Instance.MainContext = mainContext; }
//[System.Runtime.InteropServices.DllImport("opengl32.dll")] //bool wglShareLists(IntPtr hglrc1, IntPtr hglrc2); public ContextRef CreateGLContext(int major_version, int minor_version, bool forward_compatible) { var gl = new Bizware.BizwareGL.Drivers.OpenTK.IGL_TK(major_version, minor_version, forward_compatible); var ret = new ContextRef { gl = gl }; return ret; }