@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="WebGLRenderingContext")
public class WebGLRenderingContext
extends JsObject
implements RenderingContext
| Modifier | Constructor and Description |
|---|---|
protected |
WebGLRenderingContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
activeTexture(int texture)
The WebGLRenderingContext.activeTexture() method of the WebGL API specifies which texture unit to make active.
|
void |
attachShader(WebGLProgram program,
WebGLShader shader)
The WebGLRenderingContext.attachShader() method of the WebGL API attaches either a fragment or vertex WebGLShader to a WebGLProgram.
|
void |
bindAttribLocation(WebGLProgram program,
int index,
java.lang.String name)
The WebGLRenderingContext.bindAttribLocation() method of the WebGL API binds a generic vertex index to an attribute variable.
|
void |
bindBuffer(int target,
WebGLBuffer buffer)
The WebGLRenderingContext.bindBuffer() method of the WebGL API binds a given WebGLBuffer to a target.
|
void |
bindFramebuffer(int target,
WebGLFramebuffer framebuffer)
The WebGLRenderingContext.bindFramebuffer() method of the WebGL API binds a given WebGLFramebuffer to a target.
|
void |
bindRenderbuffer(int target,
WebGLRenderbuffer renderbuffer)
The WebGLRenderingContext.bindRenderbuffer() method of the WebGL API binds a given WebGLRenderbuffer to a target, which must be gl.RENDERBUFFER.
|
void |
bindTexture(int target,
WebGLTexture texture)
The WebGLRenderingContext.bindTexture() method of the WebGL API binds a given WebGLTexture to a target (binding point).
|
void |
blendColor(float red,
float green,
float blue,
float alpha)
The WebGLRenderingContext.blendColor() method of the WebGL API is used to set the source and destination blending factors.
|
void |
blendEquation(int mode)
The WebGLRenderingContext.blendEquation() method of the WebGL API is used to set both the RGB blend equation and alpha blend equation to a single equation.
|
void |
blendEquationSeparate(int modeRGB,
int modeAlpha)
The WebGLRenderingContext.blendEquationSeparate() method of the WebGL API is used to set the RGB blend equation and alpha blend equation separately.
|
void |
blendFunc(int sfactor,
int dfactor)
The WebGLRenderingContext.blendFunc() method of the WebGL API defines which function is used for blending pixel arithmetic.
|
void |
blendFuncSeparate(int srcRGB,
int dstRGB,
int srcAlpha,
int dstAlpha)
The WebGLRenderingContext.blendFuncSeparate() method of the WebGL API defines which function is used for blending pixel arithmetic for RGB and alpha components separately.
|
void |
bufferData(int target,
BufferSource data,
int usage)
The WebGLRenderingContext.bufferData() method of the WebGL API initializes and creates the buffer object's data store.
|
void |
bufferData(int target,
int size,
int usage)
The WebGLRenderingContext.bufferData() method of the WebGL API initializes and creates the buffer object's data store.
|
void |
bufferSubData(int target,
int offset,
BufferSource data)
The WebGLRenderingContext.bufferSubData() method of the WebGL API updates a subset of a buffer object's data store.
|
int |
checkFramebufferStatus(int target)
The WebGLRenderingContext.checkFramebufferStatus() method of the WebGL API returns the completeness status of the WebGLFramebuffer object.
|
void |
clear(int mask)
The WebGLRenderingContext.clear() method of the WebGL API clears buffers to preset values.
|
void |
clearColor(float red,
float green,
float blue,
float alpha)
The WebGLRenderingContext.clearColor() method of the WebGL API specifies the color values used when clearing color buffers.
|
void |
clearDepth(float depth)
The WebGLRenderingContext.clearDepth() method of the WebGL API specifies the clear value for the depth buffer.
|
void |
clearStencil(int s)
The WebGLRenderingContext.clearStencil() method of the WebGL API specifies the clear value for the stencil buffer.
|
void |
colorMask(boolean red,
boolean green,
boolean blue,
boolean alpha)
The WebGLRenderingContext.colorMask() method of the WebGL API sets which color components to enable or to disable when drawing or rendering to a WebGLFramebuffer.
|
void |
compileShader(WebGLShader shader)
The WebGLRenderingContext.compileShader() method of the WebGL API compiles a GLSL shader into binary data so that it can be used by a WebGLProgram.
|
void |
compressedTexImage2D(int target,
int level,
int internalformat,
int width,
int height,
int border,
ArrayBufferView data) |
void |
compressedTexSubImage2D(int target,
int level,
int xoffset,
int yoffset,
int width,
int height,
int format,
ArrayBufferView data)
The WebGLRenderingContext.compressedTexSubImage2D() method of the WebGL API specifies a two-dimensional sub-rectangle for a texture image in a compressed format.
|
void |
copyTexImage2D(int target,
int level,
int internalformat,
int x,
int y,
int width,
int height,
int border)
The WebGLRenderingContext.copyTexImage2D() method of the WebGL API copies pixels from the current WebGLFramebuffer into a 2D texture image.
|
void |
copyTexSubImage2D(int target,
int level,
int xoffset,
int yoffset,
int x,
int y,
int width,
int height)
The WebGLRenderingContext.copyTexSubImage2D() method of the WebGL API copies pixels from the current WebGLFramebuffer into an existing 2D texture sub-image.
|
WebGLBuffer |
createBuffer()
The WebGLRenderingContext.createBuffer() method of the WebGL API creates and initializes a WebGLBuffer storing data such as vertices or colors.
|
WebGLFramebuffer |
createFramebuffer()
The WebGLRenderingContext.createFramebuffer() method of the WebGL API creates and initializes a WebGLFramebuffer object.
|
WebGLProgram |
createProgram()
The WebGLRenderingContext.createProgram() method of the WebGL API creates and initializes a WebGLProgram object.
|
WebGLRenderbuffer |
createRenderbuffer()
The WebGLRenderingContext.createRenderbuffer() method of the WebGL API creates and initializes a WebGLRenderbuffer object.
|
WebGLShader |
createShader(int type)
The WebGLRenderingContext method createShader() of the WebGL API creates a WebGLShader that can then be configured further using WebGLRenderingContext.shaderSource() and WebGLRenderingContext.compileShader().
|
WebGLTexture |
createTexture()
The WebGLRenderingContext.createTexture() method of the WebGL API creates and initializes a WebGLTexture object.
|
void |
cullFace(int mode)
The WebGLRenderingContext.cullFace() method of the WebGL API specifies whether or not front- and/or back-facing polygons can be culled.
|
void |
deleteBuffer(WebGLBuffer buffer)
The WebGLRenderingContext.deleteBuffer() method of the WebGL API deletes a given WebGLBuffer.
|
void |
deleteFramebuffer(WebGLFramebuffer framebuffer)
The WebGLRenderingContext.deleteFramebuffer() method of the WebGL API deletes a given WebGLFramebuffer object.
|
void |
deleteProgram(WebGLProgram program)
The WebGLRenderingContext.deleteProgram() method of the WebGL API deletes a given WebGLProgram object.
|
void |
deleteRenderbuffer(WebGLRenderbuffer renderbuffer)
The WebGLRenderingContext.deleteRenderbuffer() method of the WebGL API deletes a given WebGLRenderbuffer object.
|
void |
deleteShader(WebGLShader shader)
The WebGLRenderingContext.deleteShader() method of the WebGL API marks a given WebGLShader object for deletion.
|
void |
deleteTexture(WebGLTexture texture)
The WebGLRenderingContext.deleteTexture() method of the WebGL API deletes a given WebGLTexture object.
|
void |
depthFunc(int func)
The WebGLRenderingContext.depthFunc() method of the WebGL API specifies a function that compares incoming pixel depth to the current depth buffer value.
|
void |
depthMask(boolean flag)
The WebGLRenderingContext.depthMask() method of the WebGL API sets whether writing into the depth buffer is enabled or disabled.
|
void |
depthRange(float zNear,
float zFar)
The WebGLRenderingContext.depthRange() method of the WebGL API specifies the depth range mapping from normalized device coordinates to window or viewport coordinates.
|
void |
detachShader(WebGLProgram program,
WebGLShader shader)
The WebGLRenderingContext.detachShader() method of the WebGL API detaches a previously attached WebGLShader from a WebGLProgram.
|
void |
disable(int cap)
The WebGLRenderingContext.disable() method of the WebGL API disables specific WebGL capabilities for this context.
|
void |
disableVertexAttribArray(int index)
The WebGLRenderingContext.disableVertexAttribArray() method of the WebGL API turns the generic vertex attribute array off at a given index position.
|
void |
drawArrays(int mode,
int first,
int count)
The WebGLRenderingContext.drawArrays() method of the WebGL API renders primitives from array data.
|
void |
drawElements(int mode,
int count,
int type,
int offset)
The WebGLRenderingContext.drawElements() method of the WebGL API renders primitives from array data.
|
int |
drawingBufferHeight()
The read-only WebGLRenderingContext.drawingBufferHeight property represents the actual height of the current drawing buffer.
|
int |
drawingBufferWidth()
The read-only WebGLRenderingContext.drawingBufferWidth property represents the actual width of the current drawing buffer.
|
void |
enable(int cap)
The WebGLRenderingContext.enable() method of the WebGL API enables specific WebGL capabilities for this context.
|
void |
enableVertexAttribArray(int index)
The WebGLRenderingContext method enableVertexAttribArray(), part of the WebGL API, turns on the generic vertex attribute array at the specified index into the list of attribute arrays.
|
void |
finish()
The WebGLRenderingContext.finish() method of the WebGL API blocks execution until all previously called commands are finished.
|
void |
flush()
The WebGLRenderingContext.flush() method of the WebGL API empties different buffer commands, causing all commands to be executed as quickly as possible.
|
void |
framebufferRenderbuffer(int target,
int attachment,
int renderbuffertarget,
WebGLRenderbuffer renderbuffer)
The WebGLRenderingContext.framebufferRenderbuffer() method of the WebGL API attaches a WebGLRenderbuffer object to a WebGLFramebuffer object.
|
void |
framebufferTexture2D(int target,
int attachment,
int textarget,
WebGLTexture texture,
int level)
The WebGLRenderingContext.framebufferTexture2D() method of the WebGL API attaches a texture to a WebGLFramebuffer.
|
void |
frontFace(int mode)
The WebGLRenderingContext.frontFace() method of the WebGL API specifies whether polygons are front- or back-facing by setting a winding orientation.
|
void |
generateMipmap(int target)
The WebGLRenderingContext.generateMipmap() method of the WebGL API generates a set of mipmaps for a WebGLTexture object.
|
WebGLActiveInfo |
getActiveAttrib(WebGLProgram program,
int index)
The WebGLRenderingContext.getActiveAttrib() method of the WebGL API returns a WebGLActiveInfo object containing size, type, and name of a vertex attribute.
|
WebGLActiveInfo |
getActiveUniform(WebGLProgram program,
int index)
The WebGLRenderingContext.getActiveUniform() method of the WebGL API returns a WebGLActiveInfo object containing size, type, and name of a uniform attribute.
|
JsArray<WebGLShader> |
getAttachedShaders(WebGLProgram program)
The WebGLRenderingContext.getAttachedShaders() method of the WebGL API returns a list of WebGLShader objects attached to a WebGLProgram.
|
int |
getAttribLocation(WebGLProgram program,
java.lang.String name)
The WebGLRenderingContext.getAttribLocation() method of the WebGL API returns the location of an attribute variable in a given WebGLProgram.
|
jsinterop.base.Any |
getBufferParameter(int target,
int pname)
The WebGLRenderingContext.getBufferParameter() method of the WebGL API returns information about the buffer.
|
WebGLContextAttributes |
getContextAttributes()
The WebGLRenderingContext.getContextAttributes() method returns a WebGLContextAttributes object that contains the actual context parameters.
|
int |
getError()
The WebGLRenderingContext.getError() method of the WebGL API returns error information.
|
JsObject |
getExtension(java.lang.String name)
The WebGLRenderingContext.getExtension() method enables a WebGL extension.
|
jsinterop.base.Any |
getFramebufferAttachmentParameter(int target,
int attachment,
int pname)
The WebGLRenderingContext.getFramebufferAttachmentParameter() method of the WebGL API returns information about a framebuffer's attachment.
|
jsinterop.base.Any |
getParameter(int pname)
The WebGLRenderingContext.getParameter() method of the WebGL API returns a value for the passed parameter name.
|
java.lang.String |
getProgramInfoLog(WebGLProgram program)
The WebGLRenderingContext.getProgramInfoLog returns the information log for the specified WebGLProgram object.
|
jsinterop.base.Any |
getProgramParameter(WebGLProgram program,
int pname)
The WebGLRenderingContext.getProgramParameter() method of the WebGL API returns information about the given program.
|
jsinterop.base.Any |
getRenderbufferParameter(int target,
int pname)
The WebGLRenderingContext.getRenderbufferParameter() method of the WebGL API returns information about the renderbuffer.
|
java.lang.String |
getShaderInfoLog(WebGLShader shader)
The WebGLRenderingContext.getShaderInfoLog returns the information log for the specified WebGLShader object.
|
jsinterop.base.Any |
getShaderParameter(WebGLShader shader,
int pname)
The WebGLRenderingContext.getShaderParameter() method of the WebGL API returns information about the given shader.
|
WebGLShaderPrecisionFormat |
getShaderPrecisionFormat(int shadertype,
int precisiontype)
The WebGLRenderingContext.getShaderPrecisionFormat() method of the WebGL API returns a new WebGLShaderPrecisionFormat object describing the range and precision for the specified shader numeric format.
|
java.lang.String |
getShaderSource(WebGLShader shader)
The WebGLRenderingContext.getShaderSource() method of the WebGL API returns the source code of a WebGLShader as a DOMString.
|
JsArray<java.lang.String> |
getSupportedExtensions()
The WebGLRenderingContext.getSupportedExtensions() method returns a list of all the supported WebGL extensions.
|
jsinterop.base.Any |
getTexParameter(int target,
int pname)
The WebGLRenderingContext.getTexParameter() method of the WebGL API returns information about the given texture.
|
jsinterop.base.Any |
getUniform(WebGLProgram program,
WebGLUniformLocation location)
The WebGLRenderingContext.getUniform() method of the WebGL API returns the value of a uniform variable at a given location.
|
WebGLUniformLocation |
getUniformLocation(WebGLProgram program,
java.lang.String name)
Part of the WebGL API, the WebGLRenderingContext method getUniformLocation() returns the location of a specific uniform variable which is part of a given WebGLProgram.
|
jsinterop.base.Any |
getVertexAttrib(int index,
int pname)
The WebGLRenderingContext.getVertexAttrib() method of the WebGL API returns information about a vertex attribute at a given position.
|
int |
getVertexAttribOffset(int index,
int pname)
The WebGLRenderingContext.getVertexAttribOffset() method of the WebGL API returns the address of a specified vertex attribute.
|
void |
hint(int target,
int mode)
The WebGLRenderingContext.hint() method of the WebGL API specifies hints for certain behaviors.
|
boolean |
isBuffer(WebGLBuffer buffer)
The WebGLRenderingContext.isBuffer() method of the WebGL API returns true if the passed WebGLBuffer is valid and false otherwise.
|
boolean |
isContextLost()
The WebGLRenderingContext.isContextLost() method returns a Boolean indicating whether or not the WebGL context has been lost and must be re-established before rendering can resume.
|
boolean |
isEnabled(int cap)
The WebGLRenderingContext.isEnabled() method of the WebGL API tests whether a specific WebGL capability is enabled or not for this context.
|
boolean |
isFramebuffer(WebGLFramebuffer framebuffer)
The WebGLRenderingContext.isFramebuffer() method of the WebGL API returns true if the passed WebGLFramebuffer is valid and false otherwise.
|
boolean |
isProgram(WebGLProgram program)
The WebGLRenderingContext.isProgram() method of the WebGL API returns true if the passed WebGLProgram is valid, false otherwise.
|
boolean |
isRenderbuffer(WebGLRenderbuffer renderbuffer)
The WebGLRenderingContext.isRenderbuffer() method of the WebGL API returns true if the passed WebGLRenderbuffer is valid and false otherwise.
|
boolean |
isShader(WebGLShader shader)
The WebGLRenderingContext.isShader() method of the WebGL API returns true if the passed WebGLShader is valid, false otherwise.
|
boolean |
isTexture(WebGLTexture texture)
The WebGLRenderingContext.isTexture() method of the WebGL API returns true if the passed WebGLTexture is valid and false otherwise.
|
void |
lineWidth(float width)
The WebGLRenderingContext.lineWidth() method of the WebGL API sets the line width of rasterized lines.
|
void |
linkProgram(WebGLProgram program)
The WebGLRenderingContext interface's linkProgram() method links a given WebGLProgram, completing the process of preparing the GPU code for the program's fragment and vertex shaders.
|
Promise<java.lang.Void> |
makeXRCompatible() |
void |
pixelStorei(int pname,
int param)
The WebGLRenderingContext.pixelStorei() method of the WebGL API specifies the pixel storage modes.
|
void |
polygonOffset(float factor,
float units)
The WebGLRenderingContext.polygonOffset() method of the WebGL API specifies the scale factors and units to calculate depth values.
|
void |
readPixels(int x,
int y,
int width,
int height,
int format,
int type,
ArrayBufferView pixels)
The WebGLRenderingContext.readPixels() method of the WebGL API reads a block of pixels from a specified rectangle of the current color framebuffer into an ArrayBufferView object.
|
void |
renderbufferStorage(int target,
int internalformat,
int width,
int height)
The WebGLRenderingContext.renderbufferStorage() method of the WebGL API creates and initializes a renderbuffer object's data store.
|
void |
sampleCoverage(float value,
boolean invert)
The WebGLRenderingContext.sampleCoverage() method of the WebGL API specifies multi-sample coverage parameters for anti-aliasing effects.
|
void |
scissor(int x,
int y,
int width,
int height)
The WebGLRenderingContext.scissor() method of the WebGL API sets a scissor box, which limits the drawing to a specified rectangle.
|
void |
shaderSource(WebGLShader shader,
java.lang.String source)
The WebGLRenderingContext.shaderSource() method of the WebGL API sets the source code of a WebGLShader.
|
void |
stencilFunc(int func,
int ref,
int mask)
The WebGLRenderingContext.stencilFunc() method of the WebGL API sets the front and back function and reference value for stencil testing.
|
void |
stencilFuncSeparate(int face,
int func,
int ref,
int mask)
The WebGLRenderingContext.stencilFuncSeparate() method of the WebGL API sets the front and/or back function and reference value for stencil testing.
|
void |
stencilMask(int mask)
The WebGLRenderingContext.stencilMask() method of the WebGL API controls enabling and disabling of both the front and back writing of individual bits in the stencil planes.
|
void |
stencilMaskSeparate(int face,
int mask)
The WebGLRenderingContext.stencilMaskSeparate() method of the WebGL API controls enabling and disabling of front and/or back writing of individual bits in the stencil planes.
|
void |
stencilOp(int fail,
int zfail,
int zpass)
The WebGLRenderingContext.stencilOp() method of the WebGL API sets both the front and back-facing stencil test actions.
|
void |
stencilOpSeparate(int face,
int fail,
int zfail,
int zpass)
The WebGLRenderingContext.stencilOpSeparate() method of the WebGL API sets the front and/or back-facing stencil test actions.
|
void |
texImage2D(int target,
int level,
int internalformat,
int width,
int height,
int border,
int format,
int type,
ArrayBufferView pixels)
The WebGLRenderingContext.texImage2D() method of the WebGL API specifies a two-dimensional texture image.
|
void |
texImage2D(int target,
int level,
int internalformat,
int format,
int type,
TexImageSource source)
The WebGLRenderingContext.texImage2D() method of the WebGL API specifies a two-dimensional texture image.
|
void |
texParameterf(int target,
int pname,
float param) |
void |
texParameteri(int target,
int pname,
int param) |
void |
texSubImage2D(int target,
int level,
int xoffset,
int yoffset,
int width,
int height,
int format,
int type,
ArrayBufferView pixels)
The WebGLRenderingContext.texSubImage2D() method of the WebGL API specifies a sub-rectangle of the current texture.
|
void |
texSubImage2D(int target,
int level,
int xoffset,
int yoffset,
int format,
int type,
TexImageSource source)
The WebGLRenderingContext.texSubImage2D() method of the WebGL API specifies a sub-rectangle of the current texture.
|
void |
uniform1f(WebGLUniformLocation location,
float x) |
void |
uniform1fv(WebGLUniformLocation location,
double[] v) |
void |
uniform1fv(WebGLUniformLocation location,
Float32Array v) |
void |
uniform1fv(WebGLUniformLocation location,
Float32List v) |
void |
uniform1fv(WebGLUniformLocation location,
JsArray<java.lang.Double> v) |
void |
uniform1i(WebGLUniformLocation location,
int x) |
void |
uniform1iv(WebGLUniformLocation location,
double[] v) |
void |
uniform1iv(WebGLUniformLocation location,
Int32Array v) |
void |
uniform1iv(WebGLUniformLocation location,
Int32List v) |
void |
uniform1iv(WebGLUniformLocation location,
JsArray<java.lang.Double> v) |
void |
uniform2f(WebGLUniformLocation location,
float x,
float y) |
void |
uniform2fv(WebGLUniformLocation location,
double[] v) |
void |
uniform2fv(WebGLUniformLocation location,
Float32Array v) |
void |
uniform2fv(WebGLUniformLocation location,
Float32List v) |
void |
uniform2fv(WebGLUniformLocation location,
JsArray<java.lang.Double> v) |
void |
uniform2i(WebGLUniformLocation location,
int x,
int y) |
void |
uniform2iv(WebGLUniformLocation location,
double[] v) |
void |
uniform2iv(WebGLUniformLocation location,
Int32Array v) |
void |
uniform2iv(WebGLUniformLocation location,
Int32List v) |
void |
uniform2iv(WebGLUniformLocation location,
JsArray<java.lang.Double> v) |
void |
uniform3f(WebGLUniformLocation location,
float x,
float y,
float z) |
void |
uniform3fv(WebGLUniformLocation location,
double[] v) |
void |
uniform3fv(WebGLUniformLocation location,
Float32Array v) |
void |
uniform3fv(WebGLUniformLocation location,
Float32List v) |
void |
uniform3fv(WebGLUniformLocation location,
JsArray<java.lang.Double> v) |
void |
uniform3i(WebGLUniformLocation location,
int x,
int y,
int z) |
void |
uniform3iv(WebGLUniformLocation location,
double[] v) |
void |
uniform3iv(WebGLUniformLocation location,
Int32Array v) |
void |
uniform3iv(WebGLUniformLocation location,
Int32List v) |
void |
uniform3iv(WebGLUniformLocation location,
JsArray<java.lang.Double> v) |
void |
uniform4f(WebGLUniformLocation location,
float x,
float y,
float z,
float w) |
void |
uniform4fv(WebGLUniformLocation location,
double[] v) |
void |
uniform4fv(WebGLUniformLocation location,
Float32Array v) |
void |
uniform4fv(WebGLUniformLocation location,
Float32List v) |
void |
uniform4fv(WebGLUniformLocation location,
JsArray<java.lang.Double> v) |
void |
uniform4i(WebGLUniformLocation location,
int x,
int y,
int z,
int w) |
void |
uniform4iv(WebGLUniformLocation location,
double[] v) |
void |
uniform4iv(WebGLUniformLocation location,
Int32Array v) |
void |
uniform4iv(WebGLUniformLocation location,
Int32List v) |
void |
uniform4iv(WebGLUniformLocation location,
JsArray<java.lang.Double> v) |
void |
uniformMatrix2fv(WebGLUniformLocation location,
boolean transpose,
double[] value) |
void |
uniformMatrix2fv(WebGLUniformLocation location,
boolean transpose,
Float32Array value) |
void |
uniformMatrix2fv(WebGLUniformLocation location,
boolean transpose,
Float32List value) |
void |
uniformMatrix2fv(WebGLUniformLocation location,
boolean transpose,
JsArray<java.lang.Double> value) |
void |
uniformMatrix3fv(WebGLUniformLocation location,
boolean transpose,
double[] value) |
void |
uniformMatrix3fv(WebGLUniformLocation location,
boolean transpose,
Float32Array value) |
void |
uniformMatrix3fv(WebGLUniformLocation location,
boolean transpose,
Float32List value) |
void |
uniformMatrix3fv(WebGLUniformLocation location,
boolean transpose,
JsArray<java.lang.Double> value) |
void |
uniformMatrix4fv(WebGLUniformLocation location,
boolean transpose,
double[] value) |
void |
uniformMatrix4fv(WebGLUniformLocation location,
boolean transpose,
Float32Array value) |
void |
uniformMatrix4fv(WebGLUniformLocation location,
boolean transpose,
Float32List value) |
void |
uniformMatrix4fv(WebGLUniformLocation location,
boolean transpose,
JsArray<java.lang.Double> value) |
void |
useProgram(WebGLProgram program)
The WebGLRenderingContext.useProgram() method of the WebGL API sets the specified WebGLProgram as part of the current rendering state.
|
void |
validateProgram(WebGLProgram program)
The WebGLRenderingContext.validateProgram() method of the WebGL API validates a WebGLProgram.
|
void |
vertexAttrib1f(int index,
float x) |
void |
vertexAttrib1fv(int index,
double[] values) |
void |
vertexAttrib1fv(int index,
Float32Array values) |
void |
vertexAttrib1fv(int index,
Float32List values) |
void |
vertexAttrib1fv(int index,
JsArray<java.lang.Double> values) |
void |
vertexAttrib2f(int index,
float x,
float y) |
void |
vertexAttrib2fv(int index,
double[] values) |
void |
vertexAttrib2fv(int index,
Float32Array values) |
void |
vertexAttrib2fv(int index,
Float32List values) |
void |
vertexAttrib2fv(int index,
JsArray<java.lang.Double> values) |
void |
vertexAttrib3f(int index,
float x,
float y,
float z) |
void |
vertexAttrib3fv(int index,
double[] values) |
void |
vertexAttrib3fv(int index,
Float32Array values) |
void |
vertexAttrib3fv(int index,
Float32List values) |
void |
vertexAttrib3fv(int index,
JsArray<java.lang.Double> values) |
void |
vertexAttrib4f(int index,
float x,
float y,
float z,
float w) |
void |
vertexAttrib4fv(int index,
double[] values) |
void |
vertexAttrib4fv(int index,
Float32Array values) |
void |
vertexAttrib4fv(int index,
Float32List values) |
void |
vertexAttrib4fv(int index,
JsArray<java.lang.Double> values) |
void |
vertexAttribPointer(int index,
int size,
int type,
boolean normalized,
int stride,
int offset)
The WebGLRenderingContext.vertexAttribPointer() method of the WebGL API binds the buffer currently bound to gl.ARRAY_BUFFER to a generic vertex attribute of the current vertex buffer object and specifies its layout.
|
void |
viewport(int x,
int y,
int width,
int height)
The WebGLRenderingContext.viewport() method of the WebGL API sets the viewport, which specifies the affine transformation of x and y from normalized device coordinates to window coordinates.
|
assign, create, create, defineProperties, defineProperty, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyDescriptor, getOwnPropertyDescriptors, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, is, isExtensible, isFrozen, isSealed, keys, preventExtensions, seal, setPrototypeOf, valueOf_, values@JsOverlay public static final int ACTIVE_ATTRIBUTES
@JsOverlay public static final int ACTIVE_TEXTURE
@JsOverlay public static final int ACTIVE_UNIFORMS
@JsOverlay public static final int ALIASED_LINE_WIDTH_RANGE
@JsOverlay public static final int ALIASED_POINT_SIZE_RANGE
@JsOverlay public static final int ALPHA
@JsOverlay public static final int ALPHA_BITS
@JsOverlay public static final int ALWAYS
@JsOverlay public static final int ARRAY_BUFFER
@JsOverlay public static final int ARRAY_BUFFER_BINDING
@JsOverlay public static final int ATTACHED_SHADERS
@JsOverlay public static final int BACK
@JsOverlay public static final int BLEND
@JsOverlay public static final int BLEND_COLOR
@JsOverlay public static final int BLEND_DST_ALPHA
@JsOverlay public static final int BLEND_DST_RGB
@JsOverlay public static final int BLEND_EQUATION
@JsOverlay public static final int BLEND_EQUATION_ALPHA
@JsOverlay public static final int BLEND_EQUATION_RGB
@JsOverlay public static final int BLEND_SRC_ALPHA
@JsOverlay public static final int BLEND_SRC_RGB
@JsOverlay public static final int BLUE_BITS
@JsOverlay public static final int BOOL
@JsOverlay public static final int BOOL_VEC2
@JsOverlay public static final int BOOL_VEC3
@JsOverlay public static final int BOOL_VEC4
@JsOverlay public static final int BROWSER_DEFAULT_WEBGL
@JsOverlay public static final int BUFFER_SIZE
@JsOverlay public static final int BUFFER_USAGE
@JsOverlay public static final int BYTE
@JsOverlay public static final int CCW
@JsOverlay public static final int CLAMP_TO_EDGE
@JsOverlay public static final int COLOR_ATTACHMENT0
@JsOverlay public static final int COLOR_BUFFER_BIT
@JsOverlay public static final int COLOR_CLEAR_VALUE
@JsOverlay public static final int COLOR_WRITEMASK
@JsOverlay public static final int COMPILE_STATUS
@JsOverlay public static final int COMPRESSED_TEXTURE_FORMATS
@JsOverlay public static final int CONSTANT_ALPHA
@JsOverlay public static final int CONSTANT_COLOR
@JsOverlay public static final int CONTEXT_LOST_WEBGL
@JsOverlay public static final int CULL_FACE
@JsOverlay public static final int CULL_FACE_MODE
@JsOverlay public static final int CURRENT_PROGRAM
@JsOverlay public static final int CURRENT_VERTEX_ATTRIB
@JsOverlay public static final int CW
@JsOverlay public static final int DECR
@JsOverlay public static final int DECR_WRAP
@JsOverlay public static final int DELETE_STATUS
@JsOverlay public static final int DEPTH_ATTACHMENT
@JsOverlay public static final int DEPTH_BITS
@JsOverlay public static final int DEPTH_BUFFER_BIT
@JsOverlay public static final int DEPTH_CLEAR_VALUE
@JsOverlay public static final int DEPTH_COMPONENT
@JsOverlay public static final int DEPTH_COMPONENT16
@JsOverlay public static final int DEPTH_FUNC
@JsOverlay public static final int DEPTH_RANGE
@JsOverlay public static final int DEPTH_STENCIL
@JsOverlay public static final int DEPTH_STENCIL_ATTACHMENT
@JsOverlay public static final int DEPTH_TEST
@JsOverlay public static final int DEPTH_WRITEMASK
@JsOverlay public static final int DITHER
@JsOverlay public static final int DONT_CARE
@JsOverlay public static final int DST_ALPHA
@JsOverlay public static final int DST_COLOR
@JsOverlay public static final int DYNAMIC_DRAW
@JsOverlay public static final int ELEMENT_ARRAY_BUFFER
@JsOverlay public static final int ELEMENT_ARRAY_BUFFER_BINDING
@JsOverlay public static final int EQUAL
@JsOverlay public static final int FASTEST
@JsOverlay public static final int FLOAT
@JsOverlay public static final int FLOAT_MAT2
@JsOverlay public static final int FLOAT_MAT3
@JsOverlay public static final int FLOAT_MAT4
@JsOverlay public static final int FLOAT_VEC2
@JsOverlay public static final int FLOAT_VEC3
@JsOverlay public static final int FLOAT_VEC4
@JsOverlay public static final int FRAGMENT_SHADER
@JsOverlay public static final int FRAMEBUFFER
@JsOverlay public static final int FRAMEBUFFER_ATTACHMENT_OBJECT_NAME
@JsOverlay public static final int FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE
@JsOverlay public static final int FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE
@JsOverlay public static final int FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL
@JsOverlay public static final int FRAMEBUFFER_BINDING
@JsOverlay public static final int FRAMEBUFFER_COMPLETE
@JsOverlay public static final int FRAMEBUFFER_INCOMPLETE_ATTACHMENT
@JsOverlay public static final int FRAMEBUFFER_INCOMPLETE_DIMENSIONS
@JsOverlay public static final int FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT
@JsOverlay public static final int FRAMEBUFFER_UNSUPPORTED
@JsOverlay public static final int FRONT
@JsOverlay public static final int FRONT_AND_BACK
@JsOverlay public static final int FRONT_FACE
@JsOverlay public static final int FUNC_ADD
@JsOverlay public static final int FUNC_REVERSE_SUBTRACT
@JsOverlay public static final int FUNC_SUBTRACT
@JsOverlay public static final int GENERATE_MIPMAP_HINT
@JsOverlay public static final int GEQUAL
@JsOverlay public static final int GREATER
@JsOverlay public static final int GREEN_BITS
@JsOverlay public static final int HIGH_FLOAT
@JsOverlay public static final int HIGH_INT
@JsOverlay public static final int IMPLEMENTATION_COLOR_READ_FORMAT
@JsOverlay public static final int IMPLEMENTATION_COLOR_READ_TYPE
@JsOverlay public static final int INCR
@JsOverlay public static final int INCR_WRAP
@JsOverlay public static final int INT
@JsOverlay public static final int INT_VEC2
@JsOverlay public static final int INT_VEC3
@JsOverlay public static final int INT_VEC4
@JsOverlay public static final int INVALID_ENUM
@JsOverlay public static final int INVALID_FRAMEBUFFER_OPERATION
@JsOverlay public static final int INVALID_OPERATION
@JsOverlay public static final int INVALID_VALUE
@JsOverlay public static final int INVERT
@JsOverlay public static final int KEEP
@JsOverlay public static final int LEQUAL
@JsOverlay public static final int LESS
@JsOverlay public static final int LINEAR
@JsOverlay public static final int LINEAR_MIPMAP_LINEAR
@JsOverlay public static final int LINEAR_MIPMAP_NEAREST
@JsOverlay public static final int LINES
@JsOverlay public static final int LINE_LOOP
@JsOverlay public static final int LINE_STRIP
@JsOverlay public static final int LINE_WIDTH
@JsOverlay public static final int LINK_STATUS
@JsOverlay public static final int LOW_FLOAT
@JsOverlay public static final int LOW_INT
@JsOverlay public static final int LUMINANCE
@JsOverlay public static final int LUMINANCE_ALPHA
@JsOverlay public static final int MAX_COMBINED_TEXTURE_IMAGE_UNITS
@JsOverlay public static final int MAX_CUBE_MAP_TEXTURE_SIZE
@JsOverlay public static final int MAX_FRAGMENT_UNIFORM_VECTORS
@JsOverlay public static final int MAX_RENDERBUFFER_SIZE
@JsOverlay public static final int MAX_TEXTURE_IMAGE_UNITS
@JsOverlay public static final int MAX_TEXTURE_SIZE
@JsOverlay public static final int MAX_VARYING_VECTORS
@JsOverlay public static final int MAX_VERTEX_ATTRIBS
@JsOverlay public static final int MAX_VERTEX_TEXTURE_IMAGE_UNITS
@JsOverlay public static final int MAX_VERTEX_UNIFORM_VECTORS
@JsOverlay public static final int MAX_VIEWPORT_DIMS
@JsOverlay public static final int MEDIUM_FLOAT
@JsOverlay public static final int MEDIUM_INT
@JsOverlay public static final int MIRRORED_REPEAT
@JsOverlay public static final int NEAREST
@JsOverlay public static final int NEAREST_MIPMAP_LINEAR
@JsOverlay public static final int NEAREST_MIPMAP_NEAREST
@JsOverlay public static final int NEVER
@JsOverlay public static final int NICEST
@JsOverlay public static final int NONE
@JsOverlay public static final int NOTEQUAL
@JsOverlay public static final int NO_ERROR
@JsOverlay public static final int ONE
@JsOverlay public static final int ONE_MINUS_CONSTANT_ALPHA
@JsOverlay public static final int ONE_MINUS_CONSTANT_COLOR
@JsOverlay public static final int ONE_MINUS_DST_ALPHA
@JsOverlay public static final int ONE_MINUS_DST_COLOR
@JsOverlay public static final int ONE_MINUS_SRC_ALPHA
@JsOverlay public static final int ONE_MINUS_SRC_COLOR
@JsOverlay public static final int OUT_OF_MEMORY
@JsOverlay public static final int PACK_ALIGNMENT
@JsOverlay public static final int POINTS
@JsOverlay public static final int POLYGON_OFFSET_FACTOR
@JsOverlay public static final int POLYGON_OFFSET_FILL
@JsOverlay public static final int POLYGON_OFFSET_UNITS
@JsOverlay public static final int RED_BITS
@JsOverlay public static final int RENDERBUFFER
@JsOverlay public static final int RENDERBUFFER_ALPHA_SIZE
@JsOverlay public static final int RENDERBUFFER_BINDING
@JsOverlay public static final int RENDERBUFFER_BLUE_SIZE
@JsOverlay public static final int RENDERBUFFER_DEPTH_SIZE
@JsOverlay public static final int RENDERBUFFER_GREEN_SIZE
@JsOverlay public static final int RENDERBUFFER_HEIGHT
@JsOverlay public static final int RENDERBUFFER_INTERNAL_FORMAT
@JsOverlay public static final int RENDERBUFFER_RED_SIZE
@JsOverlay public static final int RENDERBUFFER_STENCIL_SIZE
@JsOverlay public static final int RENDERBUFFER_WIDTH
@JsOverlay public static final int RENDERER
@JsOverlay public static final int REPEAT
@JsOverlay public static final int REPLACE
@JsOverlay public static final int RGB
@JsOverlay public static final int RGB565
@JsOverlay public static final int RGB5_A1
@JsOverlay public static final int RGBA
@JsOverlay public static final int RGBA4
@JsOverlay public static final int SAMPLER_2D
@JsOverlay public static final int SAMPLER_CUBE
@JsOverlay public static final int SAMPLES
@JsOverlay public static final int SAMPLE_ALPHA_TO_COVERAGE
@JsOverlay public static final int SAMPLE_BUFFERS
@JsOverlay public static final int SAMPLE_COVERAGE
@JsOverlay public static final int SAMPLE_COVERAGE_INVERT
@JsOverlay public static final int SAMPLE_COVERAGE_VALUE
@JsOverlay public static final int SCISSOR_BOX
@JsOverlay public static final int SCISSOR_TEST
@JsOverlay public static final int SHADER_TYPE
@JsOverlay public static final int SHADING_LANGUAGE_VERSION
@JsOverlay public static final int SHORT
@JsOverlay public static final int SRC_ALPHA
@JsOverlay public static final int SRC_ALPHA_SATURATE
@JsOverlay public static final int SRC_COLOR
@JsOverlay public static final int STATIC_DRAW
@JsOverlay public static final int STENCIL_ATTACHMENT
@JsOverlay public static final int STENCIL_BACK_FAIL
@JsOverlay public static final int STENCIL_BACK_FUNC
@JsOverlay public static final int STENCIL_BACK_PASS_DEPTH_FAIL
@JsOverlay public static final int STENCIL_BACK_PASS_DEPTH_PASS
@JsOverlay public static final int STENCIL_BACK_REF
@JsOverlay public static final int STENCIL_BACK_VALUE_MASK
@JsOverlay public static final int STENCIL_BACK_WRITEMASK
@JsOverlay public static final int STENCIL_BITS
@JsOverlay public static final int STENCIL_BUFFER_BIT
@JsOverlay public static final int STENCIL_CLEAR_VALUE
@JsOverlay public static final int STENCIL_FAIL
@JsOverlay public static final int STENCIL_FUNC
@JsOverlay public static final int STENCIL_INDEX8
@JsOverlay public static final int STENCIL_PASS_DEPTH_FAIL
@JsOverlay public static final int STENCIL_PASS_DEPTH_PASS
@JsOverlay public static final int STENCIL_REF
@JsOverlay public static final int STENCIL_TEST
@JsOverlay public static final int STENCIL_VALUE_MASK
@JsOverlay public static final int STENCIL_WRITEMASK
@JsOverlay public static final int STREAM_DRAW
@JsOverlay public static final int SUBPIXEL_BITS
@JsOverlay public static final int TEXTURE
@JsOverlay public static final int TEXTURE0
@JsOverlay public static final int TEXTURE1
@JsOverlay public static final int TEXTURE10
@JsOverlay public static final int TEXTURE11
@JsOverlay public static final int TEXTURE12
@JsOverlay public static final int TEXTURE13
@JsOverlay public static final int TEXTURE14
@JsOverlay public static final int TEXTURE15
@JsOverlay public static final int TEXTURE16
@JsOverlay public static final int TEXTURE17
@JsOverlay public static final int TEXTURE18
@JsOverlay public static final int TEXTURE19
@JsOverlay public static final int TEXTURE2
@JsOverlay public static final int TEXTURE20
@JsOverlay public static final int TEXTURE21
@JsOverlay public static final int TEXTURE22
@JsOverlay public static final int TEXTURE23
@JsOverlay public static final int TEXTURE24
@JsOverlay public static final int TEXTURE25
@JsOverlay public static final int TEXTURE26
@JsOverlay public static final int TEXTURE27
@JsOverlay public static final int TEXTURE28
@JsOverlay public static final int TEXTURE29
@JsOverlay public static final int TEXTURE3
@JsOverlay public static final int TEXTURE30
@JsOverlay public static final int TEXTURE31
@JsOverlay public static final int TEXTURE4
@JsOverlay public static final int TEXTURE5
@JsOverlay public static final int TEXTURE6
@JsOverlay public static final int TEXTURE7
@JsOverlay public static final int TEXTURE8
@JsOverlay public static final int TEXTURE9
@JsOverlay public static final int TEXTURE_2D
@JsOverlay public static final int TEXTURE_BINDING_2D
@JsOverlay public static final int TEXTURE_BINDING_CUBE_MAP
@JsOverlay public static final int TEXTURE_CUBE_MAP
@JsOverlay public static final int TEXTURE_CUBE_MAP_NEGATIVE_X
@JsOverlay public static final int TEXTURE_CUBE_MAP_NEGATIVE_Y
@JsOverlay public static final int TEXTURE_CUBE_MAP_NEGATIVE_Z
@JsOverlay public static final int TEXTURE_CUBE_MAP_POSITIVE_X
@JsOverlay public static final int TEXTURE_CUBE_MAP_POSITIVE_Y
@JsOverlay public static final int TEXTURE_CUBE_MAP_POSITIVE_Z
@JsOverlay public static final int TEXTURE_MAG_FILTER
@JsOverlay public static final int TEXTURE_MIN_FILTER
@JsOverlay public static final int TEXTURE_WRAP_S
@JsOverlay public static final int TEXTURE_WRAP_T
@JsOverlay public static final int TRIANGLES
@JsOverlay public static final int TRIANGLE_FAN
@JsOverlay public static final int TRIANGLE_STRIP
@JsOverlay public static final int UNPACK_ALIGNMENT
@JsOverlay public static final int UNPACK_COLORSPACE_CONVERSION_WEBGL
@JsOverlay public static final int UNPACK_FLIP_Y_WEBGL
@JsOverlay public static final int UNPACK_PREMULTIPLY_ALPHA_WEBGL
@JsOverlay public static final int UNSIGNED_BYTE
@JsOverlay public static final int UNSIGNED_INT
@JsOverlay public static final int UNSIGNED_SHORT
@JsOverlay public static final int UNSIGNED_SHORT_4_4_4_4
@JsOverlay public static final int UNSIGNED_SHORT_5_5_5_1
@JsOverlay public static final int UNSIGNED_SHORT_5_6_5
@JsOverlay public static final int VALIDATE_STATUS
@JsOverlay public static final int VENDOR
@JsOverlay public static final int VERSION
@JsOverlay public static final int VERTEX_ATTRIB_ARRAY_BUFFER_BINDING
@JsOverlay public static final int VERTEX_ATTRIB_ARRAY_ENABLED
@JsOverlay public static final int VERTEX_ATTRIB_ARRAY_NORMALIZED
@JsOverlay public static final int VERTEX_ATTRIB_ARRAY_POINTER
@JsOverlay public static final int VERTEX_ATTRIB_ARRAY_SIZE
@JsOverlay public static final int VERTEX_ATTRIB_ARRAY_STRIDE
@JsOverlay public static final int VERTEX_ATTRIB_ARRAY_TYPE
@JsOverlay public static final int VERTEX_SHADER
@JsOverlay public static final int VIEWPORT
@JsOverlay public static final int ZERO
@JsProperty(name="drawingBufferHeight") public int drawingBufferHeight()
@JsProperty(name="drawingBufferWidth") public int drawingBufferWidth()
public void bufferData(int target,
int size,
int usage)
public void bufferData(int target,
@Nullable
BufferSource data,
int usage)
public void bufferSubData(int target,
int offset,
@Nonnull
BufferSource data)
public void compressedTexImage2D(int target,
int level,
int internalformat,
int width,
int height,
int border,
@Nonnull
ArrayBufferView data)
public void compressedTexSubImage2D(int target,
int level,
int xoffset,
int yoffset,
int width,
int height,
int format,
@Nonnull
ArrayBufferView data)
public void readPixels(int x,
int y,
int width,
int height,
int format,
int type,
@Nullable
ArrayBufferView pixels)
public void texImage2D(int target,
int level,
int internalformat,
int width,
int height,
int border,
int format,
int type,
@Nullable
ArrayBufferView pixels)
public void texImage2D(int target,
int level,
int internalformat,
int format,
int type,
@Nonnull
TexImageSource source)
public void texSubImage2D(int target,
int level,
int xoffset,
int yoffset,
int width,
int height,
int format,
int type,
@Nullable
ArrayBufferView pixels)
public void texSubImage2D(int target,
int level,
int xoffset,
int yoffset,
int format,
int type,
@Nonnull
TexImageSource source)
public void uniform1fv(@Nullable
WebGLUniformLocation location,
@Nonnull
Float32List v)
public void uniform1fv(@Nullable
WebGLUniformLocation location,
@Nonnull
Float32Array v)
public void uniform1fv(@Nullable
WebGLUniformLocation location,
@Nonnull
JsArray<java.lang.Double> v)
public void uniform1fv(@Nullable
WebGLUniformLocation location,
@Nonnull
double[] v)
public void uniform1iv(@Nullable
WebGLUniformLocation location,
@Nonnull
Int32List v)
public void uniform1iv(@Nullable
WebGLUniformLocation location,
@Nonnull
Int32Array v)
public void uniform1iv(@Nullable
WebGLUniformLocation location,
@Nonnull
JsArray<java.lang.Double> v)
public void uniform1iv(@Nullable
WebGLUniformLocation location,
@Nonnull
double[] v)
public void uniform2fv(@Nullable
WebGLUniformLocation location,
@Nonnull
Float32List v)
public void uniform2fv(@Nullable
WebGLUniformLocation location,
@Nonnull
Float32Array v)
public void uniform2fv(@Nullable
WebGLUniformLocation location,
@Nonnull
JsArray<java.lang.Double> v)
public void uniform2fv(@Nullable
WebGLUniformLocation location,
@Nonnull
double[] v)
public void uniform2iv(@Nullable
WebGLUniformLocation location,
@Nonnull
Int32List v)
public void uniform2iv(@Nullable
WebGLUniformLocation location,
@Nonnull
Int32Array v)
public void uniform2iv(@Nullable
WebGLUniformLocation location,
@Nonnull
JsArray<java.lang.Double> v)
public void uniform2iv(@Nullable
WebGLUniformLocation location,
@Nonnull
double[] v)
public void uniform3fv(@Nullable
WebGLUniformLocation location,
@Nonnull
Float32List v)
public void uniform3fv(@Nullable
WebGLUniformLocation location,
@Nonnull
Float32Array v)
public void uniform3fv(@Nullable
WebGLUniformLocation location,
@Nonnull
JsArray<java.lang.Double> v)
public void uniform3fv(@Nullable
WebGLUniformLocation location,
@Nonnull
double[] v)
public void uniform3iv(@Nullable
WebGLUniformLocation location,
@Nonnull
Int32List v)
public void uniform3iv(@Nullable
WebGLUniformLocation location,
@Nonnull
Int32Array v)
public void uniform3iv(@Nullable
WebGLUniformLocation location,
@Nonnull
JsArray<java.lang.Double> v)
public void uniform3iv(@Nullable
WebGLUniformLocation location,
@Nonnull
double[] v)
public void uniform4fv(@Nullable
WebGLUniformLocation location,
@Nonnull
Float32List v)
public void uniform4fv(@Nullable
WebGLUniformLocation location,
@Nonnull
Float32Array v)
public void uniform4fv(@Nullable
WebGLUniformLocation location,
@Nonnull
JsArray<java.lang.Double> v)
public void uniform4fv(@Nullable
WebGLUniformLocation location,
@Nonnull
double[] v)
public void uniform4iv(@Nullable
WebGLUniformLocation location,
@Nonnull
Int32List v)
public void uniform4iv(@Nullable
WebGLUniformLocation location,
@Nonnull
Int32Array v)
public void uniform4iv(@Nullable
WebGLUniformLocation location,
@Nonnull
JsArray<java.lang.Double> v)
public void uniform4iv(@Nullable
WebGLUniformLocation location,
@Nonnull
double[] v)
public void uniformMatrix2fv(@Nullable
WebGLUniformLocation location,
boolean transpose,
@Nonnull
Float32List value)
public void uniformMatrix2fv(@Nullable
WebGLUniformLocation location,
boolean transpose,
@Nonnull
Float32Array value)
public void uniformMatrix2fv(@Nullable
WebGLUniformLocation location,
boolean transpose,
@Nonnull
JsArray<java.lang.Double> value)
public void uniformMatrix2fv(@Nullable
WebGLUniformLocation location,
boolean transpose,
@Nonnull
double[] value)
public void uniformMatrix3fv(@Nullable
WebGLUniformLocation location,
boolean transpose,
@Nonnull
Float32List value)
public void uniformMatrix3fv(@Nullable
WebGLUniformLocation location,
boolean transpose,
@Nonnull
Float32Array value)
public void uniformMatrix3fv(@Nullable
WebGLUniformLocation location,
boolean transpose,
@Nonnull
JsArray<java.lang.Double> value)
public void uniformMatrix3fv(@Nullable
WebGLUniformLocation location,
boolean transpose,
@Nonnull
double[] value)
public void uniformMatrix4fv(@Nullable
WebGLUniformLocation location,
boolean transpose,
@Nonnull
Float32List value)
public void uniformMatrix4fv(@Nullable
WebGLUniformLocation location,
boolean transpose,
@Nonnull
Float32Array value)
public void uniformMatrix4fv(@Nullable
WebGLUniformLocation location,
boolean transpose,
@Nonnull
JsArray<java.lang.Double> value)
public void uniformMatrix4fv(@Nullable
WebGLUniformLocation location,
boolean transpose,
@Nonnull
double[] value)
public void activeTexture(int texture)
public void attachShader(@Nonnull
WebGLProgram program,
@Nonnull
WebGLShader shader)
public void bindAttribLocation(@Nonnull
WebGLProgram program,
int index,
@Nonnull
java.lang.String name)
public void bindBuffer(int target,
@Nullable
WebGLBuffer buffer)
public void bindFramebuffer(int target,
@Nullable
WebGLFramebuffer framebuffer)
public void bindRenderbuffer(int target,
@Nullable
WebGLRenderbuffer renderbuffer)
public void bindTexture(int target,
@Nullable
WebGLTexture texture)
public void blendColor(float red,
float green,
float blue,
float alpha)
public void blendEquation(int mode)
public void blendEquationSeparate(int modeRGB,
int modeAlpha)
public void blendFunc(int sfactor,
int dfactor)
public void blendFuncSeparate(int srcRGB,
int dstRGB,
int srcAlpha,
int dstAlpha)
public int checkFramebufferStatus(int target)
public void clear(int mask)
public void clearColor(float red,
float green,
float blue,
float alpha)
public void clearDepth(float depth)
public void clearStencil(int s)
public void colorMask(boolean red,
boolean green,
boolean blue,
boolean alpha)
public void compileShader(@Nonnull
WebGLShader shader)
public void copyTexImage2D(int target,
int level,
int internalformat,
int x,
int y,
int width,
int height,
int border)
public void copyTexSubImage2D(int target,
int level,
int xoffset,
int yoffset,
int x,
int y,
int width,
int height)
@Nullable public WebGLBuffer createBuffer()
@Nullable public WebGLFramebuffer createFramebuffer()
@Nullable public WebGLProgram createProgram()
@Nullable public WebGLRenderbuffer createRenderbuffer()
@Nullable public WebGLShader createShader(int type)
@Nullable public WebGLTexture createTexture()
public void cullFace(int mode)
public void deleteBuffer(@Nullable
WebGLBuffer buffer)
public void deleteFramebuffer(@Nullable
WebGLFramebuffer framebuffer)
public void deleteProgram(@Nullable
WebGLProgram program)
public void deleteRenderbuffer(@Nullable
WebGLRenderbuffer renderbuffer)
public void deleteShader(@Nullable
WebGLShader shader)
public void deleteTexture(@Nullable
WebGLTexture texture)
public void depthFunc(int func)
public void depthMask(boolean flag)
public void depthRange(float zNear,
float zFar)
public void detachShader(@Nonnull
WebGLProgram program,
@Nonnull
WebGLShader shader)
public void disable(int cap)
public void disableVertexAttribArray(int index)
public void drawArrays(int mode,
int first,
int count)
public void drawElements(int mode,
int count,
int type,
int offset)
public void enable(int cap)
public void enableVertexAttribArray(int index)
public void finish()
public void flush()
public void framebufferRenderbuffer(int target,
int attachment,
int renderbuffertarget,
@Nullable
WebGLRenderbuffer renderbuffer)
public void framebufferTexture2D(int target,
int attachment,
int textarget,
@Nullable
WebGLTexture texture,
int level)
public void frontFace(int mode)
public void generateMipmap(int target)
@Nullable public WebGLActiveInfo getActiveAttrib(@Nonnull WebGLProgram program, int index)
@Nullable public WebGLActiveInfo getActiveUniform(@Nonnull WebGLProgram program, int index)
@Nullable public JsArray<WebGLShader> getAttachedShaders(@Nonnull WebGLProgram program)
public int getAttribLocation(@Nonnull
WebGLProgram program,
@Nonnull
java.lang.String name)
@Nullable
public jsinterop.base.Any getBufferParameter(int target,
int pname)
@Nullable public WebGLContextAttributes getContextAttributes()
public int getError()
@Nullable public JsObject getExtension(@Nonnull java.lang.String name)
@Nullable
public jsinterop.base.Any getFramebufferAttachmentParameter(int target,
int attachment,
int pname)
@Nullable public jsinterop.base.Any getParameter(int pname)
@Nullable
public java.lang.String getProgramInfoLog(@Nonnull
WebGLProgram program)
@Nullable
public jsinterop.base.Any getProgramParameter(@Nonnull
WebGLProgram program,
int pname)
@Nullable
public jsinterop.base.Any getRenderbufferParameter(int target,
int pname)
@Nullable
public java.lang.String getShaderInfoLog(@Nonnull
WebGLShader shader)
@Nullable
public jsinterop.base.Any getShaderParameter(@Nonnull
WebGLShader shader,
int pname)
@Nullable public WebGLShaderPrecisionFormat getShaderPrecisionFormat(int shadertype, int precisiontype)
@GLSL @Nullable public java.lang.String getShaderSource(@Nonnull WebGLShader shader)
@Nullable public JsArray<java.lang.String> getSupportedExtensions()
@Nullable
public jsinterop.base.Any getTexParameter(int target,
int pname)
@Nullable
public jsinterop.base.Any getUniform(@Nonnull
WebGLProgram program,
@Nonnull
WebGLUniformLocation location)
@Nullable public WebGLUniformLocation getUniformLocation(@Nonnull WebGLProgram program, @Nonnull java.lang.String name)
@Nullable
public jsinterop.base.Any getVertexAttrib(int index,
int pname)
public int getVertexAttribOffset(int index,
int pname)
public void hint(int target,
int mode)
public boolean isBuffer(@Nullable
WebGLBuffer buffer)
public boolean isContextLost()
public boolean isEnabled(int cap)
public boolean isFramebuffer(@Nullable
WebGLFramebuffer framebuffer)
public boolean isProgram(@Nullable
WebGLProgram program)
public boolean isRenderbuffer(@Nullable
WebGLRenderbuffer renderbuffer)
public boolean isShader(@Nullable
WebGLShader shader)
public boolean isTexture(@Nullable
WebGLTexture texture)
public void lineWidth(float width)
public void linkProgram(@Nonnull
WebGLProgram program)
public void pixelStorei(int pname,
int param)
public void polygonOffset(float factor,
float units)
public void renderbufferStorage(int target,
int internalformat,
int width,
int height)
public void sampleCoverage(float value,
boolean invert)
public void scissor(int x,
int y,
int width,
int height)
public void shaderSource(@Nonnull
WebGLShader shader,
@GLSL @Nonnull
java.lang.String source)
public void stencilFunc(int func,
int ref,
int mask)
public void stencilFuncSeparate(int face,
int func,
int ref,
int mask)
public void stencilMask(int mask)
public void stencilMaskSeparate(int face,
int mask)
public void stencilOp(int fail,
int zfail,
int zpass)
public void stencilOpSeparate(int face,
int fail,
int zfail,
int zpass)
public void texParameterf(int target,
int pname,
float param)
public void texParameteri(int target,
int pname,
int param)
public void uniform1f(@Nullable
WebGLUniformLocation location,
float x)
public void uniform1i(@Nullable
WebGLUniformLocation location,
int x)
public void uniform2f(@Nullable
WebGLUniformLocation location,
float x,
float y)
public void uniform2i(@Nullable
WebGLUniformLocation location,
int x,
int y)
public void uniform3f(@Nullable
WebGLUniformLocation location,
float x,
float y,
float z)
public void uniform3i(@Nullable
WebGLUniformLocation location,
int x,
int y,
int z)
public void uniform4f(@Nullable
WebGLUniformLocation location,
float x,
float y,
float z,
float w)
public void uniform4i(@Nullable
WebGLUniformLocation location,
int x,
int y,
int z,
int w)
public void useProgram(@Nullable
WebGLProgram program)
public void validateProgram(@Nonnull
WebGLProgram program)
public void vertexAttrib1f(int index,
float x)
public void vertexAttrib1fv(int index,
@Nonnull
Float32List values)
public void vertexAttrib1fv(int index,
@Nonnull
Float32Array values)
public void vertexAttrib1fv(int index,
@Nonnull
JsArray<java.lang.Double> values)
public void vertexAttrib1fv(int index,
@Nonnull
double[] values)
public void vertexAttrib2f(int index,
float x,
float y)
public void vertexAttrib2fv(int index,
@Nonnull
Float32List values)
public void vertexAttrib2fv(int index,
@Nonnull
Float32Array values)
public void vertexAttrib2fv(int index,
@Nonnull
JsArray<java.lang.Double> values)
public void vertexAttrib2fv(int index,
@Nonnull
double[] values)
public void vertexAttrib3f(int index,
float x,
float y,
float z)
public void vertexAttrib3fv(int index,
@Nonnull
Float32List values)
public void vertexAttrib3fv(int index,
@Nonnull
Float32Array values)
public void vertexAttrib3fv(int index,
@Nonnull
JsArray<java.lang.Double> values)
public void vertexAttrib3fv(int index,
@Nonnull
double[] values)
public void vertexAttrib4f(int index,
float x,
float y,
float z,
float w)
public void vertexAttrib4fv(int index,
@Nonnull
Float32List values)
public void vertexAttrib4fv(int index,
@Nonnull
Float32Array values)
public void vertexAttrib4fv(int index,
@Nonnull
JsArray<java.lang.Double> values)
public void vertexAttrib4fv(int index,
@Nonnull
double[] values)
public void vertexAttribPointer(int index,
int size,
int type,
boolean normalized,
int stride,
int offset)
public void viewport(int x,
int y,
int width,
int height)
@Nonnull public Promise<java.lang.Void> makeXRCompatible()