Class WGLLoader.BindingsContext
The bindings context for WGL.
Inherited Members
Namespace: OpenTK.Graphics
Assembly: OpenTK.Graphics.dll
Syntax
public static class WGLLoader.BindingsContext
Methods
GetProcAddress(string)
The wglGetProcAddress function returns the address of an OpenGL extension function for use with the current OpenGL rendering context.
Declaration
public static nint GetProcAddress(string procName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | procName | Points to a null-terminated string that is the name of the extension function. The name of the extension function must be identical to a corresponding function implemented by OpenGL. |
Returns
| Type | Description |
|---|---|
| nint | When the function succeeds, the return value is the address of the extension function. When no current rendering context exists or the function fails, the return value is NULL. To get extended error information, call GetLastError. |