Variables

read onlycanvas:CanvasElement

Available on HTML5

read onlydrawingBufferHeight:Int

Available on HTML5

read onlydrawingBufferWidth:Int

Available on HTML5

read onlyversion:Float

Methods

beginQuery (target:Int, query:GLQuery):Void

bindAttribLocation (program:GLProgram, index:Int, name:String):Void

bindBuffer (target:Int, buffer:GLBuffer):Void

bindBufferBase (target:Int, index:Int, buffer:GLBuffer):Void

bindBufferRange (target:Int, index:Int, buffer:GLBuffer, offset:DataPointer, size:Int):Void

bindFramebuffer (target:Int, framebuffer:GLFramebuffer):Void

bindRenderbuffer (target:Int, renderbuffer:GLRenderbuffer):Void

bindSampler (unit:Int, sampler:GLSampler):Void

bindTexture (target:Int, texture:GLTexture):Void

blendColor (red:Float, green:Float, blue:Float, alpha:Float):Void

blendEquationSeparate (modeRGB:Int, modeAlpha:Int):Void

blendFunc (sfactor:Int, dfactor:Int):Void

blendFuncSeparate (srcRGB:Int, dstRGB:Int, srcAlpha:Int, dstAlpha:Int):Void

blitFramebuffer (srcX0:Int, srcY0:Int, srcX1:Int, srcY1:Int, dstX0:Int, dstY0:Int, dstX1:Int, dstY1:Int, mask:Int, filter:Int):Void

bufferData (target:Int, size:Int, data:DataPointer, usage:Int):Void

bufferDataWEBGL (target:Int, srcData:Dynamic, usage:Int, ?srcOffset:Int, ?length:Int):Void

Available on HTML5

bufferSubData (target:Int, dstByteOffset:Int, size:Int, data:DataPointer):Void

bufferSubDataWEBGL (target:Int, dstByteOffset:Int, srcData:Dynamic, ?srcOffset:Int, ?length:Int):Void

Available on HTML5

clear (mask:Int):Void

clearBufferfi (buffer:Int, drawbuffer:Int, depth:Float, stencil:Int):Void

clearBufferfv (buffer:Int, drawbuffer:Int, value:DataPointer):Void

clearBufferfvWEBGL (buffer:Int, drawbuffer:Int, values:Dynamic, ?srcOffset:Int):Void

Available on HTML5

clearBufferiv (buffer:Int, drawbuffer:Int, value:DataPointer):Void

clearBufferivWEBGL (buffer:Int, drawbuffer:Int, values:Dynamic, ?srcOffset:Int):Void

Available on HTML5

clearBufferuiv (buffer:Int, drawbuffer:Int, value:DataPointer):Void

clearBufferuivWEBGL (buffer:Int, drawbuffer:Int, values:Dynamic, ?srcOffset:Int):Void

Available on HTML5

clearColor (red:Float, green:Float, blue:Float, alpha:Float):Void

clientWaitSync (sync:GLSync, flags:Int, timeout:Int64):Int

colorMask (red:Bool, green:Bool, blue:Bool, alpha:Bool):Void

compressedTexImage2D (target:Int, level:Int, internalformat:Int, width:Int, height:Int, border:Int, imageSize:Int, data:DataPointer):Void

compressedTexImage2DWEBGL (target:Int, level:Int, internalformat:Int, width:Int, height:Int, border:Int, srcData:Dynamic, ?srcOffset:Int, ?srcLengthOverride:Int):Void

Available on HTML5

compressedTexImage3D (target:Int, level:Int, internalformat:Int, width:Int, height:Int, depth:Int, border:Int, imageSize:Int, data:DataPointer):Void

compressedTexImage3DWEBGL (target:Int, level:Int, internalformat:Int, width:Int, height:Int, depth:Int, border:Int, srcData:Dynamic, ?srcOffset:Int, ?srcLengthOverride:Int):Void

Available on HTML5

