/* * 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); }
Delegate Load(string name, Type type) { IntPtr pfunc = Functions.GetProcAddress(dll, name); if (pfunc != IntPtr.Zero) { return(Marshal.GetDelegateForFunctionPointer(pfunc, type)); } return(null); }
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); }
private Delegate Load(ushort ordinal, Type type) { IntPtr pfunc = Functions.GetProcAddress(dll, (IntPtr)ordinal); if (pfunc != IntPtr.Zero) { return(Marshal.GetDelegateForFunctionPointer(pfunc, type)); } return(null); }