Properties
createContext
Type declaration
-
- (canvas: HTMLCanvasElement | OffscreenCanvas, webGLContextAttributes: EmscriptenGLContextAttributes): number
-
Parameters
-
canvas: HTMLCanvasElement | OffscreenCanvas
-
Returns number
deleteContext
deleteContext: ((contextHandle: number) => void)
Type declaration
-
- (contextHandle: number): void
-
Returns void
framebuffers
framebuffers: (null | WebGLFramebuffer)[]
getNewId
getNewId: ((array: any[]) => number)
Type declaration
-
- (array: any[]): number
-
Returns number
makeContextCurrent
makeContextCurrent: ((contextHandle: number) => boolean)
Type declaration
-
- (contextHandle: number): boolean
-
Returns boolean
textures
textures: (null | WebGLTexture)[]