示例#1
0
        //[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);
        }
示例#2
0
 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;
 }
示例#3
0
		//[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;
		}