API reference
Preparing search index…

Context

Native-owned OpenGL context; activation remains per native thread.

Source & inheritance
Member directory8

Constructors

Properties

Methods

Constructors

Methods

  • Submit queued draws and activate or deactivate the context on the current native thread, returning whether it succeeded.

    Parameters

    active
    boolean

    Returns

    boolean
    Source & inheritance
  • Return a read-only reference to the current thread's active context, or undefined if there is no active context.

    Returns

    undefined | Readonly<Pick<Context, "getSettings">>
    Source & inheritance
  • Return the unique ID of the current thread's active context, or 0n if there is no active context.

    Returns

    bigint
    Source & inheritance
  • Native function address; calling it requires the matching GL signature.

    Parameters

    name
    string

    Returns

    undefined | bigint
    Source & inheritance
  • Test whether the current environment supports the named OpenGL extension.

    Parameters

    name
    string

    Returns

    boolean
    Source & inheritance

Symbol members

"[graphicsNative]": NativeGraphicsHandle<"contextResource">
Source & inheritance

Icons made by Lorc, Delapouite & Skoll · game-icons.net · CC BY 3.0