compressedTexSubImage2D (target:Int, level:Int, xoffset:Int, yoffset:Int, width:Int, height:Int, format:Int, imageSize:Int, data:DataPointer):Void

compressedTexSubImage2DWEBGL (target:Int, level:Int, xoffset:Int, yoffset:Int, width:Int, height:Int, format:Int, srcData:Dynamic, ?srcOffset:Int, ?srcLengthOverride:Int):Void

Available on HTML5

compressedTexSubImage3D (target:Int, level:Int, xoffset:Int, yoffset:Int, zoffset:Int, width:Int, height:Int, depth:Int, format:Int, imageSize:Int, data:DataPointer):Void

compressedTexSubImage3DWEBGL (target:Int, level:Int, xoffset:Int, yoffset:Int, zoffset:Int, width:Int, height:Int, depth:Int, format:Int, srcData:Dynamic, ?srcOffset:Int, ?srcLengthOverride:Int):Void

Available on HTML5

copyBufferSubData (readTarget:Int, writeTarget:Int, readOffset:DataPointer, writeOffset:DataPointer, size:Int):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

copyTexSubImage3D (target:Int, level:Int, xoffset:Int, yoffset:Int, zoffset:Int, x:Int, y:Int, width:Int, height:Int):Void

depthRangef (zNear:Float, zFar:Float):Void

drawArrays (mode:Int, first:Int, count:Int):Void

drawArraysInstanced (mode:Int, first:Int, count:Int, instanceCount:Int):Void

drawElements (mode:Int, count:Int, type:Int, offset:Dynamic):Void

drawElementsInstanced (mode:Int, count:Int, type:Int, offset:DataPointer, instanceCount:Int):Void

drawRangeElements (mode:Int, start:Int, end:Int, count:Int, type:Int, offset:DataPointer):Void

endQuery (target:Int):Void

fenceSync (condition:Int, flags:Int):GLSync

framebufferRenderbuffer (target:Int, attachment:Int, renderbuffertarget:Int, renderbuffer:GLRenderbuffer):Void

framebufferTexture2D (target:Int, attachment:Int, textarget:Int, texture:GLTexture, level:Int):Void

framebufferTextureLayer (target:Int, attachment:Int, texture:GLTexture, level:Int, layer:Int):Void

getActiveUniformBlockName (program:GLProgram, uniformBlockIndex:Int):String

getActiveUniformBlockParameter (program:GLProgram, uniformBlockIndex:Int, pname:Int):Dynamic

getActiveUniformBlocki (program:GLProgram, uniformBlockIndex:Int, pname:Int):Int

getActiveUniformBlockiv (program:GLProgram, uniformBlockIndex:Int, pname:Int, params:DataPointer):Void

getActiveUniforms (program:GLProgram, uniformIndices:Array<Int>, pname:Int):Dynamic

getActiveUniformsiv (program:GLProgram, uniformIndices:Array<Int>, pname:Int, params:DataPointer):Void

getBufferParameteri (target:Int, pname:Int):Int

getBufferSubData (target:Int, offset:DataPointer, size:Int, data:DataPointer):Void

getBufferSubDataWEBGL (target:Int, srcByteOffset:DataPointer, dstData:Dynamic, ?srcOffset:Dynamic, ?length:Int):Void

Available on HTML5

getFloatv (pname:Int, params:DataPointer):Void

getFramebufferAttachmentParameteri (target:Int, attachment:Int, pname:Int):Int

getFramebufferAttachmentParameteriv (target:Int, attachment:Int, pname:Int, params:DataPointer):Void

getInteger64i_v (pname:Int, index:Int, params:DataPointer):Void

getIntegeri_v (pname:Int, index:Int, params:DataPointer):Void

getInternalformatParameter (target:Int, internalformat:Int, pname:Int):Dynamic

getInternalformati (target:Int, internalformat:Int, pname:Int):Int

