Table of Contents

Method wglDeleteContext

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

wglDeleteContext(nint)

Deletes a specified OpenGL rendering context.

public static extern bool wglDeleteContext(nint hglrc)

Parameters

hglrc nint

A handle to the OpenGL rendering context to delete. This handle must not be null.

Returns

bool

true if the rendering context was successfully deleted; otherwise, false.

Remarks

This method releases the resources associated with the specified OpenGL rendering context. Ensure that the rendering context is no longer current in any thread before calling this method.