The WebGLRenderingContext interface provides the OpenGL ES 2.0 rendering context for the drawing surface of an HTML canvas
element.
Documentation WebGLRenderingContext by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See:
Variables
Methods
bufferData (target:Int, data:Dynamic, usage:Int):Void
bufferData (target:Int, size:Int, usage:Int):Void
bufferData (target:Int, data:ArrayBufferView, usage:Int):Void
bufferData (target:Int, data:ArrayBuffer, usage:Int):Void
bufferSubData (target:Int, offset:Int, data:Dynamic):Void
bufferSubData (target:Int, offset:Int, data:ArrayBufferView):Void
bufferSubData (target:Int, offset:Int, data:ArrayBuffer):Void
compressedTexImage2D (target:Int, level:Int, internalformat:Int, width:Int, height:Int, border:Int, data:ArrayBufferView):Void
compressedTexSubImage2D (target:Int, level:Int, xoffset:Int, yoffset:Int, width:Int, height:Int, format:Int, data:ArrayBufferView):Void
copyTexImage2D (target:Int, level:Int, internalformat:Int, x:Int, y:Int, width:Int, height:Int, border:Int):Void
copyTexSubImage2D (target:Int, level:Int, xoffset:Int, yoffset:Int, x:Int, y:Int, width:Int, height:Int):Void
framebufferRenderbuffer (target:Int, attachment:Int, renderbuffertarget:Int, renderbuffer:Renderbuffer):Void
getFramebufferAttachmentParameter (target:Int, attachment:Int, pname:Int):Dynamic
Throws:
null | DOMError |
---|
readPixels (x:Int, y:Int, width:Int, height:Int, format:Int, type:Int, pixels:ArrayBufferView):Void
Throws:
null | DOMError |
---|
texImage2D (target:Int, level:Int, internalformat:Int, format:Int, type:Int, video:VideoElement):Void
texImage2D (target:Int, level:Int, internalformat:Int, width:Int, height:Int, border:Int, format:Int, type:Int, pixels:ArrayBufferView):Void
texImage2D (target:Int, level:Int, internalformat:Int, format:Int, type:Int, pixels:ImageData):Void
texImage2D (target:Int, level:Int, internalformat:Int, format:Int, type:Int, image:ImageElement):Void
texImage2D (target:Int, level:Int, internalformat:Int, format:Int, type:Int, canvas:CanvasElement):Void
Throws:
null | DOMError |
---|
texSubImage2D (target:Int, level:Int, xoffset:Int, yoffset:Int, format:Int, type:Int, video:VideoElement):Void
texSubImage2D (target:Int, level:Int, xoffset:Int, yoffset:Int, width:Int, height:Int, format:Int, type:Int, pixels:ArrayBufferView):Void
texSubImage2D (target:Int, level:Int, xoffset:Int, yoffset:Int, format:Int, type:Int, pixels:ImageData):Void
texSubImage2D (target:Int, level:Int, xoffset:Int, yoffset:Int, format:Int, type:Int, image:ImageElement):Void
texSubImage2D (target:Int, level:Int, xoffset:Int, yoffset:Int, format:Int, type:Int, canvas:CanvasElement):Void
Throws:
null | DOMError |
---|
uniform1fv (location:UniformLocation, v:Array<Float>):Void
uniform1fv (location:UniformLocation, v:Float32Array):Void
uniform1iv (location:UniformLocation, v:Array<Int>):Void
uniform1iv (location:UniformLocation, v:Int32Array):Void
uniform2fv (location:UniformLocation, v:Array<Float>):Void
uniform2fv (location:UniformLocation, v:Float32Array):Void
uniform2iv (location:UniformLocation, v:Array<Int>):Void
uniform2iv (location:UniformLocation, v:Int32Array):Void
uniform3fv (location:UniformLocation, v:Array<Float>):Void
uniform3fv (location:UniformLocation, v:Float32Array):Void
uniform3iv (location:UniformLocation, v:Array<Int>):Void
uniform3iv (location:UniformLocation, v:Int32Array):Void
uniform4fv (location:UniformLocation, v:Array<Float>):Void
uniform4fv (location:UniformLocation, v:Float32Array):Void
uniform4iv (location:UniformLocation, v:Array<Int>):Void
uniform4iv (location:UniformLocation, v:Int32Array):Void
uniformMatrix2fv (location:UniformLocation, transpose:Bool, value:Array<Float>):Void
uniformMatrix2fv (location:UniformLocation, transpose:Bool, value:Float32Array):Void
uniformMatrix3fv (location:UniformLocation, transpose:Bool, value:Array<Float>):Void
uniformMatrix3fv (location:UniformLocation, transpose:Bool, value:Float32Array):Void
uniformMatrix4fv (location:UniformLocation, transpose:Bool, value:Array<Float>):Void
uniformMatrix4fv (location:UniformLocation, transpose:Bool, value:Float32Array):Void
vertexAttrib1fv (indx:Int, values:Array<Float>):Void
vertexAttrib1fv (indx:Int, values:Float32Array):Void
vertexAttrib2fv (indx:Int, values:Array<Float>):Void
vertexAttrib2fv (indx:Int, values:Float32Array):Void
vertexAttrib3fv (indx:Int, values:Array<Float>):Void
vertexAttrib3fv (indx:Int, values:Float32Array):Void
vertexAttrib4fv (indx:Int, values:Array<Float>):Void
vertexAttrib4fv (indx:Int, values:Float32Array):Void