getInternalformativ (target:Int, internalformat:Int, pname:Int, bufSize:Int, params:DataPointer):Void

getProgramBinary (program:GLProgram, binaryFormat:Int):Bytes

getProgrami (program:GLProgram, pname:Int):Int

getProgramiv (program:GLProgram, pname:Int, params:DataPointer):Void

getQuery (target:Int, pname:Int):GLQuery

getQueryi (target:Int, pname:Int):Int

getQueryiv (target:Int, pname:Int, params:DataPointer):Void

getShaderi (shader:GLShader, pname:Int):Int

getShaderiv (shader:GLShader, pname:Int, params:DataPointer):Void

getStringi (name:Int, index:Int):String

getTexParameter (target:Int, pname:Int):Dynamic

getTexParameterf (target:Int, pname:Int):Float

getTexParameterfv (target:Int, pname:Int, params:DataPointer):Void

getTexParameteri (target:Int, pname:Int):Int

getTexParameteriv (target:Int, pname:Int, params:DataPointer):Void

getUniformBlockIndex (program:GLProgram, uniformBlockName:String):Int

getUniformIndices (program:GLProgram, uniformNames:Array<String>):Array<Int>

getVertexAttribIi (index:Int, pname:Int):Int

getVertexAttribIiv (index:Int, pname:Int, params:DataPointer):Void

getVertexAttribIui (index:Int, pname:Int):Int

getVertexAttribIuiv (index:Int, pname:Int, params:DataPointer):Void

getVertexAttribf (index:Int, pname:Int):Float

getVertexAttribfv (index:Int, pname:Int, params:DataPointer):Void

getVertexAttribi (index:Int, pname:Int):Int

getVertexAttribiv (index:Int, pname:Int, params:DataPointer):Void

hint (target:Int, mode:Int):Void

invalidateFramebuffer (target:Int, attachments:Array<Int>):Void

invalidateSubFramebuffer (target:Int, attachments:Array<Int>, x:Int, y:Int, width:Int, height:Int):Void

mapBufferRange (target:Int, offset:DataPointer, length:Int, access:Int):DataPointer

pixelStorei (pname:Int, param:Int):Void

polygonOffset (factor:Float, units:Float):Void

programBinary (program:GLProgram, binaryFormat:Int, binary:DataPointer, length:Int):Void

programParameteri (program:GLProgram, pname:Int, value:Int):Void

readPixels (x:Int, y:Int, width:Int, height:Int, format:Int, type:Int, pixels:DataPointer):Void

readPixelsWEBGL (x:Int, y:Int, width:Int, height:Int, format:Int, type:Int, pixels:Dynamic, ?dstOffset:Int):Void

Available on HTML5

renderbufferStorage (target:Int, internalformat:Int, width:Int, height:Int):Void

renderbufferStorageMultisample (target:Int, samples:Int, internalFormat:Int, width:Int, height:Int):Void

sampleCoverage (value:Float, invert:Bool):Void

samplerParameterf (sampler:GLSampler, pname:Int, param:Float):Void

samplerParameteri (sampler:GLSampler, pname:Int, param:Int):Void

scissor (x:Int, y:Int, width:Int, height:Int):Void

shaderBinary (shaders:Array<GLShader>, binaryformat:Int, binary:DataPointer, length:Int):Void

shaderSource (shader:GLShader, string:String):Void

stencilFunc (func:Int, ref:Int, mask:Int):Void

stencilFuncSeparate (face:Int, func:Int, ref:Int, mask:Int):Void

stencilOp (fail:Int, zfail:Int, zpass:Int):Void

stencilOpSeparate (face:Int, fail:Int, zfail:Int, zpass:Int):Void

texImage2D (target:Int, level:Int, internalformat:Int, width:Int, height:Int, border:Int, format:Int, type:Int, data:DataPointer):Void

texImage2DWEBGL (target:Int, level:Int, internalformat:Int, width:Int, height:Int, border:Dynamic, ?format:Int, ?type:Int, ?srcData:Dynamic, ?srcOffset:Int):Void

