public final class WebGLRenderingContext
extends com.google.gwt.core.client.JavaScriptObject
implements com.google.gwt.canvas.dom.client.Context
Modifier and Type | Method and Description |
---|---|
void |
activeTexture(TextureUnit texture) |
void |
activeTexture(TextureUnit texture,
int slot)
Select active texture unit.
|
void |
attachShader(WebGLProgram program,
WebGLShader shader)
Attach a shader object to a program object.
|
void |
bindAttribLocation(WebGLProgram program,
int index,
java.lang.String name)
Associate a generic vertex attribute index with a named attribute variable.
|
void |
bindBuffer(BufferTarget target,
WebGLBuffer buffer)
Bind a named buffer object.
|
void |
bindFramebuffer(WebGLFramebuffer buffer)
Bind a named framebuffer object.
|
void |
bindRenderbuffer(WebGLRenderbuffer buffer)
Bind a named renderbuffer object.
|
void |
bindTexture(TextureTarget target,
WebGLTexture texture)
Bind a named texture to a texturing target.
|
void |
blendColor(double red,
double green,
double blue,
double alpha)
Set the blend color.
|
void |
blendEquation(BlendEquationMode mode)
Specify the equation used for both the RGB blend equation and the Alpha
blend equation.
|
void |
blendEquationSeparate(BlendEquationMode modeRGB,
BlendEquationMode modeAlpha)
Set the RGB blend equation and the alpha blend equation separately.
|
void |
blendFunc(BlendingFactorSrc sfactor,
BlendingFactorDest dfactor)
Specify pixel arithmetic.
|
void |
blendFuncSeparate(BlendingFactorSrc srcRGB,
BlendingFactorDest dstRGB,
BlendingFactorSrc srcAlpha,
BlendingFactorDest dstAlpha)
Set the RGB blend equation and the alpha blend equation separately.
|
void |
bufferData(BufferTarget target,
ArrayBuffer data,
BufferUsage usage) |
void |
bufferData(BufferTarget target,
int size,
BufferUsage usage)
Set the size of the currently bound WebGLBuffer object for the passed
target.
|
void |
bufferData(BufferTarget target,
TypeArray data,
BufferUsage usage)
Set the size of the currently bound WebGLBuffer object for the passed
target to the size of the passed data, then write the contents of data to
the buffer object.
|
void |
bufferSubData(BufferTarget target,
int offset,
ArrayBuffer data) |
void |
bufferSubData(BufferTarget target,
int offset,
TypeArray data)
For the WebGLBuffer object bound to the passed target write the passed
data starting at the passed offset.
|
FramebufferErrorCode |
checkFramebufferStatus()
Return the framebuffer completeness status of a framebuffer object.
|
void |
clear(int mask)
Clear buffers to preset values.
|
void |
clearColor(double red,
double green,
double blue,
double alpha)
Specify the red, green, blue, and alpha values used when the color buffers
are cleared.
|
void |
clearDepth(double depth)
Specifies the depth value used when the depth buffer is cleared.
|
void |
clearStencil(int s)
Specifies the index used when the stencil buffer is cleared.
|
void |
colorMask(boolean red,
boolean green,
boolean blue,
boolean alpha)
Specify whether red, green, blue, and alpha can or cannot be written into
the frame buffer.
|
void |
compileShader(WebGLShader shader)
Compile a shader object.
|
void |
compressedTexImage2D(TextureTarget target,
int level,
int format,
int width,
int height,
int border,
ArrayBufferView pixels)
Specify a two-dimensional compressed texture.
|
void |
copyTexImage2D(TextureTarget target,
int level,
PixelFormat internalformat,
int x,
int y,
int width,
int height,
int border)
If an attempt is made to call this function with no WebGLTexture bound,
an INVALID_OPERATION error is raised.
|
void |
copyTexSubImage2D(TextureTarget target,
int level,
int xoffset,
int yoffset,
int x,
int y,
int width,
int height)
If an attempt is made to call this function with no WebGLTexture bound,
an INVALID_OPERATION error is raised.
|
WebGLBuffer |
createBuffer()
Create a WebGLBuffer object and initialize it with a buffer object name as
if by calling glGenBuffers.
|
WebGLFramebuffer |
createFramebuffer()
Create a WebGLFramebuffer object and initialize it with a framebuffer
object name as if by calling glGenFramebuffers.
|
WebGLProgram |
createProgram()
Create a WebGLProgram object and initialize it with a program object name
as if by calling glCreateProgram.
|
WebGLRenderbuffer |
createRenderbuffer()
Create a WebGLRenderbuffer object and initialize it with a renderbuffer
object name as if by calling glGenRenderbuffers.
|
WebGLShader |
createShader(int shaderType)
Create a WebGLShader object and initialize it with a shader object name
as if by calling glCreateShader.
|
WebGLTexture |
createTexture()
Create a WebGLTexture object and initialize it with a texture object name
as if by calling glGenTextures.
|
void |
cullFace(CullFaceMode mode)
Specify whether front- or back-facing facets can be culled.
|
void |
deleteBuffer(WebGLBuffer buffer)
Delete the buffer object contained in the passed WebGLBuffer as if by
calling glDeleteBuffers.
|
void |
deleteFramebuffer(WebGLFramebuffer buffer)
Delete the framebuffer object contained in the passed WebGLFramebuffer as
if by calling glDeleteFramebuffers.
|
void |
deleteProgram(WebGLProgram program)
Delete the program object contained in the passed WebGLProgram as if by
calling glDeleteProgram.
|
void |
deleteRenderbuffer(WebGLRenderbuffer buffer)
Delete the renderbuffer object contained in the passed WebGLRenderbuffer
as if by calling glDeleteRenderbuffers.
|
void |
deleteShader(WebGLShader shader)
Delete the shader object contained in the passed WebGLShader as if by
calling glDeleteShader.
|
void |
deleteTexture(WebGLTexture texture)
Delete the texture object contained in the passed WebGLTexture as if by
calling glDeleteTextures.
|
void |
depthFunc(DepthFunction func)
Specify the value used for depth buffer comparisons.
|
void |
depthMask(boolean flag)
Enable or disable writing into the depth buffer.
|
void |
depthRange(double nearVal,
double farVal)
Specify mapping of depth values from normalized device coordinates to
window coordinates.
|
void |
detachShader(WebGLProgram program,
WebGLShader shader)
Detach a shader object from a program object.
|
void |
disable(EnableCap cap)
Disable server-side GL capabilities.
|
void |
disableVertexAttribArray(int index)
Disable a generic vertex attribute array.
|
void |
drawArrays(BeginMode mode,
int first,
int count)
Draw using the currently bound index array.
|
void |
drawElements(BeginMode mode,
int count,
DrawElementsType type,
int offset)
Draw using the currently bound index array.
|
void |
enable(EnableCap cap)
Enable server-side GL capabilities.
|
void |
enableVertexAttribArray(int index)
Enable a generic vertex attribute array.
|
void |
finish()
Block until all GL execution is complete.
|
void |
flush()
Force execution of GL commands in finite time
|
void |
framebufferRenderbuffer(FramebufferSlot attachment,
WebGLRenderbuffer renderbuffer)
Attach a renderbuffer object to a framebuffer object.
|
void |
framebufferTexture2D(FramebufferSlot attachment,
TextureTarget textarget,
int slot,
WebGLTexture texture,
int level) |
void |
framebufferTexture2D(FramebufferSlot attachment,
TextureTarget textarget,
WebGLTexture texture,
int level)
Attach a texture image to a framebuffer object.
|
void |
frontFace(FrontFaceDirection mode)
Define front- and back-facing polygons.
|
void |
generateMipmap(TextureTarget target)
If an attempt is made to call this function with no WebGLTexture bound,
an INVALID_OPERATION error is raised.
|
WebGLActiveInfo |
getActiveAttrib(WebGLProgram program,
int index)
Returns information about the size, type and name of the vertex attribute
at the passed index of the passed program object.
|
WebGLActiveInfo |
getActiveUniform(WebGLProgram program,
int index)
Returns information about the size, type and name of the uniform at the
passed index of the passed program object.
|
WebGLShader[] |
getAttachedShaders(WebGLProgram program)
Return the list of
WebGLShader s attached to the passed WebGLProgram . |
int |
getAttribLocation(WebGLProgram program,
java.lang.String name)
Returns the location of an attribute variable.
|
int |
getBufferParameteri(BufferTarget target,
BufferParameterName pname)
Return parameters of a buffer object
|
ErrorCode |
getError()
Return error information.
|
WebGLExtension |
getExtension(java.lang.String name)
Returns an object if the passed extension is supported, or null if not.
|
com.google.gwt.core.client.JavaScriptObject |
getFramebufferAttachmentParameter(FramebufferSlot attachment,
FramebufferParameterName pname)
Return the value for the passed pname given the passed target and
attachment.
|
int |
getFramebufferAttachmentParameteri(FramebufferSlot attachment,
FramebufferParameterName pname)
Return the value for the passed pname given the passed target and
attachment.
|
<T extends com.google.gwt.core.client.JavaScriptObject> |
getParameter(int pname)
Return the value or values of a selected parameter.
|
boolean |
getParameterb(int pname) |
double |
getParameterf(int pname) |
int |
getParameteri(int pname) |
java.lang.String |
getProgramInfoLog(WebGLProgram program)
Returns the information log for a program object.
|
boolean |
getProgramParameterb(WebGLProgram program,
ProgramParameter pname)
Return the value for the passed pname given the passed program.
|
int |
getProgramParameteri(WebGLProgram program,
ProgramParameter pname) |
int |
getRenderbufferParameteri(RenderbufferParameterName pname)
Return the value for the passed pname given the passed target.
|
java.lang.String |
getShaderInfoLog(WebGLShader shader)
Returns the information log for a shader object.
|
boolean |
getShaderParameterb(WebGLShader shader,
int pname)
Return the value for the passed pname given the passed shader.
|
int |
getShaderParameteri(WebGLShader shader,
int pname) |
WebGLShaderPrecisionFormat |
getShaderPrecisionFormat(Shaders shader,
ShaderPrecisionSpecifiedTypes precisionType) |
java.lang.String |
getShaderSource(WebGLShader shader)
Returns the source code string from a shader object.
|
java.lang.String[] |
getSupportedExtensions()
Returns an array of all the supported extension strings.
|
com.google.gwt.core.client.JsArrayString |
getSupportedExtensionsAsJsArray() |
int |
getTexParameteri(int target,
int pname) |
<T extends TypeArray> |
getUniform(WebGLProgram program,
WebGLUniformLocation location)
Return the uniform value at the passed location in the passed program.
|
boolean |
getUniformb(WebGLProgram program,
WebGLUniformLocation location)
Return the uniform value at the passed location in the passed program.
|
double |
getUniformf(WebGLProgram program,
WebGLUniformLocation location)
Return the uniform value at the passed location in the passed program.
|
int |
getUniformi(WebGLProgram program,
WebGLUniformLocation location)
Return the uniform value at the passed location in the passed program.
|
WebGLUniformLocation |
getUniformLocation(WebGLProgram program,
java.lang.String name)
Return the location of a uniform variable.
|
<T extends com.google.gwt.core.client.JavaScriptObject> |
getVertexAttrib(int index,
int pname)
Return the information requested in pname about the vertex attribute at
the passed index.
|
boolean |
getVertexAttribb(int index,
int pname)
Return the information requested in pname about the vertex attribute at
the passed index.
|
int |
getVertexAttribi(int index,
int pname)
Return the information requested in pname about the vertex attribute at
the passed index.
|
int |
getVertexAttribOffset(int index,
java.lang.String pname) |
boolean |
isBuffer(WebGLBuffer buffer)
Determine if a name corresponds to a buffer object.
|
boolean |
isFramebuffer(com.google.gwt.core.client.JavaScriptObject buffer)
Return true if the passed RendererObject is a WebGLFramebuffer and false
otherwise.
|
boolean |
isProgram(WebGLProgram program)
Return true if the passed RendererObject is a WebGLProgram and false
otherwise.
|
boolean |
isRenderbuffer(WebGLRenderbuffer buffer)
Return true if the passed RendererObject is a WebGLRenderbuffer and false
otherwise.
|
boolean |
isShader(com.google.gwt.core.client.JavaScriptObject shader)
Return true if the passed RendererObject is a WebGLShader and false
otherwise.
|
boolean |
isTexture(WebGLTexture texture)
Return true if the passed RendererObject is a WebGLTexture and false
otherwise.
|
void |
lineWidth(double width)
Specifies the width of rasterized lines.
|
void |
linkProgram(WebGLProgram program)
Link a program object.
|
void |
pixelStorei(PixelStoreParameter pname,
int param)
Set pixel storage modes.
|
void |
polygonOffset(double factor,
double units)
Set the scale and units used to calculate depth values.
|
void |
readPixels(int x,
int y,
int width,
int height,
PixelFormat format,
PixelType type,
ArrayBufferView pixels)
Fills pixels with the pixel data in the specified rectangle of the frame
buffer.
|
void |
renderbufferStorage(RenderbufferInternalFormat internalformat,
int width,
int height)
Create and initialize a renderbuffer object's data store.
|
void |
sampleCoverage(double value,
boolean invert)
Specify multisample coverage parameters.
|
void |
scissor(int x,
int y,
int width,
int height)
Define the scissor box.
|
void |
shaderSource(WebGLShader shader,
java.lang.String source)
Replace the source code in a shader object.
|
void |
stencilFunc(StencilFunction func,
int ref,
int mask)
Set front and back function and reference value for stencil testing.
|
void |
stencilFuncSeparate(CullFaceMode face,
StencilFunction func,
int ref,
int mask)
Set front and/or back function and reference value for stencil testing.
|
void |
stencilFuncSeparate(int face,
int func,
int ref,
int mask) |
void |
stencilMask(int mask)
Specifies a bit mask to enable and disable writing of individual bits in
the stencil planes.
|
void |
stencilMaskSeparate(CullFaceMode face,
int mask)
Control the front and/or back writing of individual bits in the stencil
planes.
|
void |
stencilOp(StencilOp fail,
StencilOp zfail,
StencilOp zpass)
Sets front and back stencil test actions.
|
void |
stencilOpSeparate(CullFaceMode face,
StencilOp fail,
StencilOp zfail,
StencilOp zpass)
Sets front and/or back stencil test actions.
|
void |
texImage2D(TextureTarget target,
int slot,
int level,
int width,
int height,
int border,
PixelFormat format,
PixelType type,
ArrayBufferView pixels)
Specify a two-dimensional texture image.
|
void |
texImage2D(TextureTarget target,
int level,
int width,
int height,
int border,
PixelFormat format,
PixelType type,
ArrayBufferView pixels)
Specify a two-dimensional texture image.
|
void |
texImage2D(TextureTarget target,
int slot,
int level,
PixelFormat format,
PixelType type,
com.google.gwt.dom.client.CanvasElement pixels) |
void |
texImage2D(TextureTarget target,
int slot,
int level,
PixelFormat format,
PixelType type,
com.google.gwt.dom.client.ImageElement pixels) |
void |
texImage2D(TextureTarget target,
int level,
PixelFormat format,
PixelType type,
com.google.gwt.dom.client.CanvasElement pixels)
Uploads the given element or image data to the currently bound WebGLTexture.
|
void |
texImage2D(TextureTarget target,
int level,
PixelFormat format,
PixelType type,
com.google.gwt.canvas.dom.client.ImageData pixels)
Uploads the given element or image data to the currently bound WebGLTexture.
|
void |
texImage2D(TextureTarget target,
int level,
PixelFormat format,
PixelType type,
com.google.gwt.dom.client.ImageElement pixels)
Uploads the given element or image data to the currently bound WebGLTexture.
|
void |
texImage2D(TextureTarget target,
int level,
PixelFormat format,
PixelType type,
com.google.gwt.dom.client.VideoElement pixels)
Uploads the given element or image data to the currently bound WebGLTexture.
|
void |
texParameterf(TextureTarget target,
TextureParameterName pname,
double param)
If an attempt is made to call this function with no WebGLTexture bound,
an INVALID_OPERATION error is raised.
|
void |
texParameteri(TextureTarget target,
TextureParameterName pname,
int param)
If an attempt is made to call this function with no WebGLTexture bound,
an INVALID_OPERATION error is raised.
|
void |
texSubImage2D(int target,
int level,
int xoffset,
int yoffset,
int width,
int height,
int format,
int type,
TypeArray data) |
void |
texSubImage2D(int target,
int level,
int xoffset,
int yoffset,
com.google.gwt.core.client.JavaScriptObject data) |
void |
texSubImage2D(int target,
int level,
int xoffset,
int yoffset,
com.google.gwt.core.client.JavaScriptObject data,
boolean flipY) |
void |
texSubImage2D(int target,
int level,
int xoffset,
int yoffset,
com.google.gwt.core.client.JavaScriptObject data,
boolean flipY,
boolean asPremultipliedAlpha) |
void |
uniform1f(WebGLUniformLocation location,
double v0)
Sets the specified uniform to the values provided.
|
void |
uniform1fv(WebGLUniformLocation location,
double[] values)
Sets the specified uniform to the values provided.
|
void |
uniform1fv(WebGLUniformLocation location,
Float32Array v)
Sets the specified uniform to the values provided.
|
void |
uniform1fv(WebGLUniformLocation location,
com.google.gwt.core.client.JsArrayNumber values)
Sets the specified uniform to the values provided.
|
void |
uniform1i(WebGLUniformLocation location,
int v0)
Sets the specified uniform to the values provided.
|
void |
uniform1iv(WebGLUniformLocation location,
int[] values)
Sets the specified uniform to the values provided.
|
void |
uniform1iv(WebGLUniformLocation location,
Int32Array v)
Sets the specified uniform to the values provided.
|
void |
uniform1iv(WebGLUniformLocation location,
com.google.gwt.core.client.JsArrayInteger values)
Sets the specified uniform to the values provided.
|
void |
uniform2f(WebGLUniformLocation location,
double v0,
double v1)
Sets the specified uniform to the values provided.
|
void |
uniform2fv(WebGLUniformLocation location,
double[] values)
Sets the specified uniform to the values provided.
|
void |
uniform2fv(WebGLUniformLocation location,
Float32Array v)
Sets the specified uniform to the values provided.
|
void |
uniform2fv(WebGLUniformLocation location,
com.google.gwt.core.client.JsArrayNumber values)
Sets the specified uniform to the values provided.
|
void |
uniform2i(WebGLUniformLocation location,
int v0,
int v1)
Sets the specified uniform to the values provided.
|
void |
uniform2iv(WebGLUniformLocation location,
int[] values)
Sets the specified uniform to the values provided.
|
void |
uniform2iv(WebGLUniformLocation location,
Int32Array v)
Sets the specified uniform to the values provided.
|
void |
uniform2iv(WebGLUniformLocation location,
com.google.gwt.core.client.JsArrayInteger values)
Sets the specified uniform to the values provided.
|
void |
uniform3f(WebGLUniformLocation location,
double v0,
double v1,
double v2)
Sets the specified uniform to the values provided.
|
void |
uniform3fv(WebGLUniformLocation location,
double[] values)
Sets the specified uniform to the values provided.
|
void |
uniform3fv(WebGLUniformLocation location,
Float32Array v)
Sets the specified uniform to the values provided.
|
void |
uniform3fv(WebGLUniformLocation location,
com.google.gwt.core.client.JsArrayNumber values)
Sets the specified uniform to the values provided.
|
void |
uniform3i(WebGLUniformLocation location,
int v0,
int v1,
int v2)
Sets the specified uniform to the values provided.
|
void |
uniform3iv(WebGLUniformLocation location,
int[] values)
Sets the specified uniform to the values provided.
|
void |
uniform3iv(WebGLUniformLocation location,
Int32Array v)
Sets the specified uniform to the values provided.
|
void |
uniform3iv(WebGLUniformLocation location,
com.google.gwt.core.client.JsArrayInteger values)
Sets the specified uniform to the values provided.
|
void |
uniform4f(WebGLUniformLocation location,
double v0,
double v1,
double v2,
double v3)
Sets the specified uniform to the values provided.
|
void |
uniform4fv(WebGLUniformLocation location,
double[] values)
Sets the specified uniform to the values provided.
|
void |
uniform4fv(WebGLUniformLocation location,
Float32Array v)
Sets the specified uniform to the values provided.
|
void |
uniform4fv(WebGLUniformLocation location,
com.google.gwt.core.client.JsArrayNumber values)
Sets the specified uniform to the values provided.
|
void |
uniform4i(WebGLUniformLocation location,
int v0,
int v1,
int v2,
int v3)
Sets the specified uniform to the values provided.
|
void |
uniform4iv(WebGLUniformLocation location,
int[] values)
Sets the specified uniform to the values provided.
|
void |
uniform4iv(WebGLUniformLocation location,
Int32Array v)
Sets the specified uniform to the values provided.
|
void |
uniform4iv(WebGLUniformLocation location,
com.google.gwt.core.client.JsArrayInteger values)
Sets the specified uniform to the values provided.
|
void |
uniformMatrix2fv(WebGLUniformLocation location,
boolean transpose,
double[] value)
Sets the specified uniform to the values provided.
|
void |
uniformMatrix2fv(WebGLUniformLocation location,
boolean transpose,
Float32Array value)
Sets the specified uniform to the values provided.
|
void |
uniformMatrix2fv(WebGLUniformLocation location,
boolean transpose,
com.google.gwt.core.client.JsArrayNumber value)
Sets the specified uniform to the values provided.
|
void |
uniformMatrix3fv(WebGLUniformLocation location,
boolean transpose,
double[] value)
Sets the specified uniform to the values provided.
|
void |
uniformMatrix3fv(WebGLUniformLocation location,
boolean transpose,
Float32Array value)
Sets the specified uniform to the values provided.
|
void |
uniformMatrix3fv(WebGLUniformLocation location,
boolean transpose,
com.google.gwt.core.client.JsArrayNumber value)
Sets the specified uniform to the values provided.
|
void |
uniformMatrix4fv(WebGLUniformLocation location,
boolean transpose,
double[] value)
Sets the specified uniform to the values provided.
|
void |
uniformMatrix4fv(WebGLUniformLocation location,
boolean transpose,
Float32Array value)
Sets the specified uniform to the values provided.
|
void |
uniformMatrix4fv(WebGLUniformLocation location,
boolean transpose,
com.google.gwt.core.client.JsArrayNumber value)
Sets the specified uniform to the values provided.
|
void |
useProgram(WebGLProgram program)
Install a program object as part of current rendering state.
|
void |
validateProgram(WebGLProgram program)
Validate a program object.
|
void |
vertexAttrib1f(int index,
double x)
Specifies the value of a generic vertex attribute.
|
void |
vertexAttrib1fv(int index,
double[] values)
Specifies the value of a generic vertex attribute.
|
void |
vertexAttrib1fv(int index,
Float32Array values)
Specifies the value of a generic vertex attribute.
|
void |
vertexAttrib1fv(int index,
com.google.gwt.core.client.JsArrayNumber values)
Specifies the value of a generic vertex attribute.
|
void |
vertexAttrib2f(int index,
double x,
double y)
Specifies the value of a generic vertex attribute.
|
void |
vertexAttrib2fv(int index,
double[] values)
Specifies the value of a generic vertex attribute.
|
void |
vertexAttrib2fv(int index,
Float32Array values)
Specifies the value of a generic vertex attribute.
|
void |
vertexAttrib2fv(int index,
com.google.gwt.core.client.JsArrayNumber values)
Specifies the value of a generic vertex attribute.
|
void |
vertexAttrib3f(int index,
double x,
double y,
double z)
Specifies the value of a generic vertex attribute.
|
void |
vertexAttrib3fv(int index,
double[] values)
Specifies the value of a generic vertex attribute.
|
void |
vertexAttrib3fv(int index,
Float32Array values)
Specifies the value of a generic vertex attribute.
|
void |
vertexAttrib3fv(int index,
com.google.gwt.core.client.JsArrayNumber values)
Specifies the value of a generic vertex attribute.
|
void |
vertexAttrib4f(int index,
double x,
double y,
double z,
double w)
Specifies the value of a generic vertex attribute.
|
void |
vertexAttrib4fv(int index,
double[] values)
Specifies the value of a generic vertex attribute.
|
void |
vertexAttrib4fv(int index,
Float32Array values)
Specifies the value of a generic vertex attribute.
|
void |
vertexAttrib4fv(int index,
com.google.gwt.core.client.JsArrayNumber values)
Specifies the value of a generic vertex attribute.
|
void |
vertexAttribPointer(int indx,
int size,
DataType type,
boolean normalized,
int stride,
int offset)
Assign the currently bound WebGLBuffer object to the passed vertex attrib
index.
|
void |
viewport(int x,
int y,
int width,
int height)
Set the viewport.
|
public void activeTexture(TextureUnit texture)
texture
- activeTexture(TextureUnit, int)
public void activeTexture(TextureUnit texture, int slot)
texture
- slot
- the texture offset valuepublic void attachShader(WebGLProgram program, WebGLShader shader)
program
- Specifies the program object to which a shader object will
be attached.shader
- Specifies the shader object that is to be attached.public void bindAttribLocation(WebGLProgram program, int index, java.lang.String name)
program
- Specifies the handle of the program object in which the
association is to be made.index
- Specifies the index of the generic vertex attribute to be
bound.name
- Specifies a null terminated string containing the name of the
vertex shader attribute variable to which index is to be bound.public void bindBuffer(BufferTarget target, WebGLBuffer buffer)
target
- Specifies the target to which the buffer object is bound.buffer
- Specifies the name of a buffer object.public void bindFramebuffer(WebGLFramebuffer buffer)
buffer
- Specifies the name of a framebuffer object.public void bindRenderbuffer(WebGLRenderbuffer buffer)
buffer
- Specifies the name of a renderbuffer object.public void bindTexture(TextureTarget target, WebGLTexture texture)
target
- Specifies the target to which the texture is bound.texture
- Specifies the name of a texture.public void blendColor(double red, double green, double blue, double alpha)
red
- green
- blue
- alpha
- public void blendEquation(BlendEquationMode mode)
mode
- public void blendEquationSeparate(BlendEquationMode modeRGB, BlendEquationMode modeAlpha)
public void blendFunc(BlendingFactorSrc sfactor, BlendingFactorDest dfactor)
public void blendFuncSeparate(BlendingFactorSrc srcRGB, BlendingFactorDest dstRGB, BlendingFactorSrc srcAlpha, BlendingFactorDest dstAlpha)
public void bufferData(BufferTarget target, ArrayBuffer data, BufferUsage usage)
public void bufferData(BufferTarget target, int size, BufferUsage usage)
target
- Specifies the target buffer object.size
- Specifies the size in bytes of the buffer object's new data
store.usage
- Specifies the expected usage pattern of the data store.public void bufferData(BufferTarget target, TypeArray data, BufferUsage usage)
target
- Specifies the target buffer object.data
- Specifies a pointer to data that will be copied into the data
store for initializationusage
- Specifies the expected usage pattern of the data store.public void bufferSubData(BufferTarget target, int offset, ArrayBuffer data)
public void bufferSubData(BufferTarget target, int offset, TypeArray data)
target
- Specifies the target buffer object.offset
- Specifies the offset into the buffer object's data store
where data replacement will begin, measured in bytes.data
- Specifies a pointer to the new data that will be copied into
the data store.public FramebufferErrorCode checkFramebufferStatus()
public void clear(int mask)
mask
- public void clearColor(double red, double green, double blue, double alpha)
red
- green
- blue
- alpha
- public void clearDepth(double depth)
depth
- public void clearStencil(int s)
s
- public void colorMask(boolean red, boolean green, boolean blue, boolean alpha)
red
- green
- blue
- alpha
- public void compileShader(WebGLShader shader)
shader
- Specifies the shader object to be compiled.public void copyTexImage2D(TextureTarget target, int level, PixelFormat internalformat, int x, int y, int width, int height, int border)
target
- Specifies the target texture.level
- Specifies the level-of-detail number. Level 0 is the base
image level. Level n is the nth mipmap reduction image.internalformat
- Specifies the internal format of the texture.x
- Specify the window coordinates of the x-coordinate of the
rectangular region of pixels to be copied.y
- Specify the window coordinates of the y-coordinate of the
rectangular region of pixels to be copied.width
- Specifies the width of the texture image. All implementations
support 2D texture images that are at least 64 texels wide and
cube-mapped texture images that are at least 16 texels wide.height
- Specifies the height of the texture image. All
implementations support 2D texture images that are at least 64
texels high and cube-mapped texture images that are at least 16
texels high.border
- Specifies the width of the border. Must be 0.public void copyTexSubImage2D(TextureTarget target, int level, int xoffset, int yoffset, int x, int y, int width, int height)
target
- Specifies the target texture.level
- Specifies the level-of-detail number. Level 0 is the base
image level. Level n is the nth mipmap reduction image.xoffset
- Specifies a texel offset in the x direction within the
texture array.yoffset
- Specifies a texel offset in the y direction within the
texture array.x
- Specify the window coordinates of the lower left corner of the
rectangular region of pixels to be copied.y
- Specify the window coordinates of the lower left corner of the
rectangular region of pixels to be copied.width
- Specifies the width of the texture subimage.height
- Specifies the height of the texture subimage.public WebGLBuffer createBuffer()
public WebGLFramebuffer createFramebuffer()
public WebGLProgram createProgram()
public WebGLRenderbuffer createRenderbuffer()
public WebGLShader createShader(int shaderType)
public WebGLTexture createTexture()
public void cullFace(CullFaceMode mode)
mode
- public void deleteBuffer(WebGLBuffer buffer)
buffer
- public void deleteFramebuffer(WebGLFramebuffer buffer)
buffer
- public void deleteProgram(WebGLProgram program)
program
- public void deleteRenderbuffer(WebGLRenderbuffer buffer)
buffer
- public void deleteShader(WebGLShader shader)
shader
- public void deleteTexture(WebGLTexture texture)
texture
- public void depthFunc(DepthFunction func)
func
- public void depthMask(boolean flag)
flag
- public void depthRange(double nearVal, double farVal)
nearVal
- Specifies the mapping of the near clipping plane to window
coordinates. The initial value is 0.farVal
- Specifies the mapping of the far clipping plane to window
coordinates. The initial value is 1.public void detachShader(WebGLProgram program, WebGLShader shader)
program
- Specifies the program object from which to detach the
shader object.shader
- Specifies the shader object to be detached.public void disable(EnableCap cap)
cap
- public void disableVertexAttribArray(int index)
index
- Specifies the index of the generic vertex attribute to be
disabled.public void drawArrays(BeginMode mode, int first, int count)
mode
- Specifies what kind of primitives to render.first
- Specifies the starting index in the enabled arrays.count
- Specifies the number of indices to be rendered.public void drawElements(BeginMode mode, int count, DrawElementsType type, int offset)
mode
- Specifies what kind of primitives to render.count
- Specifies the number of elements to be rendered.type
- Specifies the type of the values in indices.offset
- Specifies a pointer to the location where the indices are
stored.public void enable(EnableCap cap)
cap
- public void enableVertexAttribArray(int index)
index
- Specifies the index of the generic vertex attribute to be
disabled.public void finish()
public void flush()
public void framebufferRenderbuffer(FramebufferSlot attachment, WebGLRenderbuffer renderbuffer)
attachment
- Specifies the attachment point to which renderbuffer
should be attached.renderbuffer
- Specifies the renderbuffer object that is to be
attached.public void framebufferTexture2D(FramebufferSlot attachment, TextureTarget textarget, WebGLTexture texture, int level)
attachment
- Specifies the attachment point to which an image from
texture should be attached.textarget
- Specifies the texture target.texture
- Specifies the texture object whose image is to be attached.level
- Specifies the mipmap level of the texture image to be
attached, which must be 0.public void framebufferTexture2D(FramebufferSlot attachment, TextureTarget textarget, int slot, WebGLTexture texture, int level)
attachment
- textarget
- slot
- framebufferTexture2D(FramebufferSlot, TextureTarget, WebGLTexture, int)
public void frontFace(FrontFaceDirection mode)
mode
- public void generateMipmap(TextureTarget target)
target
- public WebGLActiveInfo getActiveAttrib(WebGLProgram program, int index)
program
- index
- public WebGLActiveInfo getActiveUniform(WebGLProgram program, int index)
program
- index
- public WebGLShaderPrecisionFormat getShaderPrecisionFormat(Shaders shader, ShaderPrecisionSpecifiedTypes precisionType)
public WebGLShader[] getAttachedShaders(WebGLProgram program)
WebGLShader
s attached to the passed WebGLProgram
.program
- WebGLProgram
object to be queried.WebGLShader
s attached to the passed WebGLProgram
public int getAttribLocation(WebGLProgram program, java.lang.String name)
program
- Specifies the program object to be queried.name
- Points to string containing the name of the attribute variable
whose location is to be queried.public int getBufferParameteri(BufferTarget target, BufferParameterName pname)
target
- Specifies the target buffer object.pname
- Specifies the symbolic name of a buffer object parameter.public ErrorCode getError()
public WebGLExtension getExtension(java.lang.String name)
public com.google.gwt.core.client.JavaScriptObject getFramebufferAttachmentParameter(FramebufferSlot attachment, FramebufferParameterName pname)
attachment
- Specifies the symbolic name of a framebuffer object
attachment point.pname
- Specifies the symbolic name of a framebuffer object
attachment parameter.public int getFramebufferAttachmentParameteri(FramebufferSlot attachment, FramebufferParameterName pname)
attachment
- Specifies the symbolic name of a framebuffer object
attachment point.pname
- Specifies the symbolic name of a framebuffer object
attachment parameter.public <T extends com.google.gwt.core.client.JavaScriptObject> T getParameter(int pname)
pname
- public boolean getParameterb(int pname)
public double getParameterf(int pname)
public int getParameteri(int pname)
public java.lang.String getProgramInfoLog(WebGLProgram program)
program
- Specifies the program object whose information log is to
be queried.public boolean getProgramParameterb(WebGLProgram program, ProgramParameter pname)
program
- Specifies the program object to be queried.pname
- Specifies the object parameter.public int getProgramParameteri(WebGLProgram program, ProgramParameter pname)
program
- pname
- getProgramParameterb(WebGLProgram, ProgramParameter)
public int getRenderbufferParameteri(RenderbufferParameterName pname)
pname
- Specifies the symbolic name of a renderbuffer object
parameter.public java.lang.String getShaderInfoLog(WebGLShader shader)
shader
- Specifies the shader object whose information log is to be
queried.public boolean getShaderParameterb(WebGLShader shader, int pname)
shader
- Specifies the shader object to be queried.pname
- Specifies the object parameter.public int getShaderParameteri(WebGLShader shader, int pname)
shader
- pname
- getShaderParameterb(WebGLShader, int)
public java.lang.String getShaderSource(WebGLShader shader)
shader
- Specifies the shader object to be queried.public java.lang.String[] getSupportedExtensions()
public com.google.gwt.core.client.JsArrayString getSupportedExtensionsAsJsArray()
getSupportedExtensions()
public int getTexParameteri(int target, int pname)
public <T extends TypeArray> T getUniform(WebGLProgram program, WebGLUniformLocation location)
T
- return type is dependent on the type of the uniform variable.program
- Specifies the program object to be queried.location
- Specifies the location of the uniform variable to be
queried.public boolean getUniformb(WebGLProgram program, WebGLUniformLocation location)
program
- Specifies the program object to be queried.location
- Specifies the location of the uniform variable to be
queried.public double getUniformf(WebGLProgram program, WebGLUniformLocation location)
program
- Specifies the program object to be queried.location
- Specifies the location of the uniform variable to be
queried.public int getUniformi(WebGLProgram program, WebGLUniformLocation location)
program
- Specifies the program object to be queried.location
- Specifies the location of the uniform variable to be
queried.public WebGLUniformLocation getUniformLocation(WebGLProgram program, java.lang.String name)
program
- Specifies the program object to be queried.name
- Points to a string containing the name of the uniform variable
whose location is to be queried.public <T extends com.google.gwt.core.client.JavaScriptObject> T getVertexAttrib(int index, int pname)
T
- return type is dependent on pname.index
- Specifies the generic vertex attribute parameter to be
queried.pname
- Specifies the symbolic name of the vertex attribute parameter
to be queried.public boolean getVertexAttribb(int index, int pname)
index
- Specifies the generic vertex attribute parameter to be
queried.pname
- Specifies the symbolic name of the vertex attribute parameter
to be queried.public int getVertexAttribi(int index, int pname)
index
- Specifies the generic vertex attribute parameter to be
queried.pname
- Specifies the symbolic name of the vertex attribute parameter
to be queried.public int getVertexAttribOffset(int index, java.lang.String pname)
public boolean isBuffer(WebGLBuffer buffer)
buffer
- public boolean isFramebuffer(com.google.gwt.core.client.JavaScriptObject buffer)
buffer
- public boolean isProgram(WebGLProgram program)
program
- public boolean isRenderbuffer(WebGLRenderbuffer buffer)
buffer
- public boolean isShader(com.google.gwt.core.client.JavaScriptObject shader)
shader
- public boolean isTexture(WebGLTexture texture)
texture
- public void lineWidth(double width)
width
- public void linkProgram(WebGLProgram program)
program
- Specifies the handle of the program object to be linked.public void pixelStorei(PixelStoreParameter pname, int param)
pname
- param
- public void polygonOffset(double factor, double units)
factor
- Specifies a scale factor that is used to create a variable
depth offset for each polygon. The initial value is 0.units
- Is multiplied by an implementation-specific value to create a
constant depth offset. The initial value is 0.public void readPixels(int x, int y, int width, int height, PixelFormat format, PixelType type, ArrayBufferView pixels)
x
- y
- width
- height
- format
- type
- The type of pixels must match the type of the data to be read.
If it is UNSIGNED_BYTE, a Uint8Array must be supplied; if it is
UNSIGNED_SHORT_5_6_5, UNSIGNED_SHORT_4_4_4_4, or
UNSIGNED_SHORT_5_5_5_1, a Uint16Array must be supplied. If the
types do not match, an INVALID_OPERATION error is generated.pixels
- If pixels is null, an INVALID_VALUE error is generated.
If pixels is non-null, but is not large enough to retrieve all of
the pixels in the specified rectangle taking into account pixel
store modes, an INVALID_OPERATION value is generated.public void renderbufferStorage(RenderbufferInternalFormat internalformat, int width, int height)
internalformat
- Specifies the color-renderable, depth-renderable,
or stencil-renderable format of the renderbuffer.width
- Specifies the width of the renderbuffer in pixels.height
- Specifies the height of the renderbuffer in pixels.public void sampleCoverage(double value, boolean invert)
value
- Specify a single floating-point sample coverage value. The
value is clamped to the range 0 1 . The initial value is 1.0.invert
- Specify a single boolean value representing if the coverage
masks should be inverted.public void scissor(int x, int y, int width, int height)
x
- Specify the lower left corner of the scissor box. Initially 0.y
- Specify the lower left corner of the scissor box. Initially 0.width
- Specify the width of the scissor box. When a GL context is
first attached to a window, width and height are set to the
dimensions of that window.height
- Specify the height of the scissor box. When a GL context is
first attached to a window, width and height are set to the
dimensions of that window.public void shaderSource(WebGLShader shader, java.lang.String source)
shader
- Specifies the handle of the shader object whose source code
is to be replaced.source
- Specifies a string containing the source code to be loaded
into the shader.public void stencilFunc(StencilFunction func, int ref, int mask)
func
- Specifies the test function.ref
- Specifies the reference value for the stencil test. ref is
clamped to the range 0 to 2^n - 1 , where n is the number of
bitplanes in the stencil buffer. The initial value is 0.mask
- Specifies a mask that is ANDed with both the reference value
and the stored stencil value when the test is done. The initial
value is all 1's.public void stencilFuncSeparate(CullFaceMode face, StencilFunction func, int ref, int mask)
face
- Specifies whether front and/or back stencil state is updated.func
- Specifies the test function.ref
- Specifies the reference value for the stencil test. ref is
clamped to the range 0 to 2^n - 1 , where n is the number of
bitplanes in the stencil buffer. The initial value is 0.mask
- Specifies a mask that is ANDed with both the reference value
and the stored stencil value when the test is done. The initial
value is all 1's.public void stencilFuncSeparate(int face, int func, int ref, int mask)
public void stencilMask(int mask)
mask
- Specifies a bit mask to enable and disable writing of
individual bits in the stencil planes. Initially, the mask is
all 1's.public void stencilMaskSeparate(CullFaceMode face, int mask)
face
- Specifies whether the front and/or back stencil writemask is
updated.mask
- Specifies a bit mask to enable and disable writing of
individual bits in the stencil planes. Initially, the mask is
all 1's.public void stencilOp(StencilOp fail, StencilOp zfail, StencilOp zpass)
fail
- zfail
- zpass
- public void stencilOpSeparate(CullFaceMode face, StencilOp fail, StencilOp zfail, StencilOp zpass)
face
- fail
- zfail
- zpass
- public void texImage2D(TextureTarget target, int level, int width, int height, int border, PixelFormat format, PixelType type, ArrayBufferView pixels)
target
- Specifies the target texture.level
- Specifies the level-of-detail number. Level 0 is the base
image level. Level n is the nth mipmap reduction image.width
- Specifies the width of the texture subimage.height
- Specifies the height of the texture subimage.border
- Specifies the width of the border. Must be 0.format
- Specifies the format of the texel data.type
- Specifies the data type of the texel data.pixels
- Specifies a pointer to the image data in memory.public void texImage2D(TextureTarget target, int slot, int level, int width, int height, int border, PixelFormat format, PixelType type, ArrayBufferView pixels)
target
- Specifies the target texture.slot
- the target texture offsetlevel
- Specifies the level-of-detail number. Level 0 is the base
image level. Level n is the nth mipmap reduction image.width
- Specifies the width of the texture subimage.height
- Specifies the height of the texture subimage.border
- Specifies the width of the border. Must be 0.format
- Specifies the format of the texel data.type
- Specifies the data type of the texel data.pixels
- Specifies a pointer to the image data in memory.public void texImage2D(TextureTarget target, int level, PixelFormat format, PixelType type, com.google.gwt.dom.client.CanvasElement pixels)
target
- Specifies the target texture.level
- Specifies the level-of-detail number. Level 0 is the base
image level. Level n is the nth mipmap reduction image.format
- Specifies the format of the texel data.type
- Specifies the data type of the texel data.pixels
- public void texImage2D(TextureTarget target, int slot, int level, PixelFormat format, PixelType type, com.google.gwt.dom.client.CanvasElement pixels)
public void texImage2D(TextureTarget target, int level, PixelFormat format, PixelType type, com.google.gwt.canvas.dom.client.ImageData pixels)
target
- Specifies the target texture.level
- Specifies the level-of-detail number. Level 0 is the base
image level. Level n is the nth mipmap reduction image.format
- Specifies the format of the texel data.type
- Specifies the data type of the texel data.pixels
- public void texImage2D(TextureTarget target, int level, PixelFormat format, PixelType type, com.google.gwt.dom.client.ImageElement pixels)
target
- Specifies the target texture.level
- Specifies the level-of-detail number. Level 0 is the base
image level. Level n is the nth mipmap reduction image.format
- Specifies the format of the texel data.type
- Specifies the data type of the texel data.pixels
- public void texImage2D(TextureTarget target, int slot, int level, PixelFormat format, PixelType type, com.google.gwt.dom.client.ImageElement pixels)
public void texImage2D(TextureTarget target, int level, PixelFormat format, PixelType type, com.google.gwt.dom.client.VideoElement pixels)
target
- Specifies the target texture.level
- Specifies the level-of-detail number. Level 0 is the base
image level. Level n is the nth mipmap reduction image.format
- Specifies the format of the texel data.type
- Specifies the data type of the texel data.pixels
- public void compressedTexImage2D(TextureTarget target, int level, int format, int width, int height, int border, ArrayBufferView pixels)
target
- Specifies the target texture.level
- Specifies the level-of-detail number. Level 0 is the base
image level. Level n is the nth mipmap reduction image.format
- Specifies the format of the compressed texel data.width
- Specifies the width of the texture subimage.height
- Specifies the height of the texture subimage.border
- Specifies the width of the border. Must be 0.pixels
- Specifies a pointer to the image data in memory.public void texParameterf(TextureTarget target, TextureParameterName pname, double param)
public void texParameteri(TextureTarget target, TextureParameterName pname, int param)
public void texSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, TypeArray data)
public void texSubImage2D(int target, int level, int xoffset, int yoffset, com.google.gwt.core.client.JavaScriptObject data)
public void texSubImage2D(int target, int level, int xoffset, int yoffset, com.google.gwt.core.client.JavaScriptObject data, boolean flipY)
public void texSubImage2D(int target, int level, int xoffset, int yoffset, com.google.gwt.core.client.JavaScriptObject data, boolean flipY, boolean asPremultipliedAlpha)
public void uniform1f(WebGLUniformLocation location, double v0)
location
- must have been obtained from the currently used program
via an earlier call to getUniformLocation, or an INVALID_VALUE
error will be raised.v0
- public void uniform1fv(WebGLUniformLocation location, double[] values)
location
- must have been obtained from the currently used program
via an earlier call to getUniformLocation, or an INVALID_VALUE
error will be raised.values
- public void uniform1fv(WebGLUniformLocation location, com.google.gwt.core.client.JsArrayNumber values)
location
- must have been obtained from the currently used program
via an earlier call to getUniformLocation, or an INVALID_VALUE
error will be raised.values
- public void uniform1fv(WebGLUniformLocation location, Float32Array v)
location
- must have been obtained from the currently used program
via an earlier call to getUniformLocation, or an INVALID_VALUE
error will be raised.v
- public void uniform1i(WebGLUniformLocation location, int v0)
location
- must have been obtained from the currently used program
via an earlier call to getUniformLocation, or an INVALID_VALUE
error will be raised.v0
- public void uniform1iv(WebGLUniformLocation location, int[] values)
location
- must have been obtained from the currently used program
via an earlier call to getUniformLocation, or an INVALID_VALUE
error will be raised.values
- public void uniform1iv(WebGLUniformLocation location, Int32Array v)
location
- must have been obtained from the currently used program
via an earlier call to getUniformLocation, or an INVALID_VALUE
error will be raised.v
- public void uniform1iv(WebGLUniformLocation location, com.google.gwt.core.client.JsArrayInteger values)
location
- must have been obtained from the currently used program
via an earlier call to getUniformLocation, or an INVALID_VALUE
error will be raised.values
- public void uniform2f(WebGLUniformLocation location, double v0, double v1)
location
- must have been obtained from the currently used program
via an earlier call to getUniformLocation, or an INVALID_VALUE
error will be raised.v0
- v1
- public void uniform2fv(WebGLUniformLocation location, double[] values)
location
- must have been obtained from the currently used program
via an earlier call to getUniformLocation, or an INVALID_VALUE
error will be raised.values
- public void uniform2fv(WebGLUniformLocation location, Float32Array v)
location
- must have been obtained from the currently used program
via an earlier call to getUniformLocation, or an INVALID_VALUE
error will be raised.v
- public void uniform2fv(WebGLUniformLocation location, com.google.gwt.core.client.JsArrayNumber values)
location
- must have been obtained from the currently used program
via an earlier call to getUniformLocation, or an INVALID_VALUE
error will be raised.values
- public void uniform2i(WebGLUniformLocation location, int v0, int v1)
location
- must have been obtained from the currently used program
via an earlier call to getUniformLocation, or an INVALID_VALUE
error will be raised.v0
- v1
- public void uniform2iv(WebGLUniformLocation location, int[] values)
location
- must have been obtained from the currently used program
via an earlier call to getUniformLocation, or an INVALID_VALUE
error will be raised.values
- public void uniform2iv(WebGLUniformLocation location, Int32Array v)
location
- must have been obtained from the currently used program
via an earlier call to getUniformLocation, or an INVALID_VALUE
error will be raised.v
- public void uniform2iv(WebGLUniformLocation location, com.google.gwt.core.client.JsArrayInteger values)
location
- must have been obtained from the currently used program
via an earlier call to getUniformLocation, or an INVALID_VALUE
error will be raised.values
- public void uniform3f(WebGLUniformLocation location, double v0, double v1, double v2)
location
- must have been obtained from the currently used program
via an earlier call to getUniformLocation, or an INVALID_VALUE
error will be raised.v0
- v1
- v2
- public void uniform3fv(WebGLUniformLocation location, double[] values)
location
- must have been obtained from the currently used program
via an earlier call to getUniformLocation, or an INVALID_VALUE
error will be raised.values
- public void uniform3fv(WebGLUniformLocation location, Float32Array v)
location
- must have been obtained from the currently used program
via an earlier call to getUniformLocation, or an INVALID_VALUE
error will be raised.v
- public void uniform3fv(WebGLUniformLocation location, com.google.gwt.core.client.JsArrayNumber values)
location
- must have been obtained from the currently used program
via an earlier call to getUniformLocation, or an INVALID_VALUE
error will be raised.values
- public void uniform3i(WebGLUniformLocation location, int v0, int v1, int v2)
location
- must have been obtained from the currently used program
via an earlier call to getUniformLocation, or an INVALID_VALUE
error will be raised.v0
- v1
- v2
- public void uniform3iv(WebGLUniformLocation location, int[] values)
location
- must have been obtained from the currently used program
via an earlier call to getUniformLocation, or an INVALID_VALUE
error will be raised.values
- public void uniform3iv(WebGLUniformLocation location, com.google.gwt.core.client.JsArrayInteger values)
location
- must have been obtained from the currently used program
via an earlier call to getUniformLocation, or an INVALID_VALUE
error will be raised.values
- public void uniform3iv(WebGLUniformLocation location, Int32Array v)
location
- must have been obtained from the currently used program
via an earlier call to getUniformLocation, or an INVALID_VALUE
error will be raised.v
- public void uniform4f(WebGLUniformLocation location, double v0, double v1, double v2, double v3)
location
- must have been obtained from the currently used program
via an earlier call to getUniformLocation, or an INVALID_VALUE
error will be raised.v0
- v1
- v2
- v3
- public void uniform4fv(WebGLUniformLocation location, double[] values)
location
- must have been obtained from the currently used program
via an earlier call to getUniformLocation, or an INVALID_VALUE
error will be raised.values
- public void uniform4fv(WebGLUniformLocation location, Float32Array v)
location
- must have been obtained from the currently used program
via an earlier call to getUniformLocation, or an INVALID_VALUE
error will be raised.v
- public void uniform4fv(WebGLUniformLocation location, com.google.gwt.core.client.JsArrayNumber values)
location
- must have been obtained from the currently used program
via an earlier call to getUniformLocation, or an INVALID_VALUE
error will be raised.values
- public void uniform4i(WebGLUniformLocation location, int v0, int v1, int v2, int v3)
location
- must have been obtained from the currently used program
via an earlier call to getUniformLocation, or an INVALID_VALUE
error will be raised.v0
- v1
- v2
- v3
- public void uniform4iv(WebGLUniformLocation location, int[] values)
location
- must have been obtained from the currently used program
via an earlier call to getUniformLocation, or an INVALID_VALUE
error will be raised.values
- public void uniform4iv(WebGLUniformLocation location, Int32Array v)
location
- must have been obtained from the currently used program
via an earlier call to getUniformLocation, or an INVALID_VALUE
error will be raised.v
- public void uniform4iv(WebGLUniformLocation location, com.google.gwt.core.client.JsArrayInteger values)
location
- must have been obtained from the currently used program
via an earlier call to getUniformLocation, or an INVALID_VALUE
error will be raised.values
- public void uniformMatrix2fv(WebGLUniformLocation location, boolean transpose, double[] value)
location
- must have been obtained from the currently used program
via an earlier call to getUniformLocation, or an INVALID_VALUE
error will be raised.transpose
- value
- public void uniformMatrix2fv(WebGLUniformLocation location, boolean transpose, Float32Array value)
location
- must have been obtained from the currently used program
via an earlier call to getUniformLocation, or an INVALID_VALUE
error will be raised.transpose
- value
- public void uniformMatrix2fv(WebGLUniformLocation location, boolean transpose, com.google.gwt.core.client.JsArrayNumber value)
location
- must have been obtained from the currently used program
via an earlier call to getUniformLocation, or an INVALID_VALUE
error will be raised.transpose
- value
- public void uniformMatrix3fv(WebGLUniformLocation location, boolean transpose, double[] value)
location
- must have been obtained from the currently used program
via an earlier call to getUniformLocation, or an INVALID_VALUE
error will be raised.transpose
- value
- public void uniformMatrix3fv(WebGLUniformLocation location, boolean transpose, Float32Array value)
location
- must have been obtained from the currently used program
via an earlier call to getUniformLocation, or an INVALID_VALUE
error will be raised.transpose
- value
- public void uniformMatrix3fv(WebGLUniformLocation location, boolean transpose, com.google.gwt.core.client.JsArrayNumber value)
location
- must have been obtained from the currently used program
via an earlier call to getUniformLocation, or an INVALID_VALUE
error will be raised.transpose
- value
- public void uniformMatrix4fv(WebGLUniformLocation location, boolean transpose, double[] value)
location
- must have been obtained from the currently used program
via an earlier call to getUniformLocation, or an INVALID_VALUE
error will be raised.transpose
- value
- public void uniformMatrix4fv(WebGLUniformLocation location, boolean transpose, Float32Array value)
location
- must have been obtained from the currently used program
via an earlier call to getUniformLocation, or an INVALID_VALUE
error will be raised.transpose
- value
- public void uniformMatrix4fv(WebGLUniformLocation location, boolean transpose, com.google.gwt.core.client.JsArrayNumber value)
location
- must have been obtained from the currently used program
via an earlier call to getUniformLocation, or an INVALID_VALUE
error will be raised.transpose
- value
- public void useProgram(WebGLProgram program)
program
- Specifies the handle of the program object whose
executables are to be used as part of current rendering state.public void validateProgram(WebGLProgram program)
program
- Specifies the handle of the program object to be validated.public void vertexAttrib1f(int index, double x)
index
- Specifies the index of the generic vertex attribute to
be modified.x
- Specifies the new values to be used for the specified vertex
attribute.public void vertexAttrib1fv(int index, double[] values)
index
- Specifies the index of the generic vertex attribute to
be modified.values
- Specifies the new values to be used for the specified vertex
attribute.public void vertexAttrib1fv(int index, Float32Array values)
index
- Specifies the index of the generic vertex attribute to
be modified.values
- Specifies the new values to be used for the specified vertex
attribute.public void vertexAttrib1fv(int index, com.google.gwt.core.client.JsArrayNumber values)
index
- Specifies the index of the generic vertex attribute to
be modified.values
- Specifies the new values to be used for the specified vertex
attribute.public void vertexAttrib2f(int index, double x, double y)
index
- Specifies the index of the generic vertex attribute to
be modified.x
- Specifies the new values to be used for the specified vertex
attribute.y
- Specifies the new values to be used for the specified vertex
attribute.public void vertexAttrib2fv(int index, double[] values)
index
- Specifies the index of the generic vertex attribute to
be modified.values
- Specifies the new values to be used for the specified vertex
attribute.public void vertexAttrib2fv(int index, Float32Array values)
index
- Specifies the index of the generic vertex attribute to
be modified.values
- Specifies the new values to be used for the specified vertex
attribute.public void vertexAttrib2fv(int index, com.google.gwt.core.client.JsArrayNumber values)
index
- Specifies the index of the generic vertex attribute to
be modified.values
- Specifies the new values to be used for the specified vertex
attribute.public void vertexAttrib3f(int index, double x, double y, double z)
index
- Specifies the index of the generic vertex attribute to
be modified.x
- Specifies the new values to be used for the specified vertex
attribute.y
- Specifies the new values to be used for the specified vertex
attribute.z
- Specifies the new values to be used for the specified vertex
attribute.public void vertexAttrib3fv(int index, double[] values)
index
- Specifies the index of the generic vertex attribute to
be modified.values
- Specifies the new values to be used for the specified vertex
attribute.public void vertexAttrib3fv(int index, Float32Array values)
index
- Specifies the index of the generic vertex attribute to
be modified.values
- Specifies the new values to be used for the specified vertex
attribute.public void vertexAttrib3fv(int index, com.google.gwt.core.client.JsArrayNumber values)
index
- Specifies the index of the generic vertex attribute to
be modified.values
- Specifies the new values to be used for the specified vertex
attribute.public void vertexAttrib4f(int index, double x, double y, double z, double w)
index
- Specifies the index of the generic vertex attribute to
be modified.x
- Specifies the new values to be used for the specified vertex
attribute.y
- Specifies the new values to be used for the specified vertex
attribute.z
- Specifies the new values to be used for the specified vertex
attribute.w
- Specifies the new values to be used for the specified vertex
attribute.public void vertexAttrib4fv(int index, double[] values)
index
- Specifies the index of the generic vertex attribute to
be modified.values
- Specifies the new values to be used for the specified vertex
attribute.public void vertexAttrib4fv(int index, Float32Array values)
index
- Specifies the index of the generic vertex attribute to
be modified.values
- Specifies the new values to be used for the specified vertex
attribute.public void vertexAttrib4fv(int index, com.google.gwt.core.client.JsArrayNumber values)
index
- Specifies the index of the generic vertex attribute to
be modified.values
- Specifies the new values to be used for the specified vertex
attribute.public void vertexAttribPointer(int indx, int size, DataType type, boolean normalized, int stride, int offset)
indx
- Specifies the index of the generic vertex attribute to be
modified.size
- Specifies the number of components per generic vertex
attribute. Must be 1, 2, 3, or 4. The initial value is 4.type
- Specifies the data type of each component in the array.normalized
- Specifies whether fixed-point data values should be
normalized true or converted directly as fixed-point values
false when they are accessed.stride
- Specifies the byte offset between consecutive generic vertex
attributes. If stride is 0, the generic vertex attributes are
understood to be tightly packed in the array. The initial value
is 0.offset
- Specifies a pointer to the first component of the first
generic vertex attribute in the array. The initial value is 0.public void viewport(int x, int y, int width, int height)
x
- Specify the lower left corner of the viewport rectangle,
in pixels. The initial value is 0.y
- Specify the lower left corner of the viewport rectangle,
in pixels. The initial value is 0.width
- Specify the width of the viewport. When a GL context is
first attached to a window, width and height are set to the
dimensions of that window.height
- Specify the height of the viewport. When a GL context is
first attached to a window, width and height are set to the
dimensions of that window.