Interface EmscriptenGL

Hierarchy

  • EmscriptenGL

Properties

contexts: (null | EmscriptenGLContext)[]
createContext: ((canvas: HTMLCanvasElement | OffscreenCanvas, webGLContextAttributes: EmscriptenGLContextAttributes) => number)

Type declaration

currentContext?: EmscriptenGLContext
deleteContext: ((contextHandle: number) => void)

Type declaration

    • (contextHandle: number): void
    • Parameters

      • contextHandle: number

      Returns void

framebuffers: (null | WebGLFramebuffer)[]
getContext: ((contextHandle: number) => EmscriptenGLContext)

Type declaration

getNewId: ((array: any[]) => number)

Type declaration

    • (array: any[]): number
    • Parameters

      • array: any[]

      Returns number

makeContextCurrent: ((contextHandle: number) => boolean)

Type declaration

    • (contextHandle: number): boolean
    • Parameters

      • contextHandle: number

      Returns boolean

registerContext: ((ctx: WebGLRenderingContext, webGLContextAttributes: EmscriptenGLContextAttributes) => number)

Type declaration

textures: (null | WebGLTexture)[]

Generated using TypeDoc