Available on HTML5

texImage3D (target:Int, level:Int, internalformat:Int, width:Int, height:Int, depth:Int, border:Int, format:Int, type:Int, data:DataPointer):Void

texImage3DWEBGL (target:Int, level:Int, internalformat:Int, width:Int, height:Int, depth:Int, border:Int, format:Int, type:Int, srcData:Dynamic, ?srcOffset:Int):Void

Available on HTML5

texParameterf (target:Int, pname:Int, param:Float):Void

texParameteri (target:Int, pname:Int, param:Int):Void

texStorage2D (target:Int, level:Int, internalformat:Int, width:Int, height:Int):Void

texStorage3D (target:Int, level:Int, internalformat:Int, width:Int, height:Int, depth:Int):Void

texSubImage2D (target:Int, level:Int, xoffset:Int, yoffset:Int, width:Int, height:Int, format:Int, type:Int, data:DataPointer):Void

texSubImage2DWEBGL (target:Int, level:Int, xoffset:Int, yoffset:Int, width:Int, height:Int, format:Dynamic, ?type:Int, ?srcData:Dynamic, ?srcOffset:Int):Void

Available on HTML5

texSubImage3D (target:Int, level:Int, xoffset:Int, yoffset:Int, zoffset:Int, width:Int, height:Int, depth:Int, format:Int, type:Int, data:DataPointer):Void

texSubImage3DWEBGL (target:Int, level:Int, xoffset:Int, yoffset:Int, zoffset:Int, width:Int, height:Int, depth:Int, format:Int, type:Int, source:Dynamic, ?srcOffset:Int):Void

Available on HTML5

transformFeedbackVaryings (program:GLProgram, varyings:Array<String>, bufferMode:Int):Void

uniform1fvWEBGL (location:GLUniformLocation, data:Dynamic, ?srcOffset:Int, ?srcLength:Int):Void

Available on HTML5

uniform1ivWEBGL (location:GLUniformLocation, ?data:Dynamic, ?srcOffset:Int, ?srcLength:Int):Void

Available on HTML5

uniform1uivWEBGL (location:GLUniformLocation, data:Dynamic, ?srcOffset:Int, ?srcLength:Int):Void

Available on HTML5

uniform2fvWEBGL (location:GLUniformLocation, data:Dynamic, ?srcOffset:Int, ?srcLength:Int):Void

Available on HTML5

uniform2ivWEBGL (location:GLUniformLocation, data:Dynamic, ?srcOffset:Int, ?srcLength:Int):Void

Available on HTML5

uniform2uivWEBGL (location:GLUniformLocation, data:Dynamic, ?srcOffset:Int, ?srcLength:Int):Void

Available on HTML5

uniform3fvWEBGL (location:GLUniformLocation, data:Dynamic, ?srcOffset:Int, ?srcLength:Int):Void

Available on HTML5

uniform3i (location:GLUniformLocation, v0:Int, v1:Int, v2:Int):Void

uniform3ivWEBGL (location:GLUniformLocation, data:Dynamic, ?srcOffset:Int, ?srcLength:Int):Void

Available on HTML5

uniform3ui (location:GLUniformLocation, v0:Int, v1:Int, v2:Int):Void

uniform3uivWEBGL (location:GLUniformLocation, data:Dynamic, ?srcOffset:Int, ?srcLength:Int):Void

Available on HTML5

uniform4fvWEBGL (location:GLUniformLocation, data:Dynamic, ?srcOffset:Int, ?srcLength:Int):Void

Available on HTML5

uniform4i (location:GLUniformLocation, v0:Int, v1:Int, v2:Int, v3:Int):Void

uniform4ivWEBGL (location:GLUniformLocation, data:Dynamic, ?srcOffset:Int, ?srcLength:Int):Void

Available on HTML5

