Properties
contexts
contexts: (null | EmscriptenGLContext)[]
createContext
createContext: ((canvas, webGLContextAttributes) => number)
Type declaration
-
- (canvas, webGLContextAttributes): number
-
Parameters
-
canvas: HTMLCanvasElement | OffscreenCanvas
-
webGLContextAttributes: EmscriptenGLContextAttributes
Returns number
Optional
currentContext
currentContext?: EmscriptenGLContext
deleteContext
deleteContext: ((contextHandle) => void)
Type declaration
-
- (contextHandle): void
-
Returns void
framebuffers
framebuffers: (null | WebGLFramebuffer)[]
getContext
getContext: ((contextHandle) => EmscriptenGLContext)
Type declaration
-
- (contextHandle): EmscriptenGLContext
-
Returns EmscriptenGLContext
getNewId
getNewId: ((array) => number)
Type declaration
-
- (array): number
-
Returns number
makeContextCurrent
makeContextCurrent: ((contextHandle) => boolean)
Type declaration
-
- (contextHandle): boolean
-
Returns boolean
registerContext
registerContext: ((ctx, webGLContextAttributes) => number)
Type declaration
-
- (ctx, webGLContextAttributes): number
-
Parameters
-
ctx: WebGLRenderingContext
-
webGLContextAttributes: EmscriptenGLContextAttributes
Returns number
textures
textures: (null | WebGLTexture)[]