Exemplo n.º 1
0
        /*
         * IWindowInfo IGraphicsContextInternal.Info
         * {
         *  get { return (IWindowInfo)windowInfo; }
         * }
         */

        public override IntPtr GetAddress(IntPtr function_string)
        {
            IntPtr address = Wgl.GetProcAddress(function_string);

            if (!IsValid(address))
            {
                address = Functions.GetProcAddress(WinFactory.OpenGLHandle, function_string);
            }
            return(address);
        }
Exemplo n.º 2
0
        internal static IntPtr GetAddress(string function_string)
        {
            IntPtr address = Wgl.GetProcAddress(function_string);

            if (!IsValid(address))
            {
                address = Functions.GetProcAddress(WinFactory.OpenGLHandle, function_string);
            }
            return(address);
        }