sfml.js
    Preparing search index...

    Class Context

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

    Index

    Constructors

    Properties

    "[graphicsNative]": NativeGraphicsHandle<"contextResource">

    Methods

    • 提交排队绘制并在当前原生线程激活或停用上下文,返回是否成功。

      Parameters

      • active: boolean

      Returns boolean

    • 返回当前线程的活动上下文只读引用;没有活动上下文时返回 undefined。

      Returns undefined | Readonly<Pick<Context, "getSettings">>

    • 返回当前线程活动上下文的唯一标识,无活动上下文时为 0n。

      Returns bigint

    • Native function address; calling it requires the matching GL signature.

      Parameters

      • name: string

      Returns undefined | bigint

    • 判断当前环境是否支持指定名称的 OpenGL 扩展。

      Parameters

      • name: string

      Returns boolean