uniform4ui (location:GLUniformLocation, v0:Int, v1:Int, v2:Int, v3:Int):Void

uniform4uivWEBGL (location:GLUniformLocation, data:Dynamic, ?srcOffset:Int, ?srcLength:Int):Void

Available on HTML5

uniformBlockBinding (program:GLProgram, uniformBlockIndex:Int, uniformBlockBinding:Int):Void

uniformMatrix2fv (location:GLUniformLocation, count:Int, transpose:Bool, v:DataPointer):Void

uniformMatrix2fvWEBGL (location:GLUniformLocation, transpose:Bool, v:Dynamic, ?srcOffset:Int, ?srcLength:Int):Void

Available on HTML5

uniformMatrix2x3fvWEBGL (location:GLUniformLocation, transpose:Bool, v:Dynamic, ?srcOffset:Int, ?srcLength:Int):Void

Available on HTML5

uniformMatrix2x4fvWEBGL (location:GLUniformLocation, transpose:Bool, v:Dynamic, ?srcOffset:Int, ?srcLength:Int):Void

Available on HTML5

uniformMatrix3fv (location:GLUniformLocation, count:Int, transpose:Bool, v:DataPointer):Void

uniformMatrix3fvWEBGL (location:GLUniformLocation, transpose:Bool, v:Dynamic, ?srcOffset:Int, ?srcLength:Int):Void

Available on HTML5

uniformMatrix3x2fvWEBGL (location:GLUniformLocation, transpose:Bool, v:Dynamic, ?srcOffset:Int, ?srcLength:Int):Void

Available on HTML5

uniformMatrix3x4fvWEBGL (location:GLUniformLocation, transpose:Bool, v:Dynamic, ?srcOffset:Int, ?srcLength:Int):Void

Available on HTML5

uniformMatrix4fv (location:GLUniformLocation, count:Int, transpose:Bool, v:DataPointer):Void

uniformMatrix4fvWEBGL (location:GLUniformLocation, transpose:Bool, v:Dynamic, ?srcOffset:Int, ?srcLength:Int):Void

Available on HTML5

uniformMatrix4x2fvWEBGL (location:GLUniformLocation, transpose:Bool, v:Dynamic, ?srcOffset:Int, ?srcLength:Int):Void

Available on HTML5

uniformMatrix4x3fvWEBGL (location:GLUniformLocation, transpose:Dynamic, v:Dynamic, ?srcOffset:Int, ?srcLength:Int):Void

Available on HTML5

vertexAttrib1fvWEBGL (index:Int, v:Dynamic):Void

Available on HTML5

vertexAttrib2fvWEBGL (index:Int, v:Dynamic):Void

Available on HTML5

vertexAttrib3f (indx:Int, v0:Float, v1:Float, v2:Float):Void

vertexAttrib3fvWEBGL (index:Int, v:Dynamic):Void

Available on HTML5

vertexAttrib4f (indx:Int, v0:Float, v1:Float, v2:Float, v3:Float):Void

vertexAttrib4fvWEBGL (index:Int, v:Dynamic):Void

Available on HTML5

vertexAttribDivisor (index:Int, divisor:Int):Void

vertexAttribI4i (index:Int, v0:Int, v1:Int, v2:Int, v3:Int):Void

vertexAttribI4ivWEBGL (index:Int, v:Dynamic):Void

Available on HTML5

vertexAttribI4ui (index:Int, v0:Int, v1:Int, v2:Int, v3:Int):Void

vertexAttribI4uivWEBGL (index:Int, v:Dynamic):Void

Available on HTML5

vertexAttribIPointer (index:Int, size:Int, type:Int, stride:Int, offset:DataPointer):Void

vertexAttribPointer (index:Int, size:Int, type:Int, normalized:Bool, stride:Int, offset:DataPointer):Void

viewport (x:Int, y:Int, width:Int, height:Int):Void

waitSync (sync:GLSync, flags:Int, timeout:Dynamic):Void