Method wglCreateContext
wglCreateContext(nint)
Creates a new OpenGL rendering context for the specified device context.
public static extern nint wglCreateContext(nint hdc)
Parameters
hdcnintA handle to a device context for which the OpenGL rendering context is created.
Returns
Remarks
The created rendering context must be made current using
wglMakeCurrent before it can be used for rendering. Ensure that the device context specified by
hdc is compatible with OpenGL.