Method wglMakeCurrent
wglMakeCurrent(nint, nint)
Makes a specified OpenGL rendering context the current rendering context for the calling thread.
public static extern bool wglMakeCurrent(nint hdc, nint hglrc)
Parameters
hdcnintA handle to the device context (HDC) to which the OpenGL rendering context is to be attached. This parameter cannot be
IntPtr.Zero.hglrcnintA handle to the OpenGL rendering context (HGLRC) to be made current. This parameter can be
IntPtr.Zeroto release the current rendering context.
Returns
Remarks
This method binds the specified OpenGL rendering context to the calling
thread and the specified device context. If hglrc is IntPtr.Zero,
the current rendering context is released from the calling thread. Only one rendering
context can be
current per thread at a time.