mixin vaseOpenGl::GlContext

vaseOpenGl::GlContext

@Js

OpenGL graphical context

activeTexture

abstract Void activeTexture(GlEnum texture)

attachShader

abstract Void attachShader(GlProgram program, GlShader shader)

bindAttribLocation

abstract Void bindAttribLocation(GlProgram program, Int index, Str name)

bindBuffer

abstract Void bindBuffer(GlEnum target, GlBuffer buffer)

bindFramebuffer

abstract Void bindFramebuffer(GlEnum target, GlFramebuffer framebuffer)

bindRenderbuffer

abstract Void bindRenderbuffer(GlEnum target, GlRenderbuffer renderbuffer)

bindTexture

abstract Void bindTexture(GlEnum target, GlTexture? texture)

blendColor

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

blendEquation

abstract Void blendEquation(GlEnum mode)

blendEquationSeparate

abstract Void blendEquationSeparate(GlEnum modeRGB, GlEnum modeAlpha)

blendFunc

abstract Void blendFunc(GlEnum sfactor, GlEnum dfactor)

blendFuncSeparate

abstract Void blendFuncSeparate(GlEnum srcRGB, GlEnum dstRGB, GlEnum srcAlpha, GlEnum dstAlpha)

bufferData

abstract Void bufferData(GlEnum target, ArrayBuffer data, GlEnum usage)

clear

abstract Void clear(GlEnum mask)

clearColor

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

clearDepth

abstract Void clearDepth(Float depth)

clearStencil

abstract Void clearStencil(Int s)

colorMask

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

compileShader

abstract Void compileShader(GlShader shader)

copyTexImage2D

abstract Void copyTexImage2D(GlEnum target, Int level, GlEnum internalformat, Int x, Int y, Int width, Int height, Int border)

copyTexSubImage2D

abstract Void copyTexSubImage2D(GlEnum target, Int level, Int xoffset, Int yoffset, Int x, Int y, Int width, Int height)

createBuffer

abstract GlBuffer createBuffer()

createFramebuffer

abstract GlFramebuffer createFramebuffer()

createProgram

abstract GlProgram createProgram()

createRenderbuffer

abstract GlRenderbuffer createRenderbuffer()

createShader

abstract GlShader createShader(GlEnum type)

createTexture

abstract GlTexture createTexture()

cullFace

abstract Void cullFace(GlEnum mode)

deleteBuffer

abstract Void deleteBuffer(GlBuffer buffer)

deleteFramebuffer

abstract Void deleteFramebuffer(GlFramebuffer framebuffer)

deleteProgram

abstract Void deleteProgram(GlProgram program)

deleteRenderbuffer

abstract Void deleteRenderbuffer(GlRenderbuffer renderbuffer)

deleteShader

abstract Void deleteShader(GlShader shader)

deleteTexture

abstract Void deleteTexture(GlTexture texture)

depthFunc

abstract Void depthFunc(GlEnum func)

depthMask

abstract Void depthMask(Bool flag)

depthRange

abstract Void depthRange(Float zNear, Float zFar)

detachShader

abstract Void detachShader(GlProgram program, GlShader shader)

disable

abstract Void disable(GlEnum cap)

disableVertexAttribArray

abstract Void disableVertexAttribArray(Int index)

drawArrays

abstract Void drawArrays(GlEnum mode, Int first, Int count)

drawElements

abstract Void drawElements(GlEnum mode, Int count, GlEnum type, Int offset)

enable

abstract Void enable(GlEnum cap)

enableVertexAttribArray

abstract Void enableVertexAttribArray(Int index)

finish

abstract Void finish()

flush

abstract Void flush()

framebufferRenderbuffer

abstract Void framebufferRenderbuffer(GlEnum target, GlEnum attachment, GlEnum renderbuffertarget, GlRenderbuffer renderbuffer)

framebufferTexture2D

abstract Void framebufferTexture2D(GlEnum target, GlEnum attachment, GlEnum textarget, GlTexture texture, Int level)

frontFace

abstract Void frontFace(GlEnum mode)

generateMipmap

abstract Void generateMipmap(GlEnum target)

getAttribLocation

abstract Int getAttribLocation(GlProgram program, Str name)

getProgramParameter

