WebGLRenderingContextBase

Types

Link copied to clipboard
object Companion

Properties

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

Functions

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