WebGLRenderingContextBase

external interface WebGLRenderingContextBase

Types

Companion
Link copied to clipboard
object Companion

Functions

activeTexture
Link copied to clipboard
abstract fun activeTexture(texture: Int)
attachShader
Link copied to clipboard
abstract fun attachShader(program: WebGLProgram?, shader: WebGLShader?)
bindAttribLocation
Link copied to clipboard
abstract fun bindAttribLocation(program: WebGLProgram?, index: Int, name: String)
bindBuffer
Link copied to clipboard
abstract fun bindBuffer(target: Int, buffer: WebGLBuffer?)
bindFramebuffer
Link copied to clipboard
abstract fun bindFramebuffer(target: Int, framebuffer: WebGLFramebuffer?)
bindRenderbuffer
Link copied to clipboard
abstract fun bindRenderbuffer(target: Int, renderbuffer: WebGLRenderbuffer?)
bindTexture
Link copied to clipboard
abstract fun bindTexture(target: Int, texture: WebGLTexture?)
blendColor
Link copied to clipboard
abstract fun blendColor(red: Float, green: Float, blue: Float, alpha: Float)
blendEquation
Link copied to clipboard
abstract fun blendEquation(mode: Int)
blendEquationSeparate
Link copied to clipboard
abstract fun blendEquationSeparate(modeRGB: Int, modeAlpha: Int)
blendFunc
Link copied to clipboard
abstract fun blendFunc(sfactor: Int, dfactor: Int)
blendFuncSeparate
Link copied to clipboard
abstract fun blendFuncSeparate(srcRGB: Int, dstRGB: Int, srcAlpha: Int, dstAlpha: Int)
bufferData
Link copied to clipboard
abstract fun bufferData(target: Int, size: Int, usage: Int)
abstract fun bufferData(target: Int, data: BufferDataSource?, usage: Int)
bufferSubData
Link copied to clipboard
abstract fun bufferSubData(target: Int, offset: Int, data: BufferDataSource?)
checkFramebufferStatus
Link copied to clipboard
abstract fun checkFramebufferStatus(target: Int): Int
clear
Link copied to clipboard
abstract fun clear(mask: Int)
clearColor
Link copied to clipboard
abstract fun clearColor(red: Float, green: Float, blue: Float, alpha: Float)
clearDepth
Link copied to clipboard
abstract fun clearDepth(depth: Float)
clearStencil
Link copied to clipboard
abstract fun clearStencil(s: Int)
colorMask
Link copied to clipboard
abstract fun colorMask(red: Boolean, green: Boolean, blue: Boolean, alpha: Boolean)
compileShader
Link copied to clipboard
abstract fun compileShader(shader: WebGLShader?)
compressedTexImage2D
Link copied to clipboard
abstract fun compressedTexImage2D(target: Int, level: Int, internalformat: Int, width: Int, height: Int, border: Int, data: ArrayBufferView)
compressedTexSubImage2D
Link copied to clipboard
abstract fun compressedTexSubImage2D(target: Int, level: Int, xoffset: Int, yoffset: Int, width: Int, height: Int, format: Int, data: ArrayBufferView)
copyTexImage2D
Link copied to clipboard
abstract fun copyTexImage2D(target: Int, level: Int, internalformat: Int, x: Int, y: Int, width: Int, height: Int, border: Int)
copyTexSubImage2D
Link copied to clipboard
abstract fun copyTexSubImage2D(target: Int, level: Int, xoffset: Int, yoffset: Int, x: Int, y: Int, width: Int, height: Int)
createBuffer
Link copied to clipboard
abstract fun createBuffer(): WebGLBuffer?
createFramebuffer
Link copied to clipboard
abstract fun createFramebuffer(): WebGLFramebuffer?
createProgram
Link copied to clipboard
abstract fun createProgram(): WebGLProgram?
createRenderbuffer
Link copied to clipboard
abstract fun createRenderbuffer(): WebGLRenderbuffer?
createShader
Link copied to clipboard
abstract fun createShader(type: Int): WebGLShader?
createTexture
Link copied to clipboard
abstract fun createTexture(): WebGLTexture?
cullFace
Link copied to clipboard
abstract fun cullFace(mode: Int)
deleteBuffer
Link copied to clipboard
abstract fun deleteBuffer(buffer: WebGLBuffer?)
deleteFramebuffer
Link copied to clipboard
abstract fun deleteFramebuffer(framebuffer: WebGLFramebuffer?)
deleteProgram
Link copied to clipboard
abstract fun deleteProgram(program: WebGLProgram?)
deleteRenderbuffer
Link copied to clipboard
abstract fun deleteRenderbuffer(renderbuffer: WebGLRenderbuffer?)
deleteShader
Link copied to clipboard
abstract fun deleteShader(shader: WebGLShader?)
deleteTexture
Link copied to clipboard
abstract fun deleteTexture(texture: WebGLTexture?)
depthFunc
Link copied to clipboard
abstract fun depthFunc(func: Int)
depthMask
Link copied to clipboard
abstract fun depthMask(flag: Boolean)
depthRange
Link copied to clipboard
abstract fun depthRange(zNear: Float, zFar: Float)
detachShader
Link copied to clipboard
abstract fun detachShader(program: WebGLProgram?, shader: WebGLShader?)
disable
Link copied to clipboard
abstract fun disable(cap: Int)
disableVertexAttribArray
Link copied to clipboard
abstract fun disableVertexAttribArray(index: Int)
drawArrays
Link copied to clipboard
abstract fun drawArrays(mode: Int, first: Int, count: Int)
drawElements
Link copied to clipboard
abstract fun drawElements(mode: Int, count: Int, type: Int, offset: Int)
enable
Link copied to clipboard
abstract fun enable(cap: Int)
enableVertexAttribArray
Link copied to clipboard
abstract fun enableVertexAttribArray(index: Int)
finish
Link copied to clipboard
abstract fun finish()
flush
Link copied to clipboard
abstract fun flush()
framebufferRenderbuffer
Link copied to clipboard
abstract fun framebufferRenderbuffer(target: Int, attachment: Int, renderbuffertarget: Int, renderbuffer: WebGLRenderbuffer?)
framebufferTexture2D
Link copied to clipboard
abstract fun framebufferTexture2D(target: Int, attachment: Int, textarget: Int, texture: WebGLTexture?, level: Int)
frontFace
Link copied to clipboard
abstract fun frontFace(mode: Int)
generateMipmap
Link copied to clipboard
abstract fun generateMipmap(target: Int)
getActiveAttrib
Link copied to clipboard
abstract fun getActiveAttrib(program: WebGLProgram?, index: Int): WebGLActiveInfo?
getActiveUniform
Link copied to clipboard
abstract fun getActiveUniform(program: WebGLProgram?, index: Int): WebGLActiveInfo?
getAttachedShaders
Link copied to clipboard
abstract fun getAttachedShaders(program: WebGLProgram?): Array<WebGLShader>?
getAttribLocation
Link copied to clipboard
abstract fun getAttribLocation(program: WebGLProgram?, name: String): Int
getBufferParameter
Link copied to clipboard
abstract fun getBufferParameter(target: Int, pname: Int): Any?
getContextAttributes
Link copied to clipboard
abstract fun getContextAttributes(): WebGLContextAttributes?
getError
Link copied to clipboard
abstract fun getError(): Int
getExtension
Link copied to clipboard
abstract fun getExtension(name: String): dynamic
getFramebufferAttachmentParameter
Link copied to clipboard
abstract fun getFramebufferAttachmentParameter(target: Int, attachment: Int, pname: Int): Any?
getParameter
Link copied to clipboard
abstract fun getParameter(pname: Int): Any?
getProgramInfoLog
Link copied to clipboard
abstract fun getProgramInfoLog(program: WebGLProgram?): String?
getProgramParameter
Link copied to clipboard
abstract fun getProgramParameter(program: WebGLProgram?, pname: Int): Any?
getRenderbufferParameter
Link copied to clipboard
abstract fun getRenderbufferParameter(target: Int, pname: Int): Any?
getShaderInfoLog
Link copied to clipboard
abstract fun getShaderInfoLog(shader: WebGLShader?): String?
getShaderParameter
Link copied to clipboard
abstract fun getShaderParameter(shader: WebGLShader?, pname: Int): Any?
getShaderPrecisionFormat
Link copied to clipboard
abstract fun getShaderPrecisionFormat(shadertype: Int, precisiontype: Int): WebGLShaderPrecisionFormat?
getShaderSource
Link copied to clipboard
abstract fun getShaderSource(shader: WebGLShader?): String?
getSupportedExtensions
Link copied to clipboard
abstract fun getSupportedExtensions(): Array<String>?
getTexParameter
Link copied to clipboard
abstract fun getTexParameter(target: Int, pname: Int): Any?
getUniform
Link copied to clipboard
abstract fun getUniform(program: WebGLProgram?, location: WebGLUniformLocation?): Any?
getUniformLocation
Link copied to clipboard
abstract fun getUniformLocation(program: WebGLProgram?, name: String): WebGLUniformLocation?
getVertexAttrib
Link copied to clipboard
abstract fun getVertexAttrib(index: Int, pname: Int): Any?
getVertexAttribOffset
Link copied to clipboard
abstract fun getVertexAttribOffset(index: Int, pname: Int): Int
hint
Link copied to clipboard
abstract fun hint(target: Int, mode: Int)
isBuffer
Link copied to clipboard
abstract fun isBuffer(buffer: WebGLBuffer?): Boolean
isContextLost
Link copied to clipboard
abstract fun isContextLost(): Boolean
isEnabled
Link copied to clipboard
abstract fun isEnabled(cap: Int): Boolean
isFramebuffer
Link copied to clipboard
abstract fun isFramebuffer(framebuffer: WebGLFramebuffer?): Boolean
isProgram
Link copied to clipboard
abstract fun isProgram(program: WebGLProgram?): Boolean
isRenderbuffer
Link copied to clipboard
abstract fun isRenderbuffer(renderbuffer: WebGLRenderbuffer?): Boolean
isShader
Link copied to clipboard
abstract fun isShader(shader: WebGLShader?): Boolean
isTexture
Link copied to clipboard
abstract fun isTexture(texture: WebGLTexture?): Boolean
lineWidth
Link copied to clipboard
abstract fun lineWidth(width: Float)
linkProgram
Link copied to clipboard
abstract fun linkProgram(program: WebGLProgram?)
pixelStorei
Link copied to clipboard
abstract fun pixelStorei(pname: Int, param: Int)
polygonOffset
Link copied to clipboard
abstract fun polygonOffset(factor: Float, units: Float)
readPixels
Link copied to clipboard
abstract fun readPixels(x: Int, y: Int, width: Int, height: Int, format: Int, type: Int, pixels: ArrayBufferView?)
renderbufferStorage
Link copied to clipboard
abstract fun renderbufferStorage(target: Int, internalformat: Int, width: Int, height: Int)
sampleCoverage
Link copied to clipboard
abstract fun sampleCoverage(value: Float, invert: Boolean)
scissor
Link copied to clipboard
abstract fun scissor(x: Int, y: Int, width: Int, height: Int)
shaderSource
Link copied to clipboard
abstract fun shaderSource(shader: WebGLShader?, source: String)
stencilFunc
Link copied to clipboard
abstract fun stencilFunc(func: Int, ref: Int, mask: Int)
stencilFuncSeparate
Link copied to clipboard
abstract fun stencilFuncSeparate(face: Int, func: Int, ref: Int, mask: Int)
stencilMask
Link copied to clipboard
abstract fun stencilMask(mask: Int)
stencilMaskSeparate
Link copied to clipboard
abstract fun stencilMaskSeparate(face: Int, mask: Int)
stencilOp
Link copied to clipboard
abstract fun stencilOp(fail: Int, zfail: Int, zpass: Int)
stencilOpSeparate
Link copied to clipboard
abstract fun stencilOpSeparate(face: Int, fail: Int, zfail: Int, zpass: Int)
texImage2D
Link copied to clipboard
abstract fun texImage2D(target: Int, level: Int, internalformat: Int, format: Int, type: Int, source: TexImageSource?)
abstract fun texImage2D(target: Int, level: Int, internalformat: Int, width: Int, height: Int, border: Int, format: Int, type: Int, pixels: ArrayBufferView?)
texParameterf
Link copied to clipboard
abstract fun texParameterf(target: Int, pname: Int, param: Float)
texParameteri
Link copied to clipboard
abstract fun texParameteri(target: Int, pname: Int, param: Int)
texSubImage2D
Link copied to clipboard
abstract fun texSubImage2D(target: Int, level: Int, xoffset: Int, yoffset: Int, format: Int, type: Int, source: TexImageSource?)
abstract fun texSubImage2D(target: Int, level: Int, xoffset: Int, yoffset: Int, width: Int, height: Int, format: Int, type: Int, pixels: ArrayBufferView?)
uniform1f
Link copied to clipboard
abstract fun uniform1f(location: WebGLUniformLocation?, x: Float)
uniform1fv
Link copied to clipboard
abstract fun uniform1fv(location: WebGLUniformLocation?, v: Array<Float>)
abstract fun uniform1fv(location: WebGLUniformLocation?, v: Float32Array)
uniform1i
Link copied to clipboard
abstract fun uniform1i(location: WebGLUniformLocation?, x: Int)
uniform1iv
Link copied to clipboard
abstract fun uniform1iv(location: WebGLUniformLocation?, v: Array<Int>)
abstract fun uniform1iv(location: WebGLUniformLocation?, v: Int32Array)
uniform2f
Link copied to clipboard
abstract fun uniform2f(location: WebGLUniformLocation?, x: Float, y: Float)
uniform2fv
Link copied to clipboard
abstract fun uniform2fv(location: WebGLUniformLocation?, v: Array<Float>)
abstract fun uniform2fv(location: WebGLUniformLocation?, v: Float32Array)
uniform2i
Link copied to clipboard
abstract fun uniform2i(location: WebGLUniformLocation?, x: Int, y: Int)
uniform2iv
Link copied to clipboard
abstract fun uniform2iv(location: WebGLUniformLocation?, v: Array<Int>)
abstract fun uniform2iv(location: WebGLUniformLocation?, v: Int32Array)
uniform3f
Link copied to clipboard
abstract fun uniform3f(location: WebGLUniformLocation?, x: Float, y: Float, z: Float)
uniform3fv
Link copied to clipboard
abstract fun uniform3fv(location: WebGLUniformLocation?, v: Array<Float>)
abstract fun uniform3fv(location: WebGLUniformLocation?, v: Float32Array)
uniform3i
Link copied to clipboard
abstract fun uniform3i(location: WebGLUniformLocation?, x: Int, y: Int, z: Int)
uniform3iv
Link copied to clipboard
abstract fun uniform3iv(location: WebGLUniformLocation?, v: Array<Int>)
abstract fun uniform3iv(location: WebGLUniformLocation?, v: Int32Array)
uniform4f
Link copied to clipboard
abstract fun uniform4f(location: WebGLUniformLocation?, x: Float, y: Float, z: Float, w: Float)
uniform4fv
Link copied to clipboard
abstract fun uniform4fv(location: WebGLUniformLocation?, v: Array<Float>)
abstract fun uniform4fv(location: WebGLUniformLocation?, v: Float32Array)
uniform4i
Link copied to clipboard
abstract fun uniform4i(location: WebGLUniformLocation?, x: Int, y: Int, z: Int, w: Int)
uniform4iv
Link copied to clipboard
abstract fun uniform4iv(location: WebGLUniformLocation?, v: Array<Int>)
abstract fun uniform4iv(location: WebGLUniformLocation?, v: Int32Array)
uniformMatrix2fv
Link copied to clipboard
abstract fun uniformMatrix2fv(location: WebGLUniformLocation?, transpose: Boolean, value: Array<Float>)
abstract fun uniformMatrix2fv(location: WebGLUniformLocation?, transpose: Boolean, value: Float32Array)
uniformMatrix3fv
Link copied to clipboard
abstract fun uniformMatrix3fv(location: WebGLUniformLocation?, transpose: Boolean, value: Array<Float>)
abstract fun uniformMatrix3fv(location: WebGLUniformLocation?, transpose: Boolean, value: Float32Array)
uniformMatrix4fv
Link copied to clipboard
abstract fun uniformMatrix4fv(location: WebGLUniformLocation?, transpose: Boolean, value: Array<Float>)
abstract fun uniformMatrix4fv(location: WebGLUniformLocation?, transpose: Boolean, value: Float32Array)
useProgram
Link copied to clipboard
abstract fun useProgram(program: WebGLProgram?)
validateProgram
Link copied to clipboard
abstract fun validateProgram(program: WebGLProgram?)
vertexAttrib1f
Link copied to clipboard
abstract fun vertexAttrib1f(index: Int, x: Float)
vertexAttrib1fv
Link copied to clipboard
abstract fun vertexAttrib1fv(index: Int, values: dynamic)
vertexAttrib2f
Link copied to clipboard
abstract fun vertexAttrib2f(index: Int, x: Float, y: Float)
vertexAttrib2fv
Link copied to clipboard
abstract fun vertexAttrib2fv(index: Int, values: dynamic)
vertexAttrib3f
Link copied to clipboard
abstract fun vertexAttrib3f(index: Int, x: Float, y: Float, z: Float)
vertexAttrib3fv
Link copied to clipboard
abstract fun vertexAttrib3fv(index: Int, values: dynamic)
vertexAttrib4f
Link copied to clipboard
abstract fun vertexAttrib4f(index: Int, x: Float, y: Float, z: Float, w: Float)
vertexAttrib4fv
Link copied to clipboard
abstract fun vertexAttrib4fv(index: Int, values: dynamic)
vertexAttribPointer
Link copied to clipboard
abstract fun vertexAttribPointer(index: Int, size: Int, type: Int, normalized: Boolean, stride: Int, offset: Int)
viewport
Link copied to clipboard
abstract fun viewport(x: Int, y: Int, width: Int, height: Int)

Properties

canvas
Link copied to clipboard
abstract val canvas: HTMLCanvasElement
drawingBufferHeight
Link copied to clipboard
abstract val drawingBufferHeight: Int
drawingBufferWidth
Link copied to clipboard
abstract val drawingBufferWidth: Int

Inheritors

WebGLRenderingContext
Link copied to clipboard