Constructors
constructor
- new WebGLState(gl, extensions, capabilities): WebGLState
Properties
buffers
Methods
activeTexture
- activeTexture(webglSlot): void
Returns void
bindFramebuffer
- bindFramebuffer(target, framebuffer): void
Parameters
- target: number
- framebuffer: null | WebGLFramebuffer
Returns void
bindTexture
- bindTexture(webglType, webglTexture): void
Parameters
- webglType: number
- webglTexture: any
Returns void
compressedTexImage2D
- compressedTexImage2D(target, level, internalformat, width, height, border, data): void
Parameters
- target: number
- level: number
- internalformat: number
- width: number
- height: number
- border: number
- data: ArrayBufferView
Returns void
disable
- disable(id): void
Returns void
drawBuffers
- drawBuffers(renderTarget, framebuffer): void
Returns void
enable
- enable(id): void
Returns void
reset
- reset(): void
Returns void
scissor
- scissor(scissor): void
Returns void
setBlending
- setBlending(blending, blendEquation?, blendSrc?, blendDst?, blendEquationAlpha?, blendSrcAlpha?, blendDstAlpha?, premultiplyAlpha?): void
Returns void
setCullFace
- setCullFace(cullFace): void
Returns void
setFlipSided
- setFlipSided(flipSided): void
Returns void
setLineWidth
- setLineWidth(width): void
Returns void
setMaterial
- setMaterial(material, frontFaceCW): void
Returns void
setPolygonOffset
- setPolygonOffset(polygonoffset, factor?, units?): void
Parameters
- polygonoffset: boolean
Optional
factor: numberOptional
units: number
Returns void
setScissorTest
- setScissorTest(scissorTest): void
Returns void
texImage2D
- texImage2D(target, level, internalformat, width, height, border, format, type, pixels): void
Parameters
- target: number
- level: number
- internalformat: number
- width: number
- height: number
- border: number
- format: number
- type: number
- pixels: null | ArrayBufferView
Returns void
- texImage2D(target, level, internalformat, format, type, source): void
Parameters
- target: number
- level: number
- internalformat: number
- format: number
- type: number
- source: any
Returns void
texImage3D
- texImage3D(target, level, internalformat, width, height, depth, border, format, type, pixels): void
Parameters
- target: number
- level: number
- internalformat: number
- width: number
- height: number
- depth: number
- border: number
- format: number
- type: number
- pixels: any
Returns void
unbindTexture
- unbindTexture(): void
Returns void
useProgram
- useProgram(program): boolean
Returns boolean
viewport
- viewport(viewport): void
Returns void