abstract Int getProgramParameter(GlProgram program, GlEnum pname)

getShaderInfoLog

abstract Str getShaderInfoLog(GlShader shader)

getShaderParameter

abstract Int getShaderParameter(GlShader shader, GlEnum pname)

getUniformLocation

abstract GlUniformLocation getUniformLocation(GlProgram program, Str name)

hint

abstract Void hint(GlEnum target, GlEnum mode)

isBuffer

abstract Bool isBuffer(GlBuffer buffer)

isEnabled

abstract Bool isEnabled(GlEnum cap)

isFramebuffer

abstract Bool isFramebuffer(GlFramebuffer framebuffer)

isProgram

abstract Bool isProgram(GlProgram program)

isRenderbuffer

abstract Bool isRenderbuffer(GlRenderbuffer renderbuffer)

isShader

abstract Bool isShader(GlShader shader)

isTexture

abstract Bool isTexture(GlTexture texture)

lineWidth

abstract Void lineWidth(Float width)

linkProgram

abstract Void linkProgram(GlProgram program)

pixelStorei

abstract Void pixelStorei(GlEnum pname, Int param)

polygonOffset

abstract Void polygonOffset(Float factor, Float units)

renderbufferStorage

abstract Void renderbufferStorage(GlEnum target, GlEnum internalformat, Int width, Int height)

sampleCoverage

abstract Void sampleCoverage(Float value, Bool invert)

scissor

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

shaderSource

abstract Void shaderSource(GlShader shader, Str source)

stencilFunc

abstract Void stencilFunc(GlEnum func, Int ref, Int mask)

stencilFuncSeparate

abstract Void stencilFuncSeparate(GlEnum face, GlEnum func, Int ref, Int mask)

stencilMask

abstract Void stencilMask(Int mask)

stencilMaskSeparate

abstract Void stencilMaskSeparate(GlEnum face, Int mask)

stencilOp

abstract Void stencilOp(GlEnum fail, GlEnum zfail, GlEnum zpass)

stencilOpSeparate

abstract Void stencilOpSeparate(GlEnum face, GlEnum fail, GlEnum zfail, GlEnum zpass)

texImage2D

abstract Void texImage2D(GlEnum target, Int level, GlEnum internalformat, GlEnum format, GlEnum type, GlImage image)

texImage2DBuffer

abstract Void texImage2DBuffer(GlEnum target, Int level, GlEnum internalformat, Int width, Int height, Int border, GlEnum format, GlEnum type, ArrayBuffer pixels)

texParameterf

abstract Void texParameterf(GlEnum target, GlEnum pname, Float param)

texParameteri

abstract Void texParameteri(GlEnum target, GlEnum pname, Int param)

uniform1f

abstract Void uniform1f(GlUniformLocation location, Float x)

uniform1i

abstract Void uniform1i(GlUniformLocation location, Int x)

uniform2f

abstract Void uniform2f(GlUniformLocation location, Float x, Float y)

uniform2i

abstract Void uniform2i(GlUniformLocation location, Int x, Int y)

uniform3f

abstract Void uniform3f(GlUniformLocation location, Float x, Float y, Float z)

uniform3i

abstract Void uniform3i(GlUniformLocation location, Int x, Int y, Int z)

uniform4f

abstract Void uniform4f(GlUniformLocation location, Float x, Float y, Float z, Float w)

uniform4i

abstract Void uniform4i(GlUniformLocation location, Int x, Int y, Int z, Int w)

uniformMatrix4fv

abstract Void uniformMatrix4fv(GlUniformLocation location, Bool transpose, ArrayBuffer value)

useProgram

abstract Void useProgram(GlProgram program)

validateProgram

abstract Void validateProgram(GlProgram program)

vertexAttrib1f

abstract Void vertexAttrib1f(Int indx, Float x)

vertexAttrib2f

abstract Void vertexAttrib2f(Int indx, Float x, Float y)

vertexAttrib3f

abstract Void vertexAttrib3f(Int indx, Float x, Float y, Float z)

vertexAttrib4f

abstract Void vertexAttrib4f(Int indx, Float x, Float y, Float z, Float w)

vertexAttribPointer

abstract Void vertexAttribPointer(Int indx, Int size, GlEnum type, Bool normalized, Int stride, Int offset)

viewport

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