public class JsWebGLRenderingContext extends JsCanvasRenderingContext implements WebGLRenderingContext
ACTIVE_ATTRIBUTES, ACTIVE_TEXTURE, ACTIVE_UNIFORMS, ALIASED_LINE_WIDTH_RANGE, ALIASED_POINT_SIZE_RANGE, ALPHA, ALPHA_BITS, ALWAYS, ARRAY_BUFFER, ARRAY_BUFFER_BINDING, ATTACHED_SHADERS, BACK, BLEND, BLEND_COLOR, BLEND_DST_ALPHA, BLEND_DST_RGB, BLEND_EQUATION, BLEND_EQUATION_ALPHA, BLEND_EQUATION_RGB, BLEND_SRC_ALPHA, BLEND_SRC_RGB, BLUE_BITS, BOOL, BOOL_VEC2, BOOL_VEC3, BOOL_VEC4, BROWSER_DEFAULT_WEBGL, BUFFER_SIZE, BUFFER_USAGE, BYTE, CCW, CLAMP_TO_EDGE, COLOR_ATTACHMENT0, COLOR_BUFFER_BIT, COLOR_CLEAR_VALUE, COLOR_WRITEMASK, COMPILE_STATUS, COMPRESSED_TEXTURE_FORMATS, CONSTANT_ALPHA, CONSTANT_COLOR, CONTEXT_LOST_WEBGL, CULL_FACE, CULL_FACE_MODE, CURRENT_PROGRAM, CURRENT_VERTEX_ATTRIB, CW, DECR, DECR_WRAP, DELETE_STATUS, DEPTH_ATTACHMENT, DEPTH_BITS, DEPTH_BUFFER_BIT, DEPTH_CLEAR_VALUE, DEPTH_COMPONENT, DEPTH_COMPONENT16, DEPTH_FUNC, DEPTH_RANGE, DEPTH_STENCIL, DEPTH_STENCIL_ATTACHMENT, DEPTH_TEST, DEPTH_WRITEMASK, DITHER, DONT_CARE, DST_ALPHA, DST_COLOR, DYNAMIC_DRAW, ELEMENT_ARRAY_BUFFER, ELEMENT_ARRAY_BUFFER_BINDING, EQUAL, FASTEST, FLOAT, FLOAT_MAT2, FLOAT_MAT3, FLOAT_MAT4, FLOAT_VEC2, FLOAT_VEC3, FLOAT_VEC4, FRAGMENT_SHADER, FRAMEBUFFER, FRAMEBUFFER_ATTACHMENT_OBJECT_NAME, FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE, FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE, FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL, FRAMEBUFFER_BINDING, FRAMEBUFFER_COMPLETE, FRAMEBUFFER_INCOMPLETE_ATTACHMENT, FRAMEBUFFER_INCOMPLETE_DIMENSIONS, FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT, FRAMEBUFFER_UNSUPPORTED, FRONT, FRONT_AND_BACK, FRONT_FACE, FUNC_ADD, FUNC_REVERSE_SUBTRACT, FUNC_SUBTRACT, GENERATE_MIPMAP_HINT, GEQUAL, GREATER, GREEN_BITS, HIGH_FLOAT, HIGH_INT, INCR, INCR_WRAP, INT, INT_VEC2, INT_VEC3, INT_VEC4, INVALID_ENUM, INVALID_FRAMEBUFFER_OPERATION, INVALID_OPERATION, INVALID_VALUE, INVERT, KEEP, LEQUAL, LESS, LINE_LOOP, LINE_STRIP, LINE_WIDTH, LINEAR, LINEAR_MIPMAP_LINEAR, LINEAR_MIPMAP_NEAREST, LINES, LINK_STATUS, LOW_FLOAT, LOW_INT, LUMINANCE, LUMINANCE_ALPHA, MAX_COMBINED_TEXTURE_IMAGE_UNITS, MAX_CUBE_MAP_TEXTURE_SIZE, MAX_FRAGMENT_UNIFORM_VECTORS, MAX_RENDERBUFFER_SIZE, MAX_TEXTURE_IMAGE_UNITS, MAX_TEXTURE_SIZE, MAX_VARYING_VECTORS, MAX_VERTEX_ATTRIBS, MAX_VERTEX_TEXTURE_IMAGE_UNITS, MAX_VERTEX_UNIFORM_VECTORS, MAX_VIEWPORT_DIMS, MEDIUM_FLOAT, MEDIUM_INT, MIRRORED_REPEAT, NEAREST, NEAREST_MIPMAP_LINEAR, NEAREST_MIPMAP_NEAREST, NEVER, NICEST, NO_ERROR, NONE, NOTEQUAL, ONE, ONE_MINUS_CONSTANT_ALPHA, ONE_MINUS_CONSTANT_COLOR, ONE_MINUS_DST_ALPHA, ONE_MINUS_DST_COLOR, ONE_MINUS_SRC_ALPHA, ONE_MINUS_SRC_COLOR, OUT_OF_MEMORY, PACK_ALIGNMENT, POINTS, POLYGON_OFFSET_FACTOR, POLYGON_OFFSET_FILL, POLYGON_OFFSET_UNITS, RED_BITS, RENDERBUFFER, RENDERBUFFER_ALPHA_SIZE, RENDERBUFFER_BINDING, RENDERBUFFER_BLUE_SIZE, RENDERBUFFER_DEPTH_SIZE, RENDERBUFFER_GREEN_SIZE, RENDERBUFFER_HEIGHT, RENDERBUFFER_INTERNAL_FORMAT, RENDERBUFFER_RED_SIZE, RENDERBUFFER_STENCIL_SIZE, RENDERBUFFER_WIDTH, RENDERER, REPEAT, REPLACE, RGB, RGB5_A1, RGB565, RGBA, RGBA4, SAMPLE_ALPHA_TO_COVERAGE, SAMPLE_BUFFERS, SAMPLE_COVERAGE, SAMPLE_COVERAGE_INVERT, SAMPLE_COVERAGE_VALUE, SAMPLER_2D, SAMPLER_CUBE, SAMPLES, SCISSOR_BOX, SCISSOR_TEST, SHADER_TYPE, SHADING_LANGUAGE_VERSION, SHORT, SRC_ALPHA, SRC_ALPHA_SATURATE, SRC_COLOR, STATIC_DRAW, STENCIL_ATTACHMENT, STENCIL_BACK_FAIL, STENCIL_BACK_FUNC, STENCIL_BACK_PASS_DEPTH_FAIL, STENCIL_BACK_PASS_DEPTH_PASS, STENCIL_BACK_REF, STENCIL_BACK_VALUE_MASK, STENCIL_BACK_WRITEMASK, STENCIL_BITS, STENCIL_BUFFER_BIT, STENCIL_CLEAR_VALUE, STENCIL_FAIL, STENCIL_FUNC, STENCIL_INDEX, STENCIL_INDEX8, STENCIL_PASS_DEPTH_FAIL, STENCIL_PASS_DEPTH_PASS, STENCIL_REF, STENCIL_TEST, STENCIL_VALUE_MASK, STENCIL_WRITEMASK, STREAM_DRAW, SUBPIXEL_BITS, TEXTURE, TEXTURE_2D, TEXTURE_BINDING_2D, TEXTURE_BINDING_CUBE_MAP, TEXTURE_CUBE_MAP, TEXTURE_CUBE_MAP_NEGATIVE_X, TEXTURE_CUBE_MAP_NEGATIVE_Y, TEXTURE_CUBE_MAP_NEGATIVE_Z, TEXTURE_CUBE_MAP_POSITIVE_X, TEXTURE_CUBE_MAP_POSITIVE_Y, TEXTURE_CUBE_MAP_POSITIVE_Z, TEXTURE_MAG_FILTER, TEXTURE_MIN_FILTER, TEXTURE_WRAP_S, TEXTURE_WRAP_T, TEXTURE0, TEXTURE1, TEXTURE10, TEXTURE11, TEXTURE12, TEXTURE13, TEXTURE14, TEXTURE15, TEXTURE16, TEXTURE17, TEXTURE18, TEXTURE19, TEXTURE2, TEXTURE20, TEXTURE21, TEXTURE22, TEXTURE23, TEXTURE24, TEXTURE25, TEXTURE26, TEXTURE27, TEXTURE28, TEXTURE29, TEXTURE3, TEXTURE30, TEXTURE31, TEXTURE4, TEXTURE5, TEXTURE6, TEXTURE7, TEXTURE8, TEXTURE9, TRIANGLE_FAN, TRIANGLE_STRIP, TRIANGLES, UNPACK_ALIGNMENT, UNPACK_COLORSPACE_CONVERSION_WEBGL, UNPACK_FLIP_Y_WEBGL, UNPACK_PREMULTIPLY_ALPHA_WEBGL, UNSIGNED_BYTE, UNSIGNED_INT, UNSIGNED_SHORT, UNSIGNED_SHORT_4_4_4_4, UNSIGNED_SHORT_5_5_5_1, UNSIGNED_SHORT_5_6_5, VALIDATE_STATUS, VENDOR, VERSION, VERTEX_ATTRIB_ARRAY_BUFFER_BINDING, VERTEX_ATTRIB_ARRAY_ENABLED, VERTEX_ATTRIB_ARRAY_NORMALIZED, VERTEX_ATTRIB_ARRAY_POINTER, VERTEX_ATTRIB_ARRAY_SIZE, VERTEX_ATTRIB_ARRAY_STRIDE, VERTEX_ATTRIB_ARRAY_TYPE, VERTEX_SHADER, VIEWPORT, ZERO
SVG_ZOOMANDPAN_DISABLE, SVG_ZOOMANDPAN_MAGNIFY, SVG_ZOOMANDPAN_UNKNOWN
Modifier | Constructor and Description |
---|---|
protected |
JsWebGLRenderingContext() |
Modifier and Type | Method and Description |
---|---|
void |
activeTexture(int texture) |
void |
attachShader(WebGLProgram program,
WebGLShader shader) |
void |
bindAttribLocation(WebGLProgram program,
int index,
String name) |
void |
bindBuffer(int target,
WebGLBuffer buffer) |
void |
bindFramebuffer(int target,
WebGLFramebuffer framebuffer) |
void |
bindRenderbuffer(int target,
WebGLRenderbuffer renderbuffer) |
void |
bindTexture(int target,
WebGLTexture texture) |
void |
blendColor(float red,
float green,
float blue,
float alpha) |
void |
blendEquation(int mode) |
void |
blendEquationSeparate(int modeRGB,
int modeAlpha) |
void |
blendFunc(int sfactor,
int dfactor) |
void |
blendFuncSeparate(int srcRGB,
int dstRGB,
int srcAlpha,
int dstAlpha) |
void |
bufferData(int target,
ArrayBuffer data,
int usage) |
void |
bufferData(int target,
ArrayBufferView data,
int usage) |
void |
bufferData(int target,
double size,
int usage) |
void |
bufferSubData(int target,
double offset,
ArrayBuffer data) |
void |
bufferSubData(int target,
double offset,
ArrayBufferView data) |
int |
checkFramebufferStatus(int target) |
void |
clear(int mask) |
void |
clearColor(float red,
float green,
float blue,
float alpha) |
void |
clearDepth(float depth) |
void |
clearStencil(int s) |
void |
colorMask(boolean red,
boolean green,
boolean blue,
boolean alpha) |
void |
compileShader(WebGLShader shader) |
void |
compressedTexImage2D(int target,
int level,
int internalformat,
int width,
int height,
int border,
ArrayBufferView data) |
void |
compressedTexSubImage2D(int target,
int level,
int xoffset,
int yoffset,
int width,
int height,
int format,
ArrayBufferView data) |
void |
copyTexImage2D(int target,
int level,
int internalformat,
int x,
int y,
int width,
int height,
int border) |
void |
copyTexSubImage2D(int target,
int level,
int xoffset,
int yoffset,
int x,
int y,
int width,
int height) |
JsWebGLBuffer |
createBuffer() |
JsWebGLFramebuffer |
createFramebuffer() |
JsWebGLProgram |
createProgram() |
JsWebGLRenderbuffer |
createRenderbuffer() |
JsWebGLShader |
createShader(int type) |
JsWebGLTexture |
createTexture() |
void |
cullFace(int mode) |
void |
deleteBuffer(WebGLBuffer buffer) |
void |
deleteFramebuffer(WebGLFramebuffer framebuffer) |
void |
deleteProgram(WebGLProgram program) |
void |
deleteRenderbuffer(WebGLRenderbuffer renderbuffer) |
void |
deleteShader(WebGLShader shader) |
void |
deleteTexture(WebGLTexture texture) |
void |
depthFunc(int func) |
void |
depthMask(boolean flag) |
void |
depthRange(float zNear,
float zFar) |
void |
detachShader(WebGLProgram program,
WebGLShader shader) |
void |
disable(int cap) |
void |
disableVertexAttribArray(int index) |
void |
drawArrays(int mode,
int first,
int count) |
void |
drawElements(int mode,
int count,
int type,
double offset) |
void |
enable(int cap) |
void |
enableVertexAttribArray(int index) |
void |
finish() |
void |
flush() |
void |
framebufferRenderbuffer(int target,
int attachment,
int renderbuffertarget,
WebGLRenderbuffer renderbuffer) |
void |
framebufferTexture2D(int target,
int attachment,
int textarget,
WebGLTexture texture,
int level) |
void |
frontFace(int mode) |
void |
generateMipmap(int target) |
JsWebGLActiveInfo |
getActiveAttrib(WebGLProgram program,
int index) |
JsWebGLActiveInfo |
getActiveUniform(WebGLProgram program,
int index) |
JsIndexable |
getAttachedShaders(WebGLProgram program) |
int |
getAttribLocation(WebGLProgram program,
String name) |
Object |
getBufferParameter(int target,
int pname) |
JsWebGLContextAttributes |
getContextAttributes() |
int |
getDrawingBufferHeight() |
int |
getDrawingBufferWidth() |
int |
getError() |
Object |
getExtension(String name) |
Object |
getFramebufferAttachmentParameter(int target,
int attachment,
int pname) |
Object |
getParameter(int pname) |
String |
getProgramInfoLog(WebGLProgram program) |
Object |
getProgramParameter(WebGLProgram program,
int pname) |
Object |
getRenderbufferParameter(int target,
int pname) |
String |
getShaderInfoLog(WebGLShader shader) |
Object |
getShaderParameter(WebGLShader shader,
int pname) |
JsWebGLShaderPrecisionFormat |
getShaderPrecisionFormat(int shadertype,
int precisiontype) |
String |
getShaderSource(WebGLShader shader) |
Object |
getTexParameter(int target,
int pname) |
Object |
getUniform(WebGLProgram program,
WebGLUniformLocation location) |
JsWebGLUniformLocation |
getUniformLocation(WebGLProgram program,
String name) |
Object |
getVertexAttrib(int index,
int pname) |
double |
getVertexAttribOffset(int index,
int pname) |
void |
hint(int target,
int mode) |
boolean |
isBuffer(WebGLBuffer buffer) |
boolean |
isContextLost() |
boolean |
isEnabled(int cap) |
boolean |
isFramebuffer(WebGLFramebuffer framebuffer) |
boolean |
isProgram(WebGLProgram program) |
boolean |
isRenderbuffer(WebGLRenderbuffer renderbuffer) |
boolean |
isShader(WebGLShader shader) |
boolean |
isTexture(WebGLTexture texture) |
void |
lineWidth(float width) |
void |
linkProgram(WebGLProgram program) |
void |
pixelStorei(int pname,
int param) |
void |
polygonOffset(float factor,
float units) |
void |
readPixels(int x,
int y,
int width,
int height,
int format,
int type,
ArrayBufferView pixels) |
void |
releaseShaderCompiler() |
void |
renderbufferStorage(int target,
int internalformat,
int width,
int height) |
void |
sampleCoverage(float value,
boolean invert) |
void |
scissor(int x,
int y,
int width,
int height) |
void |
shaderSource(WebGLShader shader,
String string) |
void |
stencilFunc(int func,
int ref,
int mask) |
void |
stencilFuncSeparate(int face,
int func,
int ref,
int mask) |
void |
stencilMask(int mask) |
void |
stencilMaskSeparate(int face,
int mask) |
void |
stencilOp(int fail,
int zfail,
int zpass) |
void |
stencilOpSeparate(int face,
int fail,
int zfail,
int zpass) |
void |
texImage2D(int target,
int level,
int internalformat,
int format,
int type,
CanvasElement canvas) |
void |
texImage2D(int target,
int level,
int internalformat,
int format,
int type,
ImageData pixels) |
void |
texImage2D(int target,
int level,
int internalformat,
int format,
int type,
ImageElement image) |
void |
texImage2D(int target,
int level,
int internalformat,
int width,
int height,
int border,
int format,
int type,
ArrayBufferView pixels) |
void |
texImage2D(int target,
int level,
int internalformat,
int format,
int type,
VideoElement video) |
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 format,
int type,
CanvasElement canvas) |
void |
texSubImage2D(int target,
int level,
int xoffset,
int yoffset,
int format,
int type,
ImageData pixels) |
void |
texSubImage2D(int target,
int level,
int xoffset,
int yoffset,
int format,
int type,
ImageElement image) |
void |
texSubImage2D(int target,
int level,
int xoffset,
int yoffset,
int width,
int height,
int format,
int type,
ArrayBufferView pixels) |
void |
texSubImage2D(int target,
int level,
int xoffset,
int yoffset,
int format,
int type,
VideoElement video) |
void |
uniform1f(WebGLUniformLocation location,
float x) |
void |
uniform1fv(WebGLUniformLocation location,
Float32Array v) |
void |
uniform1i(WebGLUniformLocation location,
int x) |
void |
uniform1iv(WebGLUniformLocation location,
Int32Array v) |
void |
uniform2f(WebGLUniformLocation location,
float x,
float y) |
void |
uniform2fv(WebGLUniformLocation location,
Float32Array v) |
void |
uniform2i(WebGLUniformLocation location,
int x,
int y) |
void |
uniform2iv(WebGLUniformLocation location,
Int32Array v) |
void |
uniform3f(WebGLUniformLocation location,
float x,
float y,
float z) |
void |
uniform3fv(WebGLUniformLocation location,
Float32Array v) |
void |
uniform3i(WebGLUniformLocation location,
int x,
int y,
int z) |
void |
uniform3iv(WebGLUniformLocation location,
Int32Array v) |
void |
uniform4f(WebGLUniformLocation location,
float x,
float y,
float z,
float w) |
void |
uniform4fv(WebGLUniformLocation location,
Float32Array v) |
void |
uniform4i(WebGLUniformLocation location,
int x,
int y,
int z,
int w) |
void |
uniform4iv(WebGLUniformLocation location,
Int32Array v) |
void |
uniformMatrix2fv(WebGLUniformLocation location,
boolean transpose,
Float32Array array) |
void |
uniformMatrix3fv(WebGLUniformLocation location,
boolean transpose,
Float32Array array) |
void |
uniformMatrix4fv(WebGLUniformLocation location,
boolean transpose,
Float32Array array) |
void |
useProgram(WebGLProgram program) |
void |
validateProgram(WebGLProgram program) |
void |
vertexAttrib1f(int indx,
float x) |
void |
vertexAttrib1fv(int indx,
Float32Array values) |
void |
vertexAttrib2f(int indx,
float x,
float y) |
void |
vertexAttrib2fv(int indx,
Float32Array values) |
void |
vertexAttrib3f(int indx,
float x,
float y,
float z) |
void |
vertexAttrib3fv(int indx,
Float32Array values) |
void |
vertexAttrib4f(int indx,
float x,
float y,
float z,
float w) |
void |
vertexAttrib4fv(int indx,
Float32Array values) |
void |
vertexAttribPointer(int indx,
int size,
int type,
boolean normalized,
int stride,
double offset) |
void |
viewport(int x,
int y,
int width,
int height) |
getCanvas
addEventListener, addEventListener, beginElement, beginElementAt, dispatchEvent, endElement, endElementAt, getAnimatedClassName, getAnimatedHeight, getAnimatedHref, getAnimatedResult, getAnimatedTransform, getAnimatedWidth, getAnimatedX, getAnimatedY, getBBox, getChildElementCount, getCTM, getExternalResourcesRequired, getFarthestViewportElement, getFirstElementChild, getLastElementChild, getNearestViewportElement, getNextElementSibling, getPresentationAttribute, getPreserveAspectRatio, getPreviousElementSibling, getRequiredExtensions, getRequiredFeatures, getScreenCTM, getSvgStyle, getSystemLanguage, getTransformToElement, getViewBox, getXmllang, getXmlspace, getZoomAndPan, hasExtension, querySelector, querySelectorAll, removeEventListener, removeEventListener, setXmllang, setXmlspace, setZoomAndPan
at, at, intAt, intAt, length, numberAt, numberAt, setAt, setAt, setAt, setAt, setAt, setAt
cast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getCanvas
intAt, length
numberAt
public final int getDrawingBufferHeight()
getDrawingBufferHeight
in interface WebGLRenderingContext
public final int getDrawingBufferWidth()
getDrawingBufferWidth
in interface WebGLRenderingContext
public final void activeTexture(int texture)
activeTexture
in interface WebGLRenderingContext
public final void attachShader(WebGLProgram program, WebGLShader shader)
attachShader
in interface WebGLRenderingContext
public final void bindAttribLocation(WebGLProgram program, int index, String name)
bindAttribLocation
in interface WebGLRenderingContext
public final void bindBuffer(int target, WebGLBuffer buffer)
bindBuffer
in interface WebGLRenderingContext
public final void bindFramebuffer(int target, WebGLFramebuffer framebuffer)
bindFramebuffer
in interface WebGLRenderingContext
public final void bindRenderbuffer(int target, WebGLRenderbuffer renderbuffer)
bindRenderbuffer
in interface WebGLRenderingContext
public final void bindTexture(int target, WebGLTexture texture)
bindTexture
in interface WebGLRenderingContext
public final void blendColor(float red, float green, float blue, float alpha)
blendColor
in interface WebGLRenderingContext
public final void blendEquation(int mode)
blendEquation
in interface WebGLRenderingContext
public final void blendEquationSeparate(int modeRGB, int modeAlpha)
blendEquationSeparate
in interface WebGLRenderingContext
public final void blendFunc(int sfactor, int dfactor)
blendFunc
in interface WebGLRenderingContext
public final void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha)
blendFuncSeparate
in interface WebGLRenderingContext
public final void bufferData(int target, ArrayBuffer data, int usage)
bufferData
in interface WebGLRenderingContext
public final void bufferData(int target, ArrayBufferView data, int usage)
bufferData
in interface WebGLRenderingContext
public final void bufferData(int target, double size, int usage)
bufferData
in interface WebGLRenderingContext
public final void bufferSubData(int target, double offset, ArrayBuffer data)
bufferSubData
in interface WebGLRenderingContext
public final void bufferSubData(int target, double offset, ArrayBufferView data)
bufferSubData
in interface WebGLRenderingContext
public final int checkFramebufferStatus(int target)
checkFramebufferStatus
in interface WebGLRenderingContext
public final void clear(int mask)
clear
in interface WebGLRenderingContext
public final void clearColor(float red, float green, float blue, float alpha)
clearColor
in interface WebGLRenderingContext
public final void clearDepth(float depth)
clearDepth
in interface WebGLRenderingContext
public final void clearStencil(int s)
clearStencil
in interface WebGLRenderingContext
public final void colorMask(boolean red, boolean green, boolean blue, boolean alpha)
colorMask
in interface WebGLRenderingContext
public final void compileShader(WebGLShader shader)
compileShader
in interface WebGLRenderingContext
public final void compressedTexImage2D(int target, int level, int internalformat, int width, int height, int border, ArrayBufferView data)
compressedTexImage2D
in interface WebGLRenderingContext
public final void compressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, ArrayBufferView data)
compressedTexSubImage2D
in interface WebGLRenderingContext
public final void copyTexImage2D(int target, int level, int internalformat, int x, int y, int width, int height, int border)
copyTexImage2D
in interface WebGLRenderingContext
public final void copyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x, int y, int width, int height)
copyTexSubImage2D
in interface WebGLRenderingContext
public final JsWebGLBuffer createBuffer()
createBuffer
in interface WebGLRenderingContext
public final JsWebGLFramebuffer createFramebuffer()
createFramebuffer
in interface WebGLRenderingContext
public final JsWebGLProgram createProgram()
createProgram
in interface WebGLRenderingContext
public final JsWebGLRenderbuffer createRenderbuffer()
createRenderbuffer
in interface WebGLRenderingContext
public final JsWebGLShader createShader(int type)
createShader
in interface WebGLRenderingContext
public final JsWebGLTexture createTexture()
createTexture
in interface WebGLRenderingContext
public final void cullFace(int mode)
cullFace
in interface WebGLRenderingContext
public final void deleteBuffer(WebGLBuffer buffer)
deleteBuffer
in interface WebGLRenderingContext
public final void deleteFramebuffer(WebGLFramebuffer framebuffer)
deleteFramebuffer
in interface WebGLRenderingContext
public final void deleteProgram(WebGLProgram program)
deleteProgram
in interface WebGLRenderingContext
public final void deleteRenderbuffer(WebGLRenderbuffer renderbuffer)
deleteRenderbuffer
in interface WebGLRenderingContext
public final void deleteShader(WebGLShader shader)
deleteShader
in interface WebGLRenderingContext
public final void deleteTexture(WebGLTexture texture)
deleteTexture
in interface WebGLRenderingContext
public final void depthFunc(int func)
depthFunc
in interface WebGLRenderingContext
public final void depthMask(boolean flag)
depthMask
in interface WebGLRenderingContext
public final void depthRange(float zNear, float zFar)
depthRange
in interface WebGLRenderingContext
public final void detachShader(WebGLProgram program, WebGLShader shader)
detachShader
in interface WebGLRenderingContext
public final void disable(int cap)
disable
in interface WebGLRenderingContext
public final void disableVertexAttribArray(int index)
disableVertexAttribArray
in interface WebGLRenderingContext
public final void drawArrays(int mode, int first, int count)
drawArrays
in interface WebGLRenderingContext
public final void drawElements(int mode, int count, int type, double offset)
drawElements
in interface WebGLRenderingContext
public final void enable(int cap)
enable
in interface WebGLRenderingContext
public final void enableVertexAttribArray(int index)
enableVertexAttribArray
in interface WebGLRenderingContext
public final void finish()
finish
in interface WebGLRenderingContext
public final void flush()
flush
in interface WebGLRenderingContext
public final void framebufferRenderbuffer(int target, int attachment, int renderbuffertarget, WebGLRenderbuffer renderbuffer)
framebufferRenderbuffer
in interface WebGLRenderingContext
public final void framebufferTexture2D(int target, int attachment, int textarget, WebGLTexture texture, int level)
framebufferTexture2D
in interface WebGLRenderingContext
public final void frontFace(int mode)
frontFace
in interface WebGLRenderingContext
public final void generateMipmap(int target)
generateMipmap
in interface WebGLRenderingContext
public final JsWebGLActiveInfo getActiveAttrib(WebGLProgram program, int index)
getActiveAttrib
in interface WebGLRenderingContext
public final JsWebGLActiveInfo getActiveUniform(WebGLProgram program, int index)
getActiveUniform
in interface WebGLRenderingContext
public final JsIndexable getAttachedShaders(WebGLProgram program)
getAttachedShaders
in interface WebGLRenderingContext
public final int getAttribLocation(WebGLProgram program, String name)
getAttribLocation
in interface WebGLRenderingContext
public final Object getBufferParameter(int target, int pname)
getBufferParameter
in interface WebGLRenderingContext
public final JsWebGLContextAttributes getContextAttributes()
getContextAttributes
in interface WebGLRenderingContext
public final int getError()
getError
in interface WebGLRenderingContext
public final Object getExtension(String name)
getExtension
in interface WebGLRenderingContext
public final Object getFramebufferAttachmentParameter(int target, int attachment, int pname)
getFramebufferAttachmentParameter
in interface WebGLRenderingContext
public final Object getParameter(int pname)
getParameter
in interface WebGLRenderingContext
public final String getProgramInfoLog(WebGLProgram program)
getProgramInfoLog
in interface WebGLRenderingContext
public final Object getProgramParameter(WebGLProgram program, int pname)
getProgramParameter
in interface WebGLRenderingContext
public final Object getRenderbufferParameter(int target, int pname)
getRenderbufferParameter
in interface WebGLRenderingContext
public final String getShaderInfoLog(WebGLShader shader)
getShaderInfoLog
in interface WebGLRenderingContext
public final Object getShaderParameter(WebGLShader shader, int pname)
getShaderParameter
in interface WebGLRenderingContext
public final JsWebGLShaderPrecisionFormat getShaderPrecisionFormat(int shadertype, int precisiontype)
getShaderPrecisionFormat
in interface WebGLRenderingContext
public final String getShaderSource(WebGLShader shader)
getShaderSource
in interface WebGLRenderingContext
public final Object getTexParameter(int target, int pname)
getTexParameter
in interface WebGLRenderingContext
public final Object getUniform(WebGLProgram program, WebGLUniformLocation location)
getUniform
in interface WebGLRenderingContext
public final JsWebGLUniformLocation getUniformLocation(WebGLProgram program, String name)
getUniformLocation
in interface WebGLRenderingContext
public final Object getVertexAttrib(int index, int pname)
getVertexAttrib
in interface WebGLRenderingContext
public final double getVertexAttribOffset(int index, int pname)
getVertexAttribOffset
in interface WebGLRenderingContext
public final void hint(int target, int mode)
hint
in interface WebGLRenderingContext
public final boolean isBuffer(WebGLBuffer buffer)
isBuffer
in interface WebGLRenderingContext
public final boolean isContextLost()
isContextLost
in interface WebGLRenderingContext
public final boolean isEnabled(int cap)
isEnabled
in interface WebGLRenderingContext
public final boolean isFramebuffer(WebGLFramebuffer framebuffer)
isFramebuffer
in interface WebGLRenderingContext
public final boolean isProgram(WebGLProgram program)
isProgram
in interface WebGLRenderingContext
public final boolean isRenderbuffer(WebGLRenderbuffer renderbuffer)
isRenderbuffer
in interface WebGLRenderingContext
public final boolean isShader(WebGLShader shader)
isShader
in interface WebGLRenderingContext
public final boolean isTexture(WebGLTexture texture)
isTexture
in interface WebGLRenderingContext
public final void lineWidth(float width)
lineWidth
in interface WebGLRenderingContext
public final void linkProgram(WebGLProgram program)
linkProgram
in interface WebGLRenderingContext
public final void pixelStorei(int pname, int param)
pixelStorei
in interface WebGLRenderingContext
public final void polygonOffset(float factor, float units)
polygonOffset
in interface WebGLRenderingContext
public final void readPixels(int x, int y, int width, int height, int format, int type, ArrayBufferView pixels)
readPixels
in interface WebGLRenderingContext
public final void releaseShaderCompiler()
releaseShaderCompiler
in interface WebGLRenderingContext
public final void renderbufferStorage(int target, int internalformat, int width, int height)
renderbufferStorage
in interface WebGLRenderingContext
public final void sampleCoverage(float value, boolean invert)
sampleCoverage
in interface WebGLRenderingContext
public final void scissor(int x, int y, int width, int height)
scissor
in interface WebGLRenderingContext
public final void shaderSource(WebGLShader shader, String string)
shaderSource
in interface WebGLRenderingContext
public final void stencilFunc(int func, int ref, int mask)
stencilFunc
in interface WebGLRenderingContext
public final void stencilFuncSeparate(int face, int func, int ref, int mask)
stencilFuncSeparate
in interface WebGLRenderingContext
public final void stencilMask(int mask)
stencilMask
in interface WebGLRenderingContext
public final void stencilMaskSeparate(int face, int mask)
stencilMaskSeparate
in interface WebGLRenderingContext
public final void stencilOp(int fail, int zfail, int zpass)
stencilOp
in interface WebGLRenderingContext
public final void stencilOpSeparate(int face, int fail, int zfail, int zpass)
stencilOpSeparate
in interface WebGLRenderingContext
public final void texImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, ArrayBufferView pixels)
texImage2D
in interface WebGLRenderingContext
public final void texImage2D(int target, int level, int internalformat, int format, int type, ImageData pixels)
texImage2D
in interface WebGLRenderingContext
public final void texImage2D(int target, int level, int internalformat, int format, int type, ImageElement image)
texImage2D
in interface WebGLRenderingContext
public final void texImage2D(int target, int level, int internalformat, int format, int type, CanvasElement canvas)
texImage2D
in interface WebGLRenderingContext
public final void texImage2D(int target, int level, int internalformat, int format, int type, VideoElement video)
texImage2D
in interface WebGLRenderingContext
public final void texParameterf(int target, int pname, float param)
texParameterf
in interface WebGLRenderingContext
public final void texParameteri(int target, int pname, int param)
texParameteri
in interface WebGLRenderingContext
public final void texSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, ArrayBufferView pixels)
texSubImage2D
in interface WebGLRenderingContext
public final void texSubImage2D(int target, int level, int xoffset, int yoffset, int format, int type, ImageData pixels)
texSubImage2D
in interface WebGLRenderingContext
public final void texSubImage2D(int target, int level, int xoffset, int yoffset, int format, int type, ImageElement image)
texSubImage2D
in interface WebGLRenderingContext
public final void texSubImage2D(int target, int level, int xoffset, int yoffset, int format, int type, CanvasElement canvas)
texSubImage2D
in interface WebGLRenderingContext
public final void texSubImage2D(int target, int level, int xoffset, int yoffset, int format, int type, VideoElement video)
texSubImage2D
in interface WebGLRenderingContext
public final void uniform1f(WebGLUniformLocation location, float x)
uniform1f
in interface WebGLRenderingContext
public final void uniform1fv(WebGLUniformLocation location, Float32Array v)
uniform1fv
in interface WebGLRenderingContext
public final void uniform1i(WebGLUniformLocation location, int x)
uniform1i
in interface WebGLRenderingContext
public final void uniform1iv(WebGLUniformLocation location, Int32Array v)
uniform1iv
in interface WebGLRenderingContext
public final void uniform2f(WebGLUniformLocation location, float x, float y)
uniform2f
in interface WebGLRenderingContext
public final void uniform2fv(WebGLUniformLocation location, Float32Array v)
uniform2fv
in interface WebGLRenderingContext
public final void uniform2i(WebGLUniformLocation location, int x, int y)
uniform2i
in interface WebGLRenderingContext
public final void uniform2iv(WebGLUniformLocation location, Int32Array v)
uniform2iv
in interface WebGLRenderingContext
public final void uniform3f(WebGLUniformLocation location, float x, float y, float z)
uniform3f
in interface WebGLRenderingContext
public final void uniform3fv(WebGLUniformLocation location, Float32Array v)
uniform3fv
in interface WebGLRenderingContext
public final void uniform3i(WebGLUniformLocation location, int x, int y, int z)
uniform3i
in interface WebGLRenderingContext
public final void uniform3iv(WebGLUniformLocation location, Int32Array v)
uniform3iv
in interface WebGLRenderingContext
public final void uniform4f(WebGLUniformLocation location, float x, float y, float z, float w)
uniform4f
in interface WebGLRenderingContext
public final void uniform4fv(WebGLUniformLocation location, Float32Array v)
uniform4fv
in interface WebGLRenderingContext
public final void uniform4i(WebGLUniformLocation location, int x, int y, int z, int w)
uniform4i
in interface WebGLRenderingContext
public final void uniform4iv(WebGLUniformLocation location, Int32Array v)
uniform4iv
in interface WebGLRenderingContext
public final void uniformMatrix2fv(WebGLUniformLocation location, boolean transpose, Float32Array array)
uniformMatrix2fv
in interface WebGLRenderingContext
public final void uniformMatrix3fv(WebGLUniformLocation location, boolean transpose, Float32Array array)
uniformMatrix3fv
in interface WebGLRenderingContext
public final void uniformMatrix4fv(WebGLUniformLocation location, boolean transpose, Float32Array array)
uniformMatrix4fv
in interface WebGLRenderingContext
public final void useProgram(WebGLProgram program)
useProgram
in interface WebGLRenderingContext
public final void validateProgram(WebGLProgram program)
validateProgram
in interface WebGLRenderingContext
public final void vertexAttrib1f(int indx, float x)
vertexAttrib1f
in interface WebGLRenderingContext
public final void vertexAttrib1fv(int indx, Float32Array values)
vertexAttrib1fv
in interface WebGLRenderingContext
public final void vertexAttrib2f(int indx, float x, float y)
vertexAttrib2f
in interface WebGLRenderingContext
public final void vertexAttrib2fv(int indx, Float32Array values)
vertexAttrib2fv
in interface WebGLRenderingContext
public final void vertexAttrib3f(int indx, float x, float y, float z)
vertexAttrib3f
in interface WebGLRenderingContext
public final void vertexAttrib3fv(int indx, Float32Array values)
vertexAttrib3fv
in interface WebGLRenderingContext
public final void vertexAttrib4f(int indx, float x, float y, float z, float w)
vertexAttrib4f
in interface WebGLRenderingContext
public final void vertexAttrib4fv(int indx, Float32Array values)
vertexAttrib4fv
in interface WebGLRenderingContext
public final void vertexAttribPointer(int indx, int size, int type, boolean normalized, int stride, double offset)
vertexAttribPointer
in interface WebGLRenderingContext
public final void viewport(int x, int y, int width, int height)
viewport
in interface WebGLRenderingContext
Copyright © 2018. All rights reserved.