Class GLFWBindingsContext
Provides methods for querying available functions in a GLFW context.
Implements
Inherited Members
Namespace: OpenTK.Windowing.GraphicsLibraryFramework
Assembly: OpenTK.Windowing.GraphicsLibraryFramework.dll
Syntax
public class GLFWBindingsContext : IBindingsContext
Methods
GetProcAddress(string)
Retrieves an unmanaged function pointer to the specified function on the specified bindings context.
Declaration
public IntPtr GetProcAddress(string procName)
Parameters
Type | Name | Description |
---|---|---|
string | procName | An ASCII-encoded string that defines the name of the function. |
Returns
Type | Description |
---|---|
IntPtr | A IntPtr that contains the address of procName or IntPtr.Zero, if the function is not supported by the drivers. |
Remarks
Note: some drivers are known to return non-zero values for unsupported functions. Typical values include 1 and 2 - inheritors are advised to check for and ignore these values.