Interface WebGLRenderingContext
- All Superinterfaces:
OpaqueReferenceType
-
Method Summary
Modifier and TypeMethodDescriptionvoid
activeTexture
(int texture) void
attachShader
(WebGLProgram program, WebGLShader shader) void
bindAttribLocation
(WebGLProgram program, int index, String name) void
bindBuffer
(int target, WebGLBuffer buffer) void
bindFramebuffer
(int target, WebGLFrameBuffer framebuffer) void
bindRenderbuffer
(int target, WebGLRenderBuffer renderbuffer) void
bindTexture
(int target, WebGLTexture texture) void
blendColor
(float red, float green, float blue, float alpha) void
blendEquation
(int mode) void
blendEquationSeparate
(int modeRGB, int modeAlpha) void
blendFunc
(int sfactor, int dfactor) void
blendFuncSeparate
(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha) void
bufferData
(int target, FloatArray data, int usage) void
bufferData
(int target, Int16Array data, int usage) void
bufferSubData
(int target, int offset, int size, Int8Array data) void
bufferSubData
(int target, int offset, FloatArray data) void
bufferSubData
(int target, int offset, Int16Array data) int
checkFramebufferStatus
(int target) void
clear
(int mask) void
clearColor
(float red, float blue, float green, float alpha) void
clearDepth
(float depth) void
clearStencil
(int s) void
colorMask
(boolean red, boolean green, boolean blue, boolean alpha) void
compileShader
(WebGLShader shader) void
compressedTexImage2D
(int target, int level, int internalformat, int width, int height, int border, int imageSize, Int8Array data) void
compressedTexSubImage2D
(int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, Int8Array data) void
copyTexImage2D
(int target, int level, int internalformat, int x, int y, int width, int height, int border) void
copyTexSubImage2D
(int target, int level, int xoffset, int yoffset, int x, int y, int width, int height) createShader
(int type) void
cullFace
(int mode) void
deleteBuffer
(WebGLBuffer buffer) void
deleteBuffers
(int n, IntArray buffers) void
deleteFramebuffer
(WebGLFrameBuffer framebuffer) void
deleteFramebuffers
(int n, IntArray framebuffers) void
deleteProgram
(WebGLProgram program) void
deleteRenderbuffer
(WebGLRenderBuffer renderbuffer) void
deleteRenderbuffers
(int n, IntArray renderbuffers) void
deleteShader
(WebGLShader shader) void
deleteTexture
(WebGLTexture texture) void
deleteTextures
(int n, IntArray textures) void
depthFunc
(int func) void
depthMask
(boolean flag) void
depthRangef
(float zNear, float zFar) void
detachShader
(WebGLProgram program, WebGLShader shader) void
disable
(int cap) void
disableVertexAttribArray
(int index) void
drawArrays
(int mode, int first, int count) void
drawElements
(int mode, int count, int type, int indices) void
drawElements
(int mode, int count, int type, Int8Array indices) void
enable
(int cap) void
enableVertexAttribArray
(int index) void
finish()
void
flush()
void
framebufferRenderbuffer
(int target, int attachment, int renderbuffertarget, WebGLRenderBuffer renderbuffer) void
framebufferTexture2D
(int target, int attachment, int textarget, WebGLTexture texture, int level) void
frontFace
(int mode) void
genBuffers
(int n, IntArray buffers) void
generateMipmap
(int target) void
genFramebuffers
(int n, IntArray framebuffers) void
genRenderbuffers
(int n, IntArray renderbuffers) void
genTextures
(int n, IntArray textures) getActiveAttrib
(WebGLProgram program, int index) getActiveAttrib
(WebGLProgram program, int index, IntArray size, IntArray type) getActiveUniform
(WebGLProgram program, int index) getActiveUniform
(WebGLProgram program, int index, IntArray size, IntArray type) void
getAttachedShaders
(WebGLProgram program, int maxcount, Int8Array count, IntArray shaders) int
getAttribLocation
(WebGLProgram program, String name) void
getBooleanv
(int pname, Int8Array params) void
getBufferParameteriv
(int target, int pname, IntArray params) int
getError()
void
getFloatv
(int pname, FloatArray params) void
getFramebufferAttachmentParameteriv
(int target, int attachment, int pname, IntArray params) void
getIntegerv
(int pname, IntArray params) void
getParameter
(int pname) boolean
getParameterb
(int pname) float
getParameterf
(int pname) int
getParameteri
(int pname) getParameterString
(int pname) getProgramInfoLog
(WebGLProgram program) void
getProgramiv
(WebGLProgram program, int pname, IntArray params) boolean
getProgramParameterBoolean
(WebGLProgram program, int pname) int
getProgramParameterInt
(WebGLProgram program, int pname) void
getRenderbufferParameteriv
(int target, int pname, IntArray params) getShaderInfoLog
(WebGLShader shader) void
getShaderiv
(WebGLShader shader, int pname, IntArray params) boolean
getShaderParameterBoolean
(WebGLShader shader, int pname) int
getShaderParameteri
(WebGLShader shader, int pname) int
getShaderParameterInt
(WebGLShader shader, int pname) void
getShaderPrecisionFormat
(int shadertype, int precisiontype, IntArray range, IntArray precision) getString
(int name) void
getTexParameter
(int target, int pname) void
getTexParameterfv
(int target, int pname, FloatArray params) void
getTexParameteriv
(int target, int pname, IntArray params) void
getUniformfv
(WebGLProgram program, WebGLUniformLocation location, FloatArray params) void
getUniformiv
(WebGLProgram program, WebGLUniformLocation location, IntArray params) getUniformLocation
(WebGLProgram program, String name) void
getVertexAttribfv
(int index, int pname, FloatArray params) void
getVertexAttribiv
(int index, int pname, IntArray params) void
getVertexAttribPointerv
(int index, int pname, Int8Array pointer) void
hint
(int target, int mode) boolean
isBuffer
(WebGLBuffer buffer) boolean
isEnabled
(int cap) boolean
isFramebuffer
(WebGLFrameBuffer framebuffer) isProgram
(WebGLProgram program) boolean
isRenderbuffer
(WebGLRenderBuffer renderbuffer) boolean
isShader
(int shader) boolean
isTexture
(WebGLTexture texture) void
lineWidth
(float width) void
linkProgram
(WebGLProgram program) void
pixelStorei
(int pname, int param) void
polygonOffset
(float factor, float units) void
readPixels
(int x, int y, int width, int height, int format, int type, Int8Array pixels) void
void
renderbufferStorage
(int target, int internalformat, int width, int height) void
sampleCoverage
(float value, boolean invert) void
scissor
(int x, int y, int width, int height) void
shaderBinary
(int n, IntArray shaders, int binaryformat, Int8Array binary, int length) void
shaderSource
(WebGLShader shader, String sourcecode) void
stencilFunc
(int func, int ref, int mask) void
stencilFuncSeparate
(int face, int func, int ref, int mask) void
stencilMask
(int mask) void
stencilMaskSeparate
(int face, int mask) void
stencilOp
(int fail, int zfail, int zpass) void
stencilOpSeparate
(int face, int fail, int zfail, int zpass) void
texImage2D
(int target, int level, int internalformat, int width, int height, int border, int format, int type, Int8Array pixels) void
texImage2D
(int target, int level, int internalformat, int format, int type, HTMLCanvasElement canvas) void
texImage2D
(int target, int level, int internalformat, int format, int type, HTMLImageElement image) void
texParameterf
(int target, int pname, float param) void
texParameterfv
(int target, int pname, FloatArray params) void
texParameteri
(int target, int pname, int param) void
texParameteriv
(int target, int pname, IntArray params) void
texSubImage2D
(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, Int8Array pixels) void
texSubImage2D
(int target, int level, int xoffset, int yoffset, int format, int type, HTMLCanvasElement htmlCanvasElement) void
uniform1f
(WebGLUniformLocation location, float x) void
uniform1fv
(WebGLUniformLocation location, FloatArray v) void
uniform1i
(WebGLUniformLocation location, int x) void
uniform1iv
(WebGLUniformLocation location, int count, IntArray v) void
uniform1iv
(WebGLUniformLocation location, int count, IntArray v, int offset) void
uniform1iv
(WebGLUniformLocation location, IntArray v) void
uniform2f
(WebGLUniformLocation location, float x, float y) void
uniform2fv
(WebGLUniformLocation location, FloatArray v) void
uniform2i
(WebGLUniformLocation location, int x, int y) void
uniform2iv
(WebGLUniformLocation location, IntArray v) void
uniform3f
(WebGLUniformLocation location, float x, float y, float z) void
uniform3fv
(WebGLUniformLocation location, FloatArray v) void
uniform3i
(WebGLUniformLocation location, int x, int y, int z) void
uniform3iv
(WebGLUniformLocation location, IntArray v) void
uniform4f
(WebGLUniformLocation location, float x, float y, float z, float w) void
uniform4fv
(WebGLUniformLocation location, FloatArray v) void
uniform4i
(WebGLUniformLocation location, int x, int y, int z, int w) void
uniform4iv
(WebGLUniformLocation location, IntArray v) void
uniformMatrix2fv
(WebGLUniformLocation location, boolean transpose, FloatArray value) void
uniformMatrix2fv
(WebGLUniformLocation location, int count, boolean transpose, FloatArray value, int offset) void
uniformMatrix3fv
(WebGLUniformLocation location, boolean transpose, FloatArray value) void
uniformMatrix4fv
(WebGLUniformLocation location, boolean transpose, FloatArray value) void
useProgram
(WebGLProgram program) void
validateProgram
(WebGLProgram program) void
vertexAttrib1f
(int index, float x) void
vertexAttrib1fv
(int index, FloatArray values) void
vertexAttrib2f
(int index, float x, float y) void
vertexAttrib2fv
(int index, FloatArray values) void
vertexAttrib3f
(int index, float x, float y, float z) void
vertexAttrib3fv
(int index, FloatArray values) void
vertexAttrib4f
(int index, float x, float y, float z, float w) void
vertexAttrib4fv
(int index, FloatArray values) void
vertexAttribPointer
(int index, int size, int type, boolean normalized, int stride, int ptr) void
vertexAttribPointer
(int index, int size, int type, boolean normalized, int stride, Int8Array ptr) void
viewport
(int x, int y, int width, int height)
-
Method Details
-
clear
void clear(int mask) -
clearDepth
void clearDepth(float depth) -
clearColor
void clearColor(float red, float blue, float green, float alpha) -
uniform3i
-
lineWidth
void lineWidth(float width) -
deleteShader
-
detachShader
-
vertexAttrib3f
void vertexAttrib3f(int index, float x, float y, float z) -
compileShader
-
texParameterfv
-
stencilFunc
void stencilFunc(int func, int ref, int mask) -
deleteFramebuffer
-
createTexture
WebGLTexture createTexture() -
bindAttribLocation
-
enableVertexAttribArray
void enableVertexAttribArray(int index) -
releaseShaderCompiler
void releaseShaderCompiler() -
uniform2f
-
getActiveAttrib
-
getActiveUniform
-
getActiveAttrib
-
createFramebuffer
WebGLFrameBuffer createFramebuffer() -
uniformMatrix2fv
-
uniformMatrix2fv
void uniformMatrix2fv(WebGLUniformLocation location, int count, boolean transpose, FloatArray value, int offset) -
uniform2fv
-
uniform4iv
-
colorMask
void colorMask(boolean red, boolean green, boolean blue, boolean alpha) -
polygonOffset
void polygonOffset(float factor, float units) -
viewport
void viewport(int x, int y, int width, int height) -
getProgramiv
-
getBooleanv
-
getBufferParameteriv
-
deleteTexture
-
getVertexAttribiv
-
vertexAttrib4fv
-
texSubImage2D
void texSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, Int8Array pixels) -
texSubImage2D
void texSubImage2D(int target, int level, int xoffset, int yoffset, int format, int type, HTMLCanvasElement htmlCanvasElement) -
deleteRenderbuffers
-
getTexParameteriv
-
genTextures
-
stencilOpSeparate
void stencilOpSeparate(int face, int fail, int zfail, int zpass) -
uniform2i
-
checkFramebufferStatus
int checkFramebufferStatus(int target) -
deleteTextures
-
bindRenderbuffer
-
texParameteriv
-
vertexAttrib4f
void vertexAttrib4f(int index, float x, float y, float z, float w) -
deleteBuffers
-
getProgramInfoLog
-
isRenderbuffer
-
frontFace
void frontFace(int mode) -
uniform1iv
-
uniform1iv
-
uniform1iv
-
bindTexture
-
getUniformLocation
-
pixelStorei
void pixelStorei(int pname, int param) -
hint
void hint(int target, int mode) -
framebufferRenderbuffer
void framebufferRenderbuffer(int target, int attachment, int renderbuffertarget, WebGLRenderBuffer renderbuffer) -
uniform1f
-
depthMask
void depthMask(boolean flag) -
blendColor
void blendColor(float red, float green, float blue, float alpha) -
uniformMatrix4fv
-
bufferData
-
bufferData
-
validateProgram
-
texParameterf
void texParameterf(int target, int pname, float param) -
isFramebuffer
-
deleteBuffer
-
shaderSource
-
vertexAttrib2fv
-
deleteFramebuffers
-
uniform4fv
-
compressedTexSubImage2D
void compressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, Int8Array data) -
generateMipmap
void generateMipmap(int target) -
deleteProgram
-
framebufferTexture2D
void framebufferTexture2D(int target, int attachment, int textarget, WebGLTexture texture, int level) -
createRenderbuffer
WebGLRenderBuffer createRenderbuffer() -
attachShader
-
bindBuffer
-
shaderBinary
-
disable
void disable(int cap) -
getRenderbufferParameteriv
-
getShaderInfoLog
-
getActiveUniform
-
isShader
boolean isShader(int shader) -
uniform1i
-
blendEquationSeparate
void blendEquationSeparate(int modeRGB, int modeAlpha) -
scissor
void scissor(int x, int y, int width, int height) -
createProgram
WebGLProgram createProgram() -
uniformMatrix3fv
-
getTexParameterfv
-
getTexParameter
void getTexParameter(int target, int pname) -
vertexAttrib1f
void vertexAttrib1f(int index, float x) -
uniform1fv
-
uniform3iv
-
texImage2D
void texImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, Int8Array pixels) -
texImage2D
void texImage2D(int target, int level, int internalformat, int format, int type, HTMLCanvasElement canvas) -
texImage2D
void texImage2D(int target, int level, int internalformat, int format, int type, HTMLImageElement image) -
vertexAttrib3fv
-
blendFunc
void blendFunc(int sfactor, int dfactor) -
isEnabled
boolean isEnabled(int cap) -
getAttribLocation
-
depthRangef
void depthRangef(float zNear, float zFar) -
flush
void flush() -
sampleCoverage
void sampleCoverage(float value, boolean invert) -
copyTexSubImage2D
void copyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x, int y, int width, int height) -
getShaderiv
-
getUniformfv
-
uniform4f
-
depthFunc
void depthFunc(int func) -
isBuffer
-
vertexAttribPointer
void vertexAttribPointer(int index, int size, int type, boolean normalized, int stride, Int8Array ptr) -
vertexAttribPointer
void vertexAttribPointer(int index, int size, int type, boolean normalized, int stride, int ptr) -
stencilMaskSeparate
void stencilMaskSeparate(int face, int mask) -
drawElements
-
drawElements
void drawElements(int mode, int count, int type, int indices) -
texParameteri
void texParameteri(int target, int pname, int param) -
useProgram
-
finish
void finish() -
getIntegerv
-
blendEquation
void blendEquation(int mode) -
uniform4i
-
vertexAttrib1fv
-
uniform3fv
-
vertexAttrib2f
void vertexAttrib2f(int index, float x, float y) -
activeTexture
void activeTexture(int texture) -
cullFace
void cullFace(int mode) -
clearStencil
void clearStencil(int s) -
getFloatv
-
drawArrays
void drawArrays(int mode, int first, int count) -
bindFramebuffer
-
getError
int getError() -
bufferSubData
-
bufferSubData
-
bufferSubData
-
copyTexImage2D
void copyTexImage2D(int target, int level, int internalformat, int x, int y, int width, int height, int border) -
isProgram
-
stencilOp
void stencilOp(int fail, int zfail, int zpass) -
disableVertexAttribArray
void disableVertexAttribArray(int index) -
genBuffers
-
getAttachedShaders
-
genRenderbuffers
-
renderbufferStorage
void renderbufferStorage(int target, int internalformat, int width, int height) -
uniform3f
-
readPixels
-
stencilMask
void stencilMask(int mask) -
blendFuncSeparate
void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha) -
getShaderPrecisionFormat
-
isTexture
-
getVertexAttribfv
-
getVertexAttribPointerv
-
createShader
-
stencilFuncSeparate
void stencilFuncSeparate(int face, int func, int ref, int mask) -
getString
-
compressedTexImage2D
void compressedTexImage2D(int target, int level, int internalformat, int width, int height, int border, int imageSize, Int8Array data) -
uniform2iv
-
createBuffer
WebGLBuffer createBuffer() -
enable
void enable(int cap) -
getUniformiv
-
getFramebufferAttachmentParameteriv
-
deleteRenderbuffer
-
genFramebuffers
-
linkProgram
-
getParameter
void getParameter(int pname) -
getShaderParameteri
-
getParameterf
float getParameterf(int pname) -
getParameteri
int getParameteri(int pname) -
getParameterb
boolean getParameterb(int pname) -
getParameterString
-
getShaderParameterBoolean
-
getShaderParameterInt
-
getProgramParameterBoolean
-
getProgramParameterInt
-