Interface WebGL2RenderingContext
-
- All Superinterfaces:
org.teavm.jso.JSObject
,org.teavm.jso.webgl.WebGLRenderingContext
public interface WebGL2RenderingContext extends org.teavm.jso.webgl.WebGLRenderingContext
Copyright (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
-
-
Field Summary
Fields Modifier and Type Field Description static int
ANY_SAMPLES_PASSED
static int
DEPTH_COMPONENT32F
static int
DEPTH24_STENCIL8
static int
DRAW_FRAMEBUFFER
static int
QUERY_RESULT
static int
QUERY_RESULT_AVAILABLE
static int
R8
static int
READ_FRAMEBUFFER
static int
RED
static int
RGB8
static int
RGBA8
static int
TEXTURE_MAX_ANISOTROPY_EXT
static int
TEXTURE_MAX_LEVEL
static int
UNSIGNED_INT_24_8
-
Fields inherited from interface org.teavm.jso.webgl.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
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
beginQuery(int p1, WebGLQuery obj)
void
bindVertexArray(WebGLVertexArray obj)
void
blitFramebuffer(int p1, int p2, int p3, int p4, int p5, int p6, int p7, int p8, int p9, int p10)
WebGLQuery
createQuery()
WebGLVertexArray
createVertexArray()
void
deleteQuery(WebGLQuery obj)
void
deleteVertexArray(WebGLVertexArray obj)
void
drawArraysInstanced(int p1, int p2, int p3, int p4)
void
drawBuffers(int[] p1)
void
drawElementsInstanced(int p1, int p2, int p3, int p4, int p5)
void
endQuery(int p1)
int
getQueryParameter(WebGLQuery obj, int p2)
void
readBuffer(int p1)
void
renderbufferStorageMultisample(int p1, int p2, int p3, int p4, int p5)
void
vertexAttribDivisor(int p1, int p2)
-
Methods inherited from interface org.teavm.jso.webgl.WebGLRenderingContext
activeTexture, attachShader, bindAttribLocation, bindBuffer, bindFramebuffer, bindRenderbuffer, bindTexture, blendColor, blendEquation, blendEquationSeparate, blendFunc, blendFuncSeparate, bufferData, bufferData, bufferData, bufferSubData, bufferSubData, checkFramebufferStatus, clear, clearColor, clearDepth, clearStencil, colorMask, compileShader, compressedTexImage2D, compressedTexSubImage2D, copyTexImage2D, copyTexSubImage2D, createBuffer, createFramebuffer, createProgram, createRenderbuffer, createShader, createTexture, cullFace, deleteBuffer, deleteFramebuffer, deleteProgram, deleteRenderbuffer, deleteShader, deleteTexture, depthFunc, depthMask, depthRange, detachShader, disable, disableVertexAttribArray, drawArrays, drawElements, enable, enableVertexAttribArray, finish, flush, framebufferRenderbuffer, framebufferTexture2D, frontFace, generateMipmap, getActiveAttrib, getActiveUniform, getAttachedShaders, getAttachedShadersArray, getAttribLocation, getBufferParameter, getCanvas, getContextAttributes, getDrawingBufferHeight, getDrawingBufferWidth, getError, getExtension, getFramebufferAttachmentParameter, getParameter, getParameterf, getParameteri, getParameterString, getProgramInfoLog, getProgramParameter, getProgramParameterb, getProgramParameteri, getRenderbufferParameter, getShaderInfoLog, getShaderParameter, getShaderParameterb, getShaderParameteri, getShaderPrecisionFormat, getShaderSource, getSupportedExtensionArray, getSupportedExtensions, getTexParameter, getUniform, getUniformLocation, getVertexAttrib, getVertexAttribOffset, hint, isBuffer, isContextLost, isEnabled, isFramebuffer, isProgram, isRenderbuffer, isShader, isTexture, lineWidth, linkProgram, pixelStorei, polygonOffset, readPixels, renderbufferStorage, sampleCoverage, scissor, shaderSource, stencilFunc, stencilFuncSeparate, stencilMask, stencilMaskSeparate, stencilOp, stencilOpSeparate, texImage2D, texImage2D, texImage2D, texImage2D, texParameterf, texParameteri, texSubImage2D, texSubImage2D, texSubImage2D, texSubImage2D, uniform1f, uniform1fv, uniform1fv, uniform1fv, uniform1i, uniform1iv, uniform1iv, uniform1iv, uniform2f, uniform2fv, uniform2fv, uniform2fv, uniform2i, uniform2iv, uniform2iv, uniform2iv, uniform3f, uniform3fv, uniform3fv, uniform3fv, uniform3i, uniform3iv, uniform3iv, uniform3iv, uniform4f, uniform4fv, uniform4fv, uniform4fv, uniform4i, uniform4iv, uniform4iv, uniform4iv, uniformMatrix2fv, uniformMatrix2fv, uniformMatrix2fv, uniformMatrix3fv, uniformMatrix3fv, uniformMatrix3fv, uniformMatrix4fv, uniformMatrix4fv, uniformMatrix4fv, useProgram, validateProgram, vertexAttrib1f, vertexAttrib1fv, vertexAttrib1fv, vertexAttrib1fv, vertexAttrib2f, vertexAttrib2fv, vertexAttrib2fv, vertexAttrib2fv, vertexAttrib3f, vertexAttrib3fv, vertexAttrib3fv, vertexAttrib3fv, vertexAttrib4f, vertexAttrib4fv, vertexAttrib4fv, vertexAttrib4fv, vertexAttribPointer, viewport
-
-
-
-
Field Detail
-
TEXTURE_MAX_LEVEL
static final int TEXTURE_MAX_LEVEL
- See Also:
- Constant Field Values
-
TEXTURE_MAX_ANISOTROPY_EXT
static final int TEXTURE_MAX_ANISOTROPY_EXT
- See Also:
- Constant Field Values
-
UNSIGNED_INT_24_8
static final int UNSIGNED_INT_24_8
- See Also:
- Constant Field Values
-
ANY_SAMPLES_PASSED
static final int ANY_SAMPLES_PASSED
- See Also:
- Constant Field Values
-
QUERY_RESULT
static final int QUERY_RESULT
- See Also:
- Constant Field Values
-
QUERY_RESULT_AVAILABLE
static final int QUERY_RESULT_AVAILABLE
- See Also:
- Constant Field Values
-
DEPTH24_STENCIL8
static final int DEPTH24_STENCIL8
- See Also:
- Constant Field Values
-
DEPTH_COMPONENT32F
static final int DEPTH_COMPONENT32F
- See Also:
- Constant Field Values
-
READ_FRAMEBUFFER
static final int READ_FRAMEBUFFER
- See Also:
- Constant Field Values
-
DRAW_FRAMEBUFFER
static final int DRAW_FRAMEBUFFER
- See Also:
- Constant Field Values
-
RGB8
static final int RGB8
- See Also:
- Constant Field Values
-
RGBA8
static final int RGBA8
- See Also:
- Constant Field Values
-
R8
static final int R8
- See Also:
- Constant Field Values
-
RED
static final int RED
- See Also:
- Constant Field Values
-
-
Method Detail
-
createQuery
WebGLQuery createQuery()
-
beginQuery
void beginQuery(int p1, WebGLQuery obj)
-
endQuery
void endQuery(int p1)
-
deleteQuery
void deleteQuery(WebGLQuery obj)
-
getQueryParameter
int getQueryParameter(WebGLQuery obj, int p2)
-
createVertexArray
WebGLVertexArray createVertexArray()
-
deleteVertexArray
void deleteVertexArray(WebGLVertexArray obj)
-
bindVertexArray
void bindVertexArray(WebGLVertexArray obj)
-
renderbufferStorageMultisample
void renderbufferStorageMultisample(int p1, int p2, int p3, int p4, int p5)
-
blitFramebuffer
void blitFramebuffer(int p1, int p2, int p3, int p4, int p5, int p6, int p7, int p8, int p9, int p10)
-
drawBuffers
void drawBuffers(int[] p1)
-
readBuffer
void readBuffer(int p1)
-
vertexAttribDivisor
void vertexAttribDivisor(int p1, int p2)
-
drawArraysInstanced
void drawArraysInstanced(int p1, int p2, int p3, int p4)
-
drawElementsInstanced
void drawElementsInstanced(int p1, int p2, int p3, int p4, int p5)
-
-