Buckets:
| ; | |
| /** | |
| * The following defined constants and descriptions are directly ported from https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API/Constants | |
| * | |
| * Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ | |
| * | |
| * Contributors | |
| * | |
| * See: https://developer.mozilla.org/en-US/profiles/Sheppy | |
| * See: https://developer.mozilla.org/en-US/profiles/fscholz | |
| * See: https://developer.mozilla.org/en-US/profiles/AtiX | |
| * See: https://developer.mozilla.org/en-US/profiles/Sebastianz | |
| * | |
| * These constants are defined on the WebGLRenderingContext / WebGL2RenderingContext interface | |
| */ | |
| Object.defineProperty(exports, "__esModule", { value: true }); | |
| // Clearing buffers | |
| // Constants passed to WebGLRenderingContext.clear() to clear buffer masks | |
| /** | |
| * Passed to clear to clear the current depth buffer | |
| * @constant {number} | |
| */ | |
| exports.GL_DEPTH_BUFFER_BIT = 0x00000100; | |
| /** | |
| * Passed to clear to clear the current stencil buffer | |
| * @constant {number} | |
| */ | |
| exports.GL_STENCIL_BUFFER_BIT = 0x00000400; | |
| /** | |
| * Passed to clear to clear the current color buffer | |
| * @constant {number} | |
| */ | |
| exports.GL_COLOR_BUFFER_BIT = 0x00004000; | |
| // Rendering primitives | |
| // Constants passed to WebGLRenderingContext.drawElements() or WebGLRenderingContext.drawArrays() to specify what kind of primitive to render | |
| /** | |
| * Passed to drawElements or drawArrays to draw single points | |
| * @constant {number} | |
| */ | |
| exports.GL_POINTS = 0x0000; | |
| /** | |
| * Passed to drawElements or drawArrays to draw lines. Each vertex connects to the one after it | |
| * @constant {number} | |
| */ | |
| exports.GL_LINES = 0x0001; | |
| /** | |
| * Passed to drawElements or drawArrays to draw lines. Each set of two vertices is treated as a separate line segment | |
| * @constant {number} | |
| */ | |
| exports.GL_LINE_LOOP = 0x0002; | |
| /** | |
| * Passed to drawElements or drawArrays to draw a connected group of line segments from the first vertex to the last | |
| * @constant {number} | |
| */ | |
| exports.GL_LINE_STRIP = 0x0003; | |
| /** | |
| * Passed to drawElements or drawArrays to draw triangles. Each set of three vertices creates a separate triangle | |
| * @constant {number} | |
| */ | |
| exports.GL_TRIANGLES = 0x0004; | |
| /** | |
| * Passed to drawElements or drawArrays to draw a connected group of triangles | |
| * @constant {number} | |
| */ | |
| exports.GL_TRIANGLE_STRIP = 0x0005; | |
| /** | |
| * Passed to drawElements or drawArrays to draw a connected group of triangles. Each vertex connects to the previous and the first vertex in the fan | |
| * @constant {number} | |
| */ | |
| exports.GL_TRIANGLE_FAN = 0x0006; | |
| // Blending modes | |
| // Constants passed to WebGLRenderingContext.blendFunc() or WebGLRenderingContext.blendFuncSeparate() to specify the blending mode (for both, RBG and alpha, or separately) | |
| /** | |
| * Passed to blendFunc or blendFuncSeparate to turn off a component | |
| * @constant {number} | |
| */ | |
| exports.GL_ZERO = 0; | |
| /** | |
| * Passed to blendFunc or blendFuncSeparate to turn on a component | |
| * @constant {number} | |
| */ | |
| exports.GL_ONE = 1; | |
| /** | |
| * Passed to blendFunc or blendFuncSeparate to multiply a component by the source elements color | |
| * @constant {number} | |
| */ | |
| exports.GL_SRC_COLOR = 0x0300; | |
| /** | |
| * Passed to blendFunc or blendFuncSeparate to multiply a component by one minus the source elements color | |
| * @constant {number} | |
| */ | |
| exports.GL_ONE_MINUS_SRC_COLOR = 0x0301; | |
| /** | |
| * Passed to blendFunc or blendFuncSeparate to multiply a component by the source's alpha | |
| * @constant {number} | |
| */ | |
| exports.GL_SRC_ALPHA = 0x0302; | |
| /** | |
| * Passed to blendFunc or blendFuncSeparate to multiply a component by one minus the source's alpha | |
| * @constant {number} | |
| */ | |
| exports.GL_ONE_MINUS_SRC_ALPHA = 0x0303; | |
| /** | |
| * Passed to blendFunc or blendFuncSeparate to multiply a component by the destination's alpha | |
| * @constant {number} | |
| */ | |
| exports.GL_DST_ALPHA = 0x0304; | |
| /** | |
| * Passed to blendFunc or blendFuncSeparate to multiply a component by one minus the destination's alpha | |
| * @constant {number} | |
| */ | |
| exports.GL_ONE_MINUS_DST_ALPHA = 0x0305; | |
| /** | |
| * Passed to blendFunc or blendFuncSeparate to multiply a component by the destination's color | |
| * @constant {number} | |
| */ | |
| exports.GL_DST_COLOR = 0x0306; | |
| /** | |
| * Passed to blendFunc or blendFuncSeparate to multiply a component by one minus the destination's color | |
| * @constant {number} | |
| */ | |
| exports.GL_ONE_MINUS_DST_COLOR = 0x0307; | |
| /** | |
| * Passed to blendFunc or blendFuncSeparate to multiply a component by the minimum of source's alpha or one minus the destination's alpha | |
| * @constant {number} | |
| */ | |
| exports.GL_SRC_ALPHA_SATURATE = 0x0308; | |
| /** | |
| * Passed to blendFunc or blendFuncSeparate to specify a constant color blend function | |
| * @constant {number} | |
| */ | |
| exports.GL_CONSTANT_COLOR = 0x8001; | |
| /** | |
| * Passed to blendFunc or blendFuncSeparate to specify one minus a constant color blend function | |
| * @constant {number} | |
| */ | |
| exports.GL_ONE_MINUS_CONSTANT_COLOR = 0x8002; | |
| /** | |
| * Passed to blendFunc or blendFuncSeparate to specify a constant alpha blend function | |
| * @constant {number} | |
| */ | |
| exports.GL_CONSTANT_ALPHA = 0x8003; | |
| /** | |
| * Passed to blendFunc or blendFuncSeparate to specify one minus a constant alpha blend function | |
| * @constant {number} | |
| */ | |
| exports.GL_ONE_MINUS_CONSTANT_ALPHA = 0x8004; | |
| // Blending equations | |
| // Constants passed to WebGLRenderingContext.blendEquation() or WebGLRenderingContext.blendEquationSeparate() to control how the blending is calculated (for both, RBG and alpha, or separately) | |
| /** | |
| * Passed to blendEquation or blendEquationSeparate to set an addition blend function | |
| * @constant {number} | |
| */ | |
| exports.GL_FUNC_ADD = 0x8006; | |
| /** | |
| * Passed to blendEquation or blendEquationSeparate to specify a subtraction blend function (source - destination) | |
| * @constant {number} | |
| */ | |
| exports.GL_FUNC_SUBSTRACT = 0x800a; | |
| /** | |
| * Passed to blendEquation or blendEquationSeparate to specify a reverse subtraction blend function (destination - source) | |
| * @constant {number} | |
| */ | |
| exports.GL_FUNC_REVERSE_SUBTRACT = 0x800b; | |
| // Getting GL parameter information | |
| // Constants passed to WebGLRenderingContext.getParameter() to specify what information to return | |
| /** | |
| * Passed to getParameter to get the current RGB blend function | |
| * @constant {number} | |
| */ | |
| exports.GL_BLEND_EQUATION = 0x8009; | |
| /** | |
| * Passed to getParameter to get the current RGB blend function. Same as BLEND_EQUATION | |
| * @constant {number} | |
| */ | |
| exports.GL_BLEND_EQUATION_RGB = 0x8009; | |
| /** | |
| * Passed to getParameter to get the current alpha blend function. Same as BLEND_EQUATION | |
| * @constant {number} | |
| */ | |
| exports.GL_BLEND_EQUATION_ALPHA = 0x883d; | |
| /** | |
| * Passed to getParameter to get the current destination RGB blend function | |
| * @constant {number} | |
| */ | |
| exports.GL_BLEND_DST_RGB = 0x80c8; | |
| /** | |
| * Passed to getParameter to get the current source RGB blend function | |
| * @constant {number} | |
| */ | |
| exports.GL_BLEND_SRC_RGB = 0x80c9; | |
| /** | |
| * Passed to getParameter to get the current destination alpha blend function | |
| * @constant {number} | |
| */ | |
| exports.GL_BLEND_DST_ALPHA = 0x80ca; | |
| /** | |
| * Passed to getParameter to get the current source alpha blend function | |
| * @constant {number} | |
| */ | |
| exports.GL_BLEND_SRC_ALPHA = 0x80cb; | |
| /** | |
| * Passed to getParameter to return a the current blend color | |
| * @constant {number} | |
| */ | |
| exports.GL_BLEND_COLOR = 0x8005; | |
| /** | |
| * Passed to getParameter to get the array buffer binding | |
| * @constant {number} | |
| */ | |
| exports.GL_ARRAY_BUFFER_BINDING = 0x8894; | |
| /** | |
| * Passed to getParameter to get the current element array buffer | |
| * @constant {number} | |
| */ | |
| exports.GL_ELEMENT_ARRAY_BUFFER_BINDING = 0x8895; | |
| /** | |
| * Passed to getParameter to get the current lineWidth (set by the lineWidth method) | |
| * @constant {number} | |
| */ | |
| exports.GL_LINE_WIDTH = 0x0b21; | |
| /** | |
| * Passed to getParameter to get the current size of a point drawn with gl.POINTS | |
| * @constant {number} | |
| */ | |
| exports.GL_ALIASED_POINT_SIZE_RANGE = 0x846d; | |
| /** | |
| * Passed to getParameter to get the range of available widths for a line. Returns a length-2 array with the lo value at 0, and hight at 1 | |
| * @constant {number} | |
| */ | |
| exports.GL_ALIASED_LINE_WIDTH_RANGE = 0x846e; | |
| /** | |
| * Passed to getParameter to get the current value of cullFace. Should return FRONT, BACK, or FRONT_AND_BACK | |
| * @constant {number} | |
| */ | |
| exports.GL_CULL_FACE_MODE = 0x0b45; | |
| /** | |
| * Passed to getParameter to determine the current value of frontFace. Should return CW or CCW | |
| * @constant {number} | |
| */ | |
| exports.GL_FRONT_FACE = 0x0b46; | |
| /** | |
| * Passed to getParameter to return a length-2 array of floats giving the current depth range | |
| * @constant {number} | |
| */ | |
| exports.GL_DEPTH_RANGE = 0x0b70; | |
| /** | |
| * Passed to getParameter to determine if the depth write mask is enabled | |
| * @constant {number} | |
| */ | |
| exports.GL_DEPTH_WRITEMASK = 0x0b72; | |
| /** | |
| * Passed to getParameter to determine the current depth clear value | |
| * @constant {number} | |
| */ | |
| exports.GL_DEPTH_CLEAR_VALUE = 0x0b73; | |
| /** | |
| * Passed to getParameter to get the current depth function. Returns NEVER, ALWAYS, LESS, EQUAL, LEQUAL, GREATER, GEQUAL, or NOTEQUAL | |
| * @constant {number} | |
| */ | |
| exports.GL_DEPTH_FUNC = 0x0b74; | |
| /** | |
| * Passed to getParameter to get the value the stencil will be cleared to | |
| * @constant {number} | |
| */ | |
| exports.GL_STENCIL_CLEAR_VALUE = 0x0b91; | |
| /** | |
| * Passed to getParameter to get the current stencil function. Returns NEVER, ALWAYS, LESS, EQUAL, LEQUAL, GREATER, GEQUAL, or NOTEQUAL | |
| * @constant {number} | |
| */ | |
| exports.GL_STENCIL_FUNC = 0x0b92; | |
| /** | |
| * Passed to getParameter to get the current stencil fail function. Should return KEEP, REPLACE, INCR, DECR, INVERT, INCR_WRAP, or DECR_WRAP | |
| * @constant {number} | |
| */ | |
| exports.GL_STENCIL_FAIL = 0x0b94; | |
| /** | |
| * Passed to getParameter to get the current stencil fail function should the depth buffer test fail. Should return KEEP, REPLACE, INCR, DECR, INVERT, INCR_WRAP, or DECR_WRAP | |
| * @constant {number} | |
| */ | |
| exports.GL_STENCIL_PASS_DEPTH_FAIL = 0x0b95; | |
| /** | |
| * Passed to getParameter to get the current stencil fail function should the depth buffer test pass. Should return KEEP, REPLACE, INCR, DECR, INVERT, INCR_WRAP, or DECR_WRAP | |
| * @constant {number} | |
| */ | |
| exports.GL_STENCIL_PASS_DEPTH_PASS = 0x0b96; | |
| /** | |
| * Passed to getParameter to get the reference value used for stencil tests | |
| * @constant {number} | |
| */ | |
| exports.GL_STENCIL_REF = 0x0b97; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_STENCIL_VALUE_MASK = 0x0b93; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_STENCIL_WRITEMASK = 0x0b98; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_STENCIL_BACK_FUNC = 0x8800; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_STENCIL_BACK_FAIL = 0x8801; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_STENCIL_BACK_PASS_DEPTH_FAIL = 0x8802; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_STENCIL_BACK_PASS_DEPTH_PASS = 0x8803; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_STENCIL_BACK_REF = 0x8ca3; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_STENCIL_BACK_VALUE_MASK = 0x8ca4; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_STENCIL_BACK_WRITEMASK = 0x8ca5; | |
| /** | |
| * Returns an Int32Array with four elements for the current viewport dimensions | |
| * @constant {number} | |
| */ | |
| exports.GL_VIEWPORT = 0x0ba2; | |
| /** | |
| * Returns an Int32Array with four elements for the current scissor box dimensions | |
| * @constant {number} | |
| */ | |
| exports.GL_SCISSOR_BOX = 0x0c10; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_COLOR_CLEAR_VALUE = 0x0c22; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_COLOR_WRITEMASK = 0x0c23; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_UNPACK_ALIGNMENT = 0x0cf5; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_PACK_ALIGNMENT = 0x0d05; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_MAX_TEXTURE_SIZE = 0x0d33; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_MAX_VIEWPORT_DIMS = 0x0d3a; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_SUBPIXEL_BITS = 0x0d50; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_RED_BITS = 0x0d52; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_GREEN_BITS = 0x0d53; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_BLUE_BITS = 0x0d54; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_ALPHA_BITS = 0x0d55; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_DEPTH_BITS = 0x0d56; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_STENCIL_BITS = 0x0d57; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_POLYGON_OFFSET_UNITS = 0x2a00; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_POLYGON_OFFSET_FACTOR = 0x8038; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_TEXTURE_BINDING_2D = 0x8069; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_SAMPLE_BUFFERS = 0x80a8; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_SAMPLES = 0x80a9; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_SAMPLE_COVERAGE_VALUE = 0x80aa; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_SAMPLE_COVERAGE_INVERT = 0x80ab; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_COMPRESSED_TEXTURE_FORMATS = 0x86a3; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_VENDOR = 0x1f00; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_RENDERER = 0x1f01; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_VERSION = 0x1f02; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_IMPLEMENTATION_COLOR_READ_TYPE = 0x8b9a; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_IMPLEMENTATION_COLOR_READ_FORMAT = 0x8b9b; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_BROWSER_DEFAULT_WEBGL = 0x9244; | |
| // Buffers | |
| // Constants passed to WebGLRenderingContext.bufferData(), WebGLRenderingContext.bufferSubData(), WebGLRenderingContext.bindBuffer(), or WebGLRenderingContext.getBufferParameter() | |
| /** | |
| * Passed to bufferData as a hint about whether the contents of the buffer are likely to be used often and not change often | |
| * @constant {number} | |
| */ | |
| exports.GL_STATIC_DRAW = 0x88e4; | |
| /** | |
| * Passed to bufferData as a hint about whether the contents of the buffer are likely to not be used often | |
| * @constant {number} | |
| */ | |
| exports.GL_STREAM_DRAW = 0x88e0; | |
| /** | |
| * Passed to bufferData as a hint about whether the contents of the buffer are likely to be used often and change often | |
| * @constant {number} | |
| */ | |
| exports.GL_DYNAMIC_DRAW = 0x88e8; | |
| /** | |
| * Passed to bindBuffer or bufferData to specify the type of buffer being used | |
| * @constant {number} | |
| */ | |
| exports.GL_ARRAY_BUFFER = 0x8892; | |
| /** | |
| * Passed to bindBuffer or bufferData to specify the type of buffer being used | |
| * @constant {number} | |
| */ | |
| exports.GL_ELEMENT_ARRAY_BUFFER = 0x8893; | |
| /** | |
| * Passed to getBufferParameter to get a buffer's size | |
| * @constant {number} | |
| */ | |
| exports.GL_BUFFER_SIZE = 0x8764; | |
| /** | |
| * Passed to getBufferParameter to get the hint for the buffer passed in when it was created | |
| * @constant {number} | |
| */ | |
| exports.GL_BUFFER_USAGE = 0x8765; | |
| // Vertex attributes | |
| // Constants passed to WebGLRenderingContext.getVertexAttrib() | |
| /** | |
| * Passed to getVertexAttrib to read back the current vertex attribute | |
| * @constant {number} | |
| */ | |
| exports.GL_CURRENT_VERTEX_ATTRIB = 0x8626; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_VERTEX_ATTRIB_ARRAY_ENABLED = 0x8622; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_VERTEX_ATTRIB_ARRAY_SIZE = 0x8623; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_VERTEX_ATTRIB_ARRAY_STRIDE = 0x8624; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_VERTEX_ATTRIB_ARRAY_TYPE = 0x8625; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_VERTEX_ATTRIB_ARRAY_NORMALIZED = 0x886a; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_VERTEX_ATTRIB_ARRAY_POINTER = 0x8645; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = 0x889f; | |
| // Culling | |
| // Constants passed to WebGLRenderingContext.cullFace() | |
| /** | |
| * Passed to enable/disable to turn on/off culling. Can also be used with getParameter to find the current culling method | |
| * @constant {number} | |
| */ | |
| exports.GL_CULL_FACE = 0x0b44; | |
| /** | |
| * Passed to cullFace to specify that only front faces should be culled | |
| * @constant {number} | |
| */ | |
| exports.GL_FRONT = 0x0404; | |
| /** | |
| * Passed to cullFace to specify that only back faces should be culled | |
| * @constant {number} | |
| */ | |
| exports.GL_BACK = 0x0405; | |
| /** | |
| * Passed to cullFace to specify that front and back faces should be culled | |
| * @constant {number} | |
| */ | |
| exports.GL_FRONT_AND_BACK = 0x0408; | |
| // Enabling and disabling | |
| // Constants passed to WebGLRenderingContext.enable() or WebGLRenderingContext.disable() | |
| /** | |
| * Passed to enable/disable to turn on/off blending. Can also be used with getParameter to find the current blending method | |
| * @constant {number} | |
| */ | |
| exports.GL_BLEND = 0x0be2; | |
| /** | |
| * Passed to enable/disable to turn on/off the depth test. Can also be used with getParameter to query the depth test | |
| * @constant {number} | |
| */ | |
| exports.GL_DEPTH_TEST = 0x0b71; | |
| /** | |
| * Passed to enable/disable to turn on/off dithering. Can also be used with getParameter to find the current dithering method | |
| * @constant {number} | |
| */ | |
| exports.GL_DITHER = 0x0bd0; | |
| /** | |
| * Passed to enable/disable to turn on/off the polygon offset. Useful for rendering hidden-line images, decals, and or solids with highlighted edges. Can also be used with getParameter to query the scissor test | |
| * @constant {number} | |
| */ | |
| exports.GL_POLYGON_OFFSET_FILL = 0x8037; | |
| /** | |
| * Passed to enable/disable to turn on/off the alpha to coverage. Used in multi-sampling alpha channels | |
| * @constant {number} | |
| */ | |
| exports.GL_SAMPLE_ALPHA_TO_COVERAGE = 0x809e; | |
| /** | |
| * Passed to enable/disable to turn on/off the sample coverage. Used in multi-sampling | |
| * @constant {number} | |
| */ | |
| exports.GL_SAMPLE_COVERAGE = 0x80a0; | |
| /** | |
| * Passed to enable/disable to turn on/off the scissor test. Can also be used with getParameter to query the scissor test | |
| * @constant {number} | |
| */ | |
| exports.GL_SCISSOR_TEST = 0x0c11; | |
| /** | |
| * Passed to enable/disable to turn on/off the stencil test. Can also be used with getParameter to query the stencil test | |
| * @constant {number} | |
| */ | |
| exports.GL_STENCIL_TEST = 0x0b90; | |
| // Errors | |
| // Constants returned from WebGLRenderingContext.getError() | |
| /** | |
| * Returned from getError | |
| * @constant {number} | |
| */ | |
| exports.GL_NO_ERROR = 0; | |
| /** | |
| * Returned from getError | |
| * @constant {number} | |
| */ | |
| exports.GL_INVALID_ENUM = 0x0500; | |
| /** | |
| * Returned from getError | |
| * @constant {number} | |
| */ | |
| exports.GL_INVALID_VALUE = 0x0501; | |
| /** | |
| * Returned from getError | |
| * @constant {number} | |
| */ | |
| exports.GL_INVALID_OPERATION = 0x0502; | |
| /** | |
| * Returned from getError | |
| * @constant {number} | |
| */ | |
| exports.GL_OUT_OF_MEMORY = 0x0505; | |
| /** | |
| * Returned from getError | |
| * @constant {number} | |
| */ | |
| exports.GL_CONTEXT_LOST_WEBGL = 0x9242; | |
| // Front face directions | |
| // Constants passed to WebGLRenderingContext.frontFace() | |
| /** | |
| * Passed to frontFace to specify the front face of a polygon is drawn in the clockwise direction, | |
| * @constant {number} | |
| */ | |
| exports.GL_CW = 0x0900; | |
| /** | |
| * Passed to frontFace to specify the front face of a polygon is drawn in the counter clockwise direction | |
| * @constant {number} | |
| */ | |
| exports.GL_CCW = 0x0901; | |
| // Hints | |
| // Constants passed to WebGLRenderingContext.hint() | |
| /** | |
| * There is no preference for this behavior | |
| * @constant {number} | |
| */ | |
| exports.GL_DONT_CARE = 0x1100; | |
| /** | |
| * The most efficient behavior should be used | |
| * @constant {number} | |
| */ | |
| exports.GL_FASTEST = 0x1101; | |
| /** | |
| * The most correct or the highest quality option should be used | |
| * @constant {number} | |
| */ | |
| exports.GL_NICEST = 0x1102; | |
| /** | |
| * Hint for the quality of filtering when generating mipmap images with WebGLRenderingContext.generateMipmap() | |
| * @constant {number} | |
| */ | |
| exports.GL_GENERATE_MIPMAP_HINT = 0x8192; | |
| // Data types | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_BYTE = 0x1400; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_UNSIGNED_BYTE = 0x1401; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_SHORT = 0x1402; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_UNSIGNED_SHORT = 0x1403; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_INT = 0x1404; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_UNSIGNED_INT = 0x1405; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_FLOAT = 0x1406; | |
| // Pixel formats | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_DEPTH_COMPONENT = 0x1902; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_ALPHA = 0x1906; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_RGB = 0x1907; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_RGBA = 0x1908; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_LUMINANCE = 0x1909; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_LUMINANCE_ALPHA = 0x190a; | |
| // Pixel types | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_UNSIGNED_SHORT_4_4_4_4 = 0x8033; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_UNSIGNED_SHORT_5_5_5_1 = 0x8034; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_UNSIGNED_SHORT_5_6_5 = 0x8363; | |
| // Shaders | |
| // Constants passed to WebGLRenderingContext.getShaderParameter() | |
| /** | |
| * Passed to createShader to define a fragment shader | |
| * @constant {number} | |
| */ | |
| exports.GL_FRAGMENT_SHADER = 0x8b30; | |
| /** | |
| * Passed to createShader to define a vertex shader | |
| * @constant {number} | |
| */ | |
| exports.GL_VERTEX_SHADER = 0x8b31; | |
| /** | |
| * Passed to getShaderParamter to get the status of the compilation. Returns false if the shader was not compiled. You can then query getShaderInfoLog to find the exact error | |
| * @constant {number} | |
| */ | |
| exports.GL_COMPILE_STATUS = 0x8b81; | |
| /** | |
| * Passed to getShaderParamter to determine if a shader was deleted via deleteShader. Returns true if it was, false otherwise | |
| * @constant {number} | |
| */ | |
| exports.GL_DELETE_STATUS = 0x8b80; | |
| /** | |
| * Passed to getProgramParameter after calling linkProgram to determine if a program was linked correctly. Returns false if there were errors. Use getProgramInfoLog to find the exact error | |
| * @constant {number} | |
| */ | |
| exports.GL_LINK_STATUS = 0x8b82; | |
| /** | |
| * Passed to getProgramParameter after calling validateProgram to determine if it is valid. Returns false if errors were found | |
| * @constant {number} | |
| */ | |
| exports.GL_VALIDATE_STATUS = 0x8b83; | |
| /** | |
| * Passed to getProgramParameter after calling attachShader to determine if the shader was attached correctly. Returns false if errors occurred | |
| * @constant {number} | |
| */ | |
| exports.GL_ATTACHED_SHADERS = 0x8b85; | |
| /** | |
| * Passed to getProgramParameter to get the number of attributes active in a program | |
| * @constant {number} | |
| */ | |
| exports.GL_ACTIVE_ATTRIBUTES = 0x8b89; | |
| /** | |
| * Passed to getProgramParamter to get the number of uniforms active in a program | |
| * @constant {number} | |
| */ | |
| exports.GL_ACTIVE_UNIFORMS = 0x8b86; | |
| /** | |
| * The maximum number of entries possible in the vertex attribute list | |
| * @constant {number} | |
| */ | |
| exports.GL_MAX_VERTEX_ATTRIBS = 0x8869; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_MAX_VERTEX_UNIFORM_VECTORS = 0x8dfb; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_MAX_VARYING_VECTORS = 0x8dfc; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS = 0x8b4d; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS = 0x8b4c; | |
| /** | |
| * Implementation dependent number of maximum texture units. At least 8 | |
| * @constant {number} | |
| */ | |
| exports.GL_MAX_TEXTURE_IMAGE_UNITS = 0x8872; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_MAX_FRAGMENT_UNIFORM_VECTORS = 0x8dfd; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_SHADER_TYPE = 0x8b4f; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_SHADING_LANGUAGE_VERSION = 0x8b8c; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_CURRENT_PROGRAM = 0x8b8d; | |
| // Depth or stencil tests | |
| // Constants passed to WebGLRenderingContext.stencilFunc() | |
| /** | |
| * Passed to depthFunction or stencilFunction to specify depth or stencil tests will never pass. i.e. Nothing will be drawn | |
| * @constant {number} | |
| */ | |
| exports.GL_NEVER = 0x0200; | |
| /** | |
| * Passed to depthFunction or stencilFunction to specify depth or stencil tests will always pass. i.e. Pixels will be drawn in the order they are drawn | |
| * @constant {number} | |
| */ | |
| exports.GL_ALWAYS = 0x0207; | |
| /** | |
| * Passed to depthFunction or stencilFunction to specify depth or stencil tests will pass if the new depth value is less than the stored value | |
| * @constant {number} | |
| */ | |
| exports.GL_LESS = 0x0201; | |
| /** | |
| * Passed to depthFunction or stencilFunction to specify depth or stencil tests will pass if the new depth value is equals to the stored value | |
| * @constant {number} | |
| */ | |
| exports.GL_EQUAL = 0x0202; | |
| /** | |
| * Passed to depthFunction or stencilFunction to specify depth or stencil tests will pass if the new depth value is less than or equal to the stored value | |
| * @constant {number} | |
| */ | |
| exports.GL_LEQUAL = 0x0203; | |
| /** | |
| * Passed to depthFunction or stencilFunction to specify depth or stencil tests will pass if the new depth value is greater than the stored value | |
| * @constant {number} | |
| */ | |
| exports.GL_GREATER = 0x0204; | |
| /** | |
| * Passed to depthFunction or stencilFunction to specify depth or stencil tests will pass if the new depth value is greater than or equal to the stored value | |
| * @constant {number} | |
| */ | |
| exports.GL_GEQUAL = 0x0206; | |
| /** | |
| * Passed to depthFunction or stencilFunction to specify depth or stencil tests will pass if the new depth value is not equal to the stored value | |
| * @constant {number} | |
| */ | |
| exports.GL_NOTEQUAL = 0x0205; | |
| // Stencil actions | |
| // Constants passed to WebGLRenderingContext.stencilOp() | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_KEEP = 0x1e00; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_REPLACE = 0x1e01; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_INCR = 0x1e02; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_DECR = 0x1e03; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_INVERT = 0x150a; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_INCR_WRAP = 0x8507; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_DECR_WRAP = 0x8508; | |
| // Textures | |
| // Constants passed to WebGLRenderingContext.texParameteri(), WebGLRenderingContext.texParameterf(), WebGLRenderingContext.bindTexture(), WebGLRenderingContext.texImage2D(), and others | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_NEAREST = 0x2600; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_LINEAR = 0x2601; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_NEAREST_MIPMAP_NEAREST = 0x2700; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_LINEAR_MIPMAP_NEAREST = 0x2701; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_NEAREST_MIPMAP_LINEAR = 0x2702; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_LINEAR_MIPMAP_LINEAR = 0x2703; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_TEXTURE_MAG_FILTER = 0x2800; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_TEXTURE_MIN_FILTER = 0x2801; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_TEXTURE_WRAP_S = 0x2802; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_TEXTURE_WRAP_T = 0x2803; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_TEXTURE_2D = 0x0de1; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_TEXTURE = 0x1702; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_TEXTURE_CUBE_MAP = 0x8513; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_TEXTURE_BINDING_CUBE_MAP = 0x8514; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_TEXTURE_CUBE_MAP_POSITIVE_X = 0x8515; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_TEXTURE_CUBE_MAP_NEGATIVE_X = 0x8516; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_TEXTURE_CUBE_MAP_POSITIVE_Y = 0x8517; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_TEXTURE_CUBE_MAP_NEGATIVE_Y = 0x8518; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_TEXTURE_CUBE_MAP_POSITIVE_Z = 0x8519; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_TEXTURE_CUBE_MAP_NEGATIVE_Z = 0x851a; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_MAX_CUBE_MAP_TEXTURE_SIZE = 0x851c; | |
| /** | |
| * A texture unit | |
| * @constant {number} | |
| */ | |
| exports.GL_TEXTURE0 = 0x84c0; | |
| /** | |
| * A texture unit | |
| * @constant {number} | |
| */ | |
| exports.GL_TEXTURE1 = 0x84c1; | |
| /** | |
| * A texture unit | |
| * @constant {number} | |
| */ | |
| exports.GL_TEXTURE2 = 0x84c2; | |
| /** | |
| * A texture unit | |
| * @constant {number} | |
| */ | |
| exports.GL_TEXTURE3 = 0x84c3; | |
| /** | |
| * A texture unit | |
| * @constant {number} | |
| */ | |
| exports.GL_TEXTURE4 = 0x84c4; | |
| /** | |
| * A texture unit | |
| * @constant {number} | |
| */ | |
| exports.GL_TEXTURE5 = 0x84c5; | |
| /** | |
| * A texture unit | |
| * @constant {number} | |
| */ | |
| exports.GL_TEXTURE6 = 0x84c6; | |
| /** | |
| * A texture unit | |
| * @constant {number} | |
| */ | |
| exports.GL_TEXTURE7 = 0x84c7; | |
| /** | |
| * A texture unit | |
| * @constant {number} | |
| */ | |
| exports.GL_TEXTURE8 = 0x84c8; | |
| /** | |
| * A texture unit | |
| * @constant {number} | |
| */ | |
| exports.GL_TEXTURE9 = 0x84c9; | |
| /** | |
| * A texture unit | |
| * @constant {number} | |
| */ | |
| exports.GL_TEXTURE10 = 0x84ca; | |
| /** | |
| * A texture unit | |
| * @constant {number} | |
| */ | |
| exports.GL_TEXTURE11 = 0x84cb; | |
| /** | |
| * A texture unit | |
| * @constant {number} | |
| */ | |
| exports.GL_TEXTURE12 = 0x84cc; | |
| /** | |
| * A texture unit | |
| * @constant {number} | |
| */ | |
| exports.GL_TEXTURE13 = 0x84cd; | |
| /** | |
| * A texture unit | |
| * @constant {number} | |
| */ | |
| exports.GL_TEXTURE14 = 0x84ce; | |
| /** | |
| * A texture unit | |
| * @constant {number} | |
| */ | |
| exports.GL_TEXTURE15 = 0x84cf; | |
| /** | |
| * A texture unit | |
| * @constant {number} | |
| */ | |
| exports.GL_TEXTURE16 = 0x84d0; | |
| /** | |
| * A texture unit | |
| * @constant {number} | |
| */ | |
| exports.GL_TEXTURE17 = 0x84d1; | |
| /** | |
| * A texture unit | |
| * @constant {number} | |
| */ | |
| exports.GL_TEXTURE18 = 0x84d2; | |
| /** | |
| * A texture unit | |
| * @constant {number} | |
| */ | |
| exports.GL_TEXTURE19 = 0x84d3; | |
| /** | |
| * A texture unit | |
| * @constant {number} | |
| */ | |
| exports.GL_TEXTURE20 = 0x84d4; | |
| /** | |
| * A texture unit | |
| * @constant {number} | |
| */ | |
| exports.GL_TEXTURE21 = 0x84d5; | |
| /** | |
| * A texture unit | |
| * @constant {number} | |
| */ | |
| exports.GL_TEXTURE22 = 0x84d6; | |
| /** | |
| * A texture unit | |
| * @constant {number} | |
| */ | |
| exports.GL_TEXTURE23 = 0x84d7; | |
| /** | |
| * A texture unit | |
| * @constant {number} | |
| */ | |
| exports.GL_TEXTURE24 = 0x84d8; | |
| /** | |
| * A texture unit | |
| * @constant {number} | |
| */ | |
| exports.GL_TEXTURE25 = 0x84d9; | |
| /** | |
| * A texture unit | |
| * @constant {number} | |
| */ | |
| exports.GL_TEXTURE26 = 0x84da; | |
| /** | |
| * A texture unit | |
| * @constant {number} | |
| */ | |
| exports.GL_TEXTURE27 = 0x84db; | |
| /** | |
| * A texture unit | |
| * @constant {number} | |
| */ | |
| exports.GL_TEXTURE28 = 0x84dc; | |
| /** | |
| * A texture unit | |
| * @constant {number} | |
| */ | |
| exports.GL_TEXTURE29 = 0x84dd; | |
| /** | |
| * A texture unit | |
| * @constant {number} | |
| */ | |
| exports.GL_TEXTURE30 = 0x84de; | |
| /** | |
| * A texture unit | |
| * @constant {number} | |
| */ | |
| exports.GL_TEXTURE31 = 0x84df; | |
| /** | |
| * The current active texture unit | |
| * @constant {number} | |
| */ | |
| exports.GL_ACTIVE_TEXTURE = 0x84e0; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_REPEAT = 0x2901; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_CLAMP_TO_EDGE = 0x812f; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_MIRRORED_REPEAT = 0x8370; | |
| // Uniform types | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_FLOAT_VEC2 = 0x8b50; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_FLOAT_VEC3 = 0x8b51; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_FLOAT_VEC4 = 0x8b52; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_INT_VEC2 = 0x8b53; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_INT_VEC3 = 0x8b54; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_INT_VEC4 = 0x8b55; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_BOOL = 0x8b56; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_BOOL_VEC2 = 0x8b57; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_BOOL_VEC3 = 0x8b58; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_BOOL_VEC4 = 0x8b59; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_FLOAT_MAT2 = 0x8b5a; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_FLOAT_MAT3 = 0x8b5b; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_FLOAT_MAT4 = 0x8b5c; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_SAMPLER_2D = 0x8b5e; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_SAMPLER_CUBE = 0x8b60; | |
| // Shader precision-specified types | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_LOW_FLOAT = 0x8df0; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_MEDIUM_FLOAT = 0x8df1; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_HIGH_FLOAT = 0x8df2; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_LOW_INT = 0x8df3; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_MEDIUM_INT = 0x8df4; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_HIGH_INT = 0x8df5; | |
| // Framebuffers and renderbuffers | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_FRAMEBUFFER = 0x8d40; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_RENDERBUFFER = 0x8d41; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_RGBA4 = 0x8056; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_RGB5_A1 = 0x8057; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_RGB565 = 0x8d62; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_DEPTH_COMPONENT16 = 0x81a5; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_STENCIL_INDEX = 0x1901; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_STENCIL_INDEX8 = 0x8d48; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_DEPTH_STENCIL = 0x84f9; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_RENDERBUFFER_WIDTH = 0x8d42; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_RENDERBUFFER_HEIGHT = 0x8d43; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_RENDERBUFFER_INTERNAL_FORMAT = 0x8d44; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_RENDERBUFFER_RED_SIZE = 0x8d50; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_RENDERBUFFER_GREEN_SIZE = 0x8d51; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_RENDERBUFFER_BLUE_SIZE = 0x8d52; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_RENDERBUFFER_ALPHA_SIZE = 0x8d53; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_RENDERBUFFER_DEPTH_SIZE = 0x8d54; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_RENDERBUFFER_STENCIL_SIZE = 0x8d55; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE = 0x8cd0; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME = 0x8cd1; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL = 0x8cd2; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE = 0x8cd3; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_COLOR_ATTACHMENT0 = 0x8ce0; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_DEPTH_ATTACHMENT = 0x8d00; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_STENCIL_ATTACHMENT = 0x8d20; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_DEPTH_STENCIL_ATTACHMENT = 0x821a; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_NONE = 0; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_FRAMEBUFFER_COMPLETE = 0x8cd5; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT = 0x8cd6; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT = 0x8cd7; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS = 0x8cd9; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_FRAMEBUFFER_UNSUPPORTED = 0x8cdd; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_FRAMEBUFFER_BINDING = 0x8ca6; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_RENDERBUFFER_BINDING = 0x8ca7; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_MAX_RENDERBUFFER_SIZE = 0x84e8; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_INVALID_FRAMEBUFFER_OPERATION = 0x0506; | |
| // Pixel storage modes | |
| // Constants passed to WebGLRenderingContext.pixelStorei() | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_UNPACK_FLIP_Y_WEBGL = 0x9240; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_UNPACK_PREMULTIPLY_ALPHA_WEBGL = 0x9241; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_UNPACK_COLORSPACE_CONVERSION_WEBGL = 0x9243; | |
| // Additional constants defined WebGL 2 | |
| // These constants are defined on the WebGL2RenderingContext interface. All WebGL 1 constants are also available in a WebGL 2 context | |
| // Getting GL parameter information | |
| // Constants passed to WebGLRenderingContext.getParameter() to specify what information to return | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_READ_BUFFER = 0x0c02; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_UNPACK_ROW_LENGTH = 0x0cf2; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_UNPACK_SKIP_ROWS = 0x0cf3; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_UNPACK_SKIP_PIXELS = 0x0cf4; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_PACK_ROW_LENGTH = 0x0d02; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_PACK_SKIP_ROWS = 0x0d03; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_PACK_SKIP_PIXELS = 0x0d04; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_TEXTURE_BINDING_3D = 0x806a; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_UNPACK_SKIP_IMAGES = 0x806d; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_UNPACK_IMAGE_HEIGHT = 0x806e; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_MAX_3D_TEXTURE_SIZE = 0x8073; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_MAX_ELEMENTS_VERTICES = 0x80e8; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_MAX_ELEMENTS_INDICES = 0x80e9; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_MAX_TEXTURE_LOD_BIAS = 0x84fd; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_MAX_FRAGMENT_UNIFORM_COMPONENTS = 0x8b49; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_MAX_VERTEX_UNIFORM_COMPONENTS = 0x8b4a; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_MAX_ARRAY_TEXTURE_LAYERS = 0x88ff; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_MIN_PROGRAM_TEXEL_OFFSET = 0x8904; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_MAX_PROGRAM_TEXEL_OFFSET = 0x8905; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_MAX_VARYING_COMPONENTS = 0x8b4b; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_FRAGMENT_SHADER_DERIVATIVE_HINT = 0x8b8b; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_RASTERIZER_DISCARD = 0x8c89; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_VERTEX_ARRAY_BINDING = 0x85b5; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_MAX_VERTEX_OUTPUT_COMPONENTS = 0x9122; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_MAX_FRAGMENT_INPUT_COMPONENTS = 0x9125; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_MAX_SERVER_WAIT_TIMEOUT = 0x9111; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_MAX_ELEMENT_INDEX = 0x8d6b; | |
| // Textures | |
| // Constants passed to WebGLRenderingContext.texParameteri(), WebGLRenderingContext.texParameterf(), WebGLRenderingContext.bindTexture(), WebGLRenderingContext.texImage2D(), and others | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_RED = 0x1903; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_RGB8 = 0x8051; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_RGBA8 = 0x8058; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_RGB10_A2 = 0x8059; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_TEXTURE_3D = 0x806f; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_TEXTURE_WRAP_R = 0x8072; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_TEXTURE_MIN_LOD = 0x813a; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_TEXTURE_MAX_LOD = 0x813b; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_TEXTURE_BASE_LEVEL = 0x813c; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_TEXTURE_MAX_LEVEL = 0x813d; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_TEXTURE_COMPARE_MODE = 0x884c; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_TEXTURE_COMPARE_FUNC = 0x884d; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_SRGB = 0x8c40; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_SRGB8 = 0x8c41; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_SRGB8_ALPHA8 = 0x8c43; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_COMPARE_REF_TO_TEXTURE = 0x884e; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_RGBA32F = 0x8814; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_RGB32F = 0x8815; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_RGBA16F = 0x881a; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_RGB16F = 0x881b; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_TEXTURE_2D_ARRAY = 0x8c1a; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_TEXTURE_BINDING_2D_ARRAY = 0x8c1d; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_R11F_G11F_B10F = 0x8c3a; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_RGB9_E5 = 0x8c3d; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_RGBA32UI = 0x8d70; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_RGB32UI = 0x8d71; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_RGBA16UI = 0x8d76; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_RGB16UI = 0x8d77; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_RGBA8UI = 0x8d7c; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_RGB8UI = 0x8d7d; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_RGBA32I = 0x8d82; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_RGB32I = 0x8d83; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_RGBA16I = 0x8d88; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_RGB16I = 0x8d89; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_RGBA8I = 0x8d8e; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_RGB8I = 0x8d8f; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_RED_INTEGER = 0x8d94; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_RGB_INTEGER = 0x8d98; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_RGBA_INTEGER = 0x8d99; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_R8 = 0x8229; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_RG8 = 0x822b; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_R16F = 0x822d; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_R32F = 0x822e; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_RG16F = 0x822f; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_RG32F = 0x8230; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_R8I = 0x8231; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_R8UI = 0x8232; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_R16I = 0x8233; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_R16UI = 0x8234; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_R32I = 0x8235; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_R32UI = 0x8236; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_RG8I = 0x8237; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_RG8UI = 0x8238; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_RG16I = 0x8239; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_RG16UI = 0x823a; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_RG32I = 0x823b; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_RG32UI = 0x823c; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_R8_SNORM = 0x8f94; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_RG8_SNORM = 0x8f95; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_RGB8_SNORM = 0x8f96; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_RGBA8_SNORM = 0x8f97; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_RGB10_A2UI = 0x906f; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_TEXTURE_IMMUTABLE_FORMAT = 0x912f; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_TEXTURE_IMMUTABLE_LEVELS = 0x82df; | |
| // Pixel types | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_UNSIGNED_INT_2_10_10_10_REV = 0x8368; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_UNSIGNED_INT_10F_11F_11F_REV = 0x8c3b; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_UNSIGNED_INT_5_9_9_9_REV = 0x8c3e; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_FLOAT_32_UNSIGNED_INT_24_8_REV = 0x8dad; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_UNSIGNED_INT_24_8 = 0x84fa; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_HALF_FLOAT = 0x140b; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_RG = 0x8227; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_RG_INTEGER = 0x8228; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_INT_2_10_10_10_REV = 0x8d9f; | |
| // Queries | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_CURRENT_QUERY = 0x8865; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_QUERY_RESULT = 0x8866; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_QUERY_RESULT_AVAILABLE = 0x8867; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_ANY_SAMPLES_PASSED = 0x8c2f; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_ANY_SAMPLES_PASSED_CONSERVATIVE = 0x8d6a; | |
| // Draw buffers | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_MAX_DRAW_BUFFERS = 0x8824; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_DRAW_BUFFER0 = 0x8825; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_DRAW_BUFFER1 = 0x8826; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_DRAW_BUFFER2 = 0x8827; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_DRAW_BUFFER3 = 0x8828; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_DRAW_BUFFER4 = 0x8829; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_DRAW_BUFFER5 = 0x882a; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_DRAW_BUFFER6 = 0x882b; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_DRAW_BUFFER7 = 0x882c; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_DRAW_BUFFER8 = 0x882d; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_DRAW_BUFFER9 = 0x882e; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_DRAW_BUFFER10 = 0x882f; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_DRAW_BUFFER11 = 0x8830; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_DRAW_BUFFER12 = 0x8831; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_DRAW_BUFFER13 = 0x8832; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_DRAW_BUFFER14 = 0x8833; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_DRAW_BUFFER15 = 0x8834; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_MAX_COLOR_ATTACHMENTS = 0x8cdf; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_COLOR_ATTACHMENT1 = 0x8ce1; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_COLOR_ATTACHMENT2 = 0x8ce2; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_COLOR_ATTACHMENT3 = 0x8ce3; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_COLOR_ATTACHMENT4 = 0x8ce4; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_COLOR_ATTACHMENT5 = 0x8ce5; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_COLOR_ATTACHMENT6 = 0x8ce6; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_COLOR_ATTACHMENT7 = 0x8ce7; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_COLOR_ATTACHMENT8 = 0x8ce8; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_COLOR_ATTACHMENT9 = 0x8ce9; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_COLOR_ATTACHMENT10 = 0x8cea; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_COLOR_ATTACHMENT11 = 0x8ceb; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_COLOR_ATTACHMENT12 = 0x8cec; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_COLOR_ATTACHMENT13 = 0x8ced; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_COLOR_ATTACHMENT14 = 0x8cee; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_COLOR_ATTACHMENT15 = 0x8cef; | |
| // Samplers | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_SAMPLER_3D = 0x8b5f; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_SAMPLER_2D_SHADOW = 0x8b62; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_SAMPLER_2D_ARRAY = 0x8dc1; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_SAMPLER_2D_ARRAY_SHADOW = 0x8dc4; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_SAMPLER_CUBE_SHADOW = 0x8dc5; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_INT_SAMPLER_2D = 0x8dca; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_INT_SAMPLER_3D = 0x8dcb; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_INT_SAMPLER_CUBE = 0x8dcc; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_INT_SAMPLER_2D_ARRAY = 0x8dcf; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_UNSIGNED_INT_SAMPLER_2D = 0x8dd2; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_UNSIGNED_INT_SAMPLER_3D = 0x8dd3; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_UNSIGNED_INT_SAMPLER_CUBE = 0x8dd4; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_UNSIGNED_INT_SAMPLER_2D_ARRAY = 0x8dd7; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_MAX_SAMPLES = 0x8d57; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_SAMPLER_BINDING = 0x8919; | |
| // Buffers | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_PIXEL_PACK_BUFFER = 0x88eb; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_PIXEL_UNPACK_BUFFER = 0x88ec; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_PIXEL_PACK_BUFFER_BINDING = 0x88ed; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_PIXEL_UNPACK_BUFFER_BINDING = 0x88ef; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_COPY_READ_BUFFER = 0x8f36; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_COPY_WRITE_BUFFER = 0x8f37; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_COPY_READ_BUFFER_BINDING = 0x8f36; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_COPY_WRITE_BUFFER_BINDING = 0x8f37; | |
| // Data types | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_FLOAT_MAT2X3 = 0x8b65; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_FLOAT_MAT2X4 = 0x8b66; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_FLOAT_MAT3X2 = 0x8b67; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_FLOAT_MAT3X4 = 0x8b68; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_FLOAT_MAT4X2 = 0x8b69; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_FLOAT_MAT4X3 = 0x8b6a; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_UNSIGNED_INT_VEC2 = 0x8dc6; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_UNSIGNED_INT_VEC3 = 0x8dc7; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_UNSIGNED_INT_VEC4 = 0x8dc8; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_UNSIGNED_NORMALIZED = 0x8c17; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_SIGNED_NORMALIZED = 0x8f9c; | |
| // Vertex attributes | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_VERTEX_ATTRIB_ARRAY_INTEGER = 0x88fd; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_VERTEX_ATTRIB_ARRAY_DIVISOR = 0x88fe; | |
| // Transform feedback | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_TRANSFORM_FEEDBACK_BUFFER_MODE = 0x8c7f; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS = 0x8c80; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_TRANSFORM_FEEDBACK_VARYINGS = 0x8c83; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_TRANSFORM_FEEDBACK_BUFFER_START = 0x8c84; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_TRANSFORM_FEEDBACK_BUFFER_SIZE = 0x8c85; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN = 0x8c88; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS = 0x8c8a; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS = 0x8c8b; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_INTERLEAVED_ATTRIBS = 0x8c8c; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_SEPARATE_ATTRIBS = 0x8c8d; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_TRANSFORM_FEEDBACK_BUFFER = 0x8c8e; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_TRANSFORM_FEEDBACK_BUFFER_BINDING = 0x8c8f; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_TRANSFORM_FEEDBACK = 0x8e22; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_TRANSFORM_FEEDBACK_PAUSED = 0x8e23; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_TRANSFORM_FEEDBACK_ACTIVE = 0x8e24; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_TRANSFORM_FEEDBACK_BINDING = 0x8e25; | |
| // Framebuffers and renderbuffers | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING = 0x8210; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE = 0x8211; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE = 0x8212; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE = 0x8213; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE = 0x8214; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE = 0x8215; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE = 0x8216; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE = 0x8217; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_FRAMEBUFFER_DEFAULT = 0x8218; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_DEPTH24_STENCIL8 = 0x88f0; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_DRAW_FRAMEBUFFER_BINDING = 0x8ca6; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_READ_FRAMEBUFFER = 0x8ca8; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_DRAW_FRAMEBUFFER = 0x8ca9; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_READ_FRAMEBUFFER_BINDING = 0x8caa; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_RENDERBUFFER_SAMPLES = 0x8cab; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER = 0x8cd4; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE = 0x8d56; | |
| // Uniforms | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_UNIFORM_BUFFER = 0x8a11; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_UNIFORM_BUFFER_BINDING = 0x8a28; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_UNIFORM_BUFFER_START = 0x8a29; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_UNIFORM_BUFFER_SIZE = 0x8a2a; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_MAX_VERTEX_UNIFORM_BLOCKS = 0x8a2b; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_MAX_FRAGMENT_UNIFORM_BLOCKS = 0x8a2d; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_MAX_COMBINED_UNIFORM_BLOCKS = 0x8a2e; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_MAX_UNIFORM_BUFFER_BINDINGS = 0x8a2f; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_MAX_UNIFORM_BLOCK_SIZE = 0x8a30; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS = 0x8a31; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS = 0x8a33; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT = 0x8a34; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_ACTIVE_UNIFORM_BLOCKS = 0x8a36; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_UNIFORM_TYPE = 0x8a37; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_UNIFORM_SIZE = 0x8a38; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_UNIFORM_BLOCK_INDEX = 0x8a3a; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_UNIFORM_OFFSET = 0x8a3b; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_UNIFORM_ARRAY_STRIDE = 0x8a3c; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_UNIFORM_MATRIX_STRIDE = 0x8a3d; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_UNIFORM_IS_ROW_MAJOR = 0x8a3e; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_UNIFORM_BLOCK_BINDING = 0x8a3f; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_UNIFORM_BLOCK_DATA_SIZE = 0x8a40; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS = 0x8a42; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES = 0x8a43; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER = 0x8a44; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER = 0x8a46; | |
| // Sync objects | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_OBJECT_TYPE = 0x9112; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_SYNC_CONDITION = 0x9113; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_SYNC_STATUS = 0x9114; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_SYNC_FLAGS = 0x9115; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_SYNC_FENCE = 0x9116; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_SYNC_GPU_COMMANDS_COMPLETE = 0x9117; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_UNSIGNALED = 0x9118; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_SIGNALED = 0x9119; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_ALREADY_SIGNALED = 0x911a; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_TIMEOUT_EXPIRED = 0x911b; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_CONDITION_SATISFIED = 0x911c; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_WAIT_FAILED = 0x911d; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_SYNC_FLUSH_COMMANDS_BIT = 0x00000001; | |
| // Miscellaneous constants | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_COLOR = 0x1800; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_DEPTH = 0x1801; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_STENCIL = 0x1802; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_MIN = 0x8007; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_MAX = 0x8008; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_DEPTH_COMPONENT24 = 0x81a6; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_STREAM_READ = 0x88e1; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_STREAM_COPY = 0x88e2; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_STATIC_READ = 0x88e5; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_STATIC_COPY = 0x88e6; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_DYNAMIC_READ = 0x88e9; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_DYNAMIC_COPY = 0x88ea; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_DEPTH_COMPONENT32F = 0x8cac; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_DEPTH32F_STENCIL8 = 0x8cad; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_INVALID_INDEX = 0xffffffff; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_TIMEOUT_IGNORED = -1; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_MAX_CLIENT_WAIT_TIMEOUT_WEBGL = 0x9247; | |
| // Constants defined in WebGL extensions | |
| // ANGLE_instanced_arrays | |
| // The ANGLE_instanced_arrays extension is part of the WebGL API and allows to draw the same object, or groups of similar objects multiple times, if they share the same vertex data, primitive count and type | |
| /** | |
| * Describes the frequency divisor used for instanced rendering | |
| * @constant {number} | |
| */ | |
| exports.GL_VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE = 0x88fe; | |
| // WEBGL_debug_renderer_info | |
| // The WEBGL_debug_renderer_info extension is part of the WebGL API and exposes two constants with information about the graphics driver for debugging purposes | |
| /** | |
| * Passed to getParameter to get the vendor string of the graphics driver | |
| * @constant {number} | |
| */ | |
| exports.GL_UNMASKED_VENDOR_WEBGL = 0x9245; | |
| /** | |
| * Passed to getParameter to get the renderer string of the graphics driver | |
| * @constant {number} | |
| */ | |
| exports.GL_UNMASKED_RENDERER_WEBGL = 0x9246; | |
| // EXT_texture_filter_anisotropic | |
| // The EXT_texture_filter_anisotropic extension is part of the WebGL API and exposes two constants for anisotropic filtering (AF) | |
| /** | |
| * Returns the maximum available anisotropy | |
| * @constant {number} | |
| */ | |
| exports.GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT = 0x84ff; | |
| /** | |
| * Passed to texParameter to set the desired maximum anisotropy for a texture | |
| * @constant {number} | |
| */ | |
| exports.GL_TEXTURE_MAX_ANISOTROPY_EXT = 0x84fe; | |
| // WEBGL_compressed_texture_s3tc | |
| // The WEBGL_compressed_texture_s3tc extension is part of the WebGL API and exposes four S3TC compressed texture formats | |
| /** | |
| * A DXT1-compressed image in an RGB image format | |
| * @constant {number} | |
| */ | |
| exports.GL_COMPRESSED_RGB_S3TC_DXT1_EXT = 0x83f0; | |
| /** | |
| * A DXT1-compressed image in an RGB image format with a simple on/off alpha value | |
| * @constant {number} | |
| */ | |
| exports.GL_COMPRESSED_RGBA_S3TC_DXT1_EXT = 0x83f1; | |
| /** | |
| * A DXT3-compressed image in an RGBA image format. Compared to a 32-bit RGBA texture, it offers 4:1 compression | |
| * @constant {number} | |
| */ | |
| exports.GL_COMPRESSED_RGBA_S3TC_DXT3_EXT = 0x83f2; | |
| /** | |
| * A DXT5-compressed image in an RGBA image format. It also provides a 4:1 compression, but differs to the DXT3 compression in how the alpha compression is done | |
| * @constant {number} | |
| */ | |
| exports.GL_COMPRESSED_RGBA_S3TC_DXT5_EXT = 0x83f3; | |
| // WEBGL_compressed_texture_s3tc_srgb | |
| // The WEBGL_compressed_texture_s3tc_srgb extension is part of the WebGL API and exposes four S3TC compressed texture formats for the sRGB colorspace | |
| /** | |
| * A DXT1-compressed image in an sRGB image format | |
| * @constant {number} | |
| */ | |
| exports.GL_COMPRESSED_SRGB_S3TC_DXT1_EXT = 0x8c4c; | |
| /** | |
| * A DXT1-compressed image in an sRGB image format with a simple on/off alpha value | |
| * @constant {number} | |
| */ | |
| exports.GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT = 0x8c4d; | |
| /** | |
| * A DXT3-compressed image in an sRGBA image format | |
| * @constant {number} | |
| */ | |
| exports.GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT = 0x8c4e; | |
| /** | |
| * A DXT5-compressed image in an sRGBA image format | |
| * @constant {number} | |
| */ | |
| exports.GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT = 0x8c4f; | |
| // WEBGL_compressed_texture_etc | |
| // The WEBGL_compressed_texture_etc extension is part of the WebGL API and exposes 10 ETC/EAC compressed texture formats | |
| /** | |
| * One-channel (red) unsigned format compression | |
| * @constant {number} | |
| */ | |
| exports.GL_COMPRESSED_R11_EAC = 0x9270; | |
| /** | |
| * One-channel (red) signed format compression | |
| * @constant {number} | |
| */ | |
| exports.GL_COMPRESSED_SIGNED_R11_EAC = 0x9271; | |
| /** | |
| * Two-channel (red and green) unsigned format compression | |
| * @constant {number} | |
| */ | |
| exports.GL_COMPRESSED_RG11_EAC = 0x9272; | |
| /** | |
| * Two-channel (red and green) signed format compression | |
| * @constant {number} | |
| */ | |
| exports.GL_COMPRESSED_SIGNED_RG11_EAC = 0x9273; | |
| /** | |
| * Compresses RBG8 data with no alpha channel | |
| * @constant {number} | |
| */ | |
| exports.GL_COMPRESSED_RGB8_ETC2 = 0x9274; | |
| /** | |
| * Compresses RGBA8 data. The RGB part is encoded the same as RGB_ETC2, but the alpha part is encoded separately | |
| * @constant {number} | |
| */ | |
| exports.GL_COMPRESSED_RGBA8_ETC2_EAC = 0x9275; | |
| /** | |
| * Compresses sRBG8 data with no alpha channel | |
| * @constant {number} | |
| */ | |
| exports.GL_COMPRESSED_SRGB8_ETC2 = 0x9276; | |
| /** | |
| * Compresses sRGBA8 data. The sRGB part is encoded the same as SRGB_ETC2, but the alpha part is encoded separately | |
| * @constant {number} | |
| */ | |
| exports.GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC = 0x9277; | |
| /** | |
| * Similar to RGB8_ETC, but with ability to punch through the alpha channel, which means to make it completely opaque or transparent | |
| * @constant {number} | |
| */ | |
| exports.GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2 = 0x9278; | |
| /** | |
| * Similar to SRGB8_ETC, but with ability to punch through the alpha channel, which means to make it completely opaque or transparent | |
| * @constant {number} | |
| */ | |
| exports.GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2 = 0x9279; | |
| // WEBGL_compressed_texture_pvrtc | |
| // The WEBGL_compressed_texture_pvrtc extension is part of the WebGL API and exposes four PVRTC compressed texture formats | |
| /** | |
| * RGB compression in 4-bit mode. One block for each 4×4 pixels | |
| * @constant {number} | |
| */ | |
| exports.GL_COMPRESSED_RGB_PVRTC_4BPPV1_IMG = 0x8c00; | |
| /** | |
| * RGBA compression in 4-bit mode. One block for each 4×4 pixels | |
| * @constant {number} | |
| */ | |
| exports.GL_COMPRESSED_RGBA_PVRTC_4BPPV1_IMG = 0x8c02; | |
| /** | |
| * RGB compression in 2-bit mode. One block for each 8×4 pixels | |
| * @constant {number} | |
| */ | |
| exports.GL_COMPRESSED_RGB_PVRTC_2BPPV1_IMG = 0x8c01; | |
| /** | |
| * RGBA compression in 2-bit mode. One block for each 8×4 pixels | |
| * @constant {number} | |
| */ | |
| exports.GL_COMPRESSED_RGBA_PVRTC_2BPPV1_IMG = 0x8c03; | |
| // WEBGL_compressed_texture_etc1 | |
| // The WEBGL_compressed_texture_etc1 extension is part of the WebGL API and exposes the ETC1 compressed texture format | |
| /** | |
| * Compresses 24-bit RGB data with no alpha channel | |
| * @constant {number} | |
| */ | |
| exports.GL_COMPRESSED_RGB_ETC1_WEBGL = 0x8d64; | |
| // WEBGL_compressed_texture_atc | |
| // The WEBGL_compressed_texture_atc extension is part of the WebGL API and exposes 3 ATC compressed texture formats. ATC is a proprietary compression algorithm for compressing textures on handheld devices | |
| /** | |
| * Compresses RGB textures with no alpha channel | |
| * @constant {number} | |
| */ | |
| exports.GL_COMPRESSED_RGB_ATC_WEBGL = 0x8c92; | |
| /** | |
| * Compresses RGBA textures using explicit alpha encoding (useful when alpha transitions are sharp) | |
| * @constant {number} | |
| */ | |
| exports.GL_COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL = 0x8c92; | |
| /** | |
| * Compresses RGBA textures using interpolated alpha encoding (useful when alpha transitions are gradient) | |
| * @constant {number} | |
| */ | |
| exports.GL_COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL = 0x87ee; | |
| // WEBGL_compressed_texture_astc | |
| // The WEBGL_compressed_texture_astc extension is part of the WebGL API and exposes Adaptive Scalable Texture Compression (ASTC) compressed texture formats to WebGL | |
| // https://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_astc/ | |
| // https://developer.nvidia.com/astc-texture-compression-for-game-assets | |
| /** | |
| * Compresses RGBA textures using ASTC compression in a blocksize of 4x4 | |
| * @constant {number} | |
| */ | |
| exports.GL_COMPRESSED_RGBA_ASTC_4X4_KHR = 0x93b0; | |
| /** | |
| * Compresses RGBA textures using ASTC compression in a blocksize of 5x4 | |
| * @constant {number} | |
| */ | |
| exports.GL_COMPRESSED_RGBA_ASTC_5X4_KHR = 0x93b1; | |
| /** | |
| * Compresses RGBA textures using ASTC compression in a blocksize of 5x5 | |
| * @constant {number} | |
| */ | |
| exports.GL_COMPRESSED_RGBA_ASTC_5X5_KHR = 0x93b2; | |
| /** | |
| * Compresses RGBA textures using ASTC compression in a blocksize of 6x5 | |
| * @constant {number} | |
| */ | |
| exports.GL_COMPRESSED_RGBA_ASTC_6X5_KHR = 0x93b3; | |
| /** | |
| * Compresses RGBA textures using ASTC compression in a blocksize of 6x6 | |
| * @constant {number} | |
| */ | |
| exports.GL_COMPRESSED_RGBA_ASTC_6X6_KHR = 0x93b4; | |
| /** | |
| * Compresses RGBA textures using ASTC compression in a blocksize of 8x5 | |
| * @constant {number} | |
| */ | |
| exports.GL_COMPRESSED_RGBA_ASTC_8X5_KHR = 0x93b5; | |
| /** | |
| * Compresses RGBA textures using ASTC compression in a blocksize of 8x6 | |
| * @constant {number} | |
| */ | |
| exports.GL_COMPRESSED_RGBA_ASTC_8X6_KHR = 0x93b6; | |
| /** | |
| * Compresses RGBA textures using ASTC compression in a blocksize of 8x8 | |
| * @constant {number} | |
| */ | |
| exports.GL_COMPRESSED_RGBA_ASTC_8X8_KHR = 0x93b7; | |
| /** | |
| * Compresses RGBA textures using ASTC compression in a blocksize of 10x5 | |
| * @constant {number} | |
| */ | |
| exports.GL_COMPRESSED_RGBA_ASTC_10X5_KHR = 0x93b8; | |
| /** | |
| * Compresses RGBA textures using ASTC compression in a blocksize of 10x6 | |
| * @constant {number} | |
| */ | |
| exports.GL_COMPRESSED_RGBA_ASTC_10X6_KHR = 0x93b9; | |
| /** | |
| * Compresses RGBA textures using ASTC compression in a blocksize of 10x8 | |
| * @constant {number} | |
| */ | |
| exports.GL_COMPRESSED_RGBA_ASTC_10X8_KHR = 0x93ba; | |
| /** | |
| * Compresses RGBA textures using ASTC compression in a blocksize of 10x10 | |
| * @constant {number} | |
| */ | |
| exports.GL_COMPRESSED_RGBA_ASTC_10X10_KHR = 0x93bb; | |
| /** | |
| * Compresses RGBA textures using ASTC compression in a blocksize of 12x10 | |
| * @constant {number} | |
| */ | |
| exports.GL_COMPRESSED_RGBA_ASTC_12X10_KHR = 0x93bc; | |
| /** | |
| * Compresses RGBA textures using ASTC compression in a blocksize of 12x12 | |
| * @constant {number} | |
| */ | |
| exports.GL_COMPRESSED_RGBA_ASTC_12X12_KHR = 0x93bd; | |
| /** | |
| * Compresses SRGB8 textures using ASTC compression in a blocksize of 4x4 | |
| * @constant {number} | |
| */ | |
| exports.GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4X4_KHR = 0x93d0; | |
| /** | |
| * Compresses SRGB8 textures using ASTC compression in a blocksize of 5x4 | |
| * @constant {number} | |
| */ | |
| exports.GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5X4_KHR = 0x93d1; | |
| /** | |
| * Compresses SRGB8 textures using ASTC compression in a blocksize of 5x5 | |
| * @constant {number} | |
| */ | |
| exports.GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5X5_KHR = 0x93d2; | |
| /** | |
| * Compresses SRGB8 textures using ASTC compression in a blocksize of 6x5 | |
| * @constant {number} | |
| */ | |
| exports.GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6X5_KHR = 0x93d3; | |
| /** | |
| * Compresses SRGB8 textures using ASTC compression in a blocksize of 6x6 | |
| * @constant {number} | |
| */ | |
| exports.GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6X6_KHR = 0x93d4; | |
| /** | |
| * Compresses SRGB8 textures using ASTC compression in a blocksize of 8x5 | |
| * @constant {number} | |
| */ | |
| exports.GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8X5_KHR = 0x93d5; | |
| /** | |
| * Compresses SRGB8 textures using ASTC compression in a blocksize of 8x6 | |
| * @constant {number} | |
| */ | |
| exports.GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8X6_KHR = 0x93d6; | |
| /** | |
| * Compresses SRGB8 textures using ASTC compression in a blocksize of 8x8 | |
| * @constant {number} | |
| */ | |
| exports.GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8X8_KHR = 0x93d7; | |
| /** | |
| * Compresses SRGB8 textures using ASTC compression in a blocksize of 10x5 | |
| * @constant {number} | |
| */ | |
| exports.GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10X5_KHR = 0x93d8; | |
| /** | |
| * Compresses SRGB8 textures using ASTC compression in a blocksize of 10x6 | |
| * @constant {number} | |
| */ | |
| exports.GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10X6_KHR = 0x93d9; | |
| /** | |
| * Compresses SRGB8 textures using ASTC compression in a blocksize of 10x8 | |
| * @constant {number} | |
| */ | |
| exports.GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10X8_KHR = 0x93da; | |
| /** | |
| * Compresses SRGB8 textures using ASTC compression in a blocksize of 10x10 | |
| * @constant {number} | |
| */ | |
| exports.GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10X10_KHR = 0x93db; | |
| /** | |
| * Compresses SRGB8 textures using ASTC compression in a blocksize of 12x10 | |
| * @constant {number} | |
| */ | |
| exports.GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12X10_KHR = 0x93dc; | |
| /** | |
| * Compresses SRGB8 textures using ASTC compression in a blocksize of 12x12 | |
| * @constant {number} | |
| */ | |
| exports.GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12X12_KHR = 0x93dd; | |
| // WEBGL_depth_texture | |
| // The WEBGL_depth_texture extension is part of the WebGL API and defines 2D depth and depth-stencil textures | |
| /** | |
| * Unsigned integer type for 24-bit depth texture data | |
| * @constant {number} | |
| */ | |
| exports.GL_UNSIGNED_INT_24_8_WEBGL = 0x84fa; | |
| // OES_texture_half_float | |
| // The OES_texture_half_float extension is part of the WebGL API and adds texture formats with 16- (aka half float) and 32-bit floating-point components | |
| /** | |
| * Half floating-point type (16-bit) | |
| * @constant {number} | |
| */ | |
| exports.GL_HALF_FLOAT_OES = 0x8d61; | |
| // WEBGL_color_buffer_float | |
| // The WEBGL_color_buffer_float extension is part of the WebGL API and adds the ability to render to 32-bit floating-point color buffers | |
| /** | |
| * RGBA 32-bit floating-point color-renderable format | |
| * @constant {number} | |
| */ | |
| exports.GL_RGBA32F_EXT = 0x8814; | |
| /** | |
| * RGB 32-bit floating-point color-renderable format | |
| * @constant {number} | |
| */ | |
| exports.GL_RGB32F_EXT = 0x8815; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT = 0x8211; | |
| /** | |
| * @constant {number} | |
| */ | |
| exports.GL_UNSIGNED_NORMALIZED_EXT = 0x8c17; | |
| // EXT_blend_minmax | |
| // The EXT_blend_minmax extension is part of the WebGL API and extends blending capabilities by adding two new blend equations: the minimum or maximum color components of the source and destination colors | |
| /** | |
| * Produces the minimum color components of the source and destination colors | |
| * @constant {number} | |
| */ | |
| exports.GL_MIN_EXT = 0x8007; | |
| /** | |
| * Produces the maximum color components of the source and destination colors | |
| * @constant {number} | |
| */ | |
| exports.GL_MAX_EXT = 0x8008; | |
| // EXT_sRGB | |
| // The EXT_sRGB extension is part of the WebGL API and adds sRGB support to textures and framebuffer objects | |
| /** | |
| * Unsized sRGB format that leaves the precision up to the driver | |
| * @constant {number} | |
| */ | |
| exports.GL_SRGB_EXT = 0x8c40; | |
| /** | |
| * Unsized sRGB format with unsized alpha component | |
| * @constant {number} | |
| */ | |
| exports.GL_SRGB_ALPHA_EXT = 0x8c42; | |
| /** | |
| * Sized (8-bit) sRGB and alpha formats | |
| * @constant {number} | |
| */ | |
| exports.GL_SRGB8_ALPHA8_EXT = 0x8c43; | |
| /** | |
| * Returns the framebuffer color encoding | |
| * @constant {number} | |
| */ | |
| exports.GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT = 0x8210; | |
| // OES_standard_derivatives | |
| // The OES_standard_derivatives extension is part of the WebGL API and adds the GLSL derivative functions dFdx, dFdy, and fwidth | |
| /** | |
| * Indicates the accuracy of the derivative calculation for the GLSL built-in functions: dFdx, dFdy, and fwidth | |
| * @constant {number} | |
| */ | |
| exports.GL_FRAGMENT_SHADER_DERIVATIVE_HINT_OES = 0x8b8b; | |
| // WEBGL_draw_buffers | |
| // The WEBGL_draw_buffers extension is part of the WebGL API and enables a fragment shader to write to several textures, which is useful for deferred shading, for example | |
| /** | |
| * Framebuffer color attachment point | |
| * @constant {number} | |
| */ | |
| exports.GL_COLOR_ATTACHMENT0_WEBGL = 0x8ce0; | |
| /** | |
| * Framebuffer color attachment point | |
| * @constant {number} | |
| */ | |
| exports.GL_COLOR_ATTACHMENT1_WEBGL = 0x8ce1; | |
| /** | |
| * Framebuffer color attachment point | |
| * @constant {number} | |
| */ | |
| exports.GL_COLOR_ATTACHMENT2_WEBGL = 0x8ce2; | |
| /** | |
| * Framebuffer color attachment point | |
| * @constant {number} | |
| */ | |
| exports.GL_COLOR_ATTACHMENT3_WEBGL = 0x8ce3; | |
| /** | |
| * Framebuffer color attachment point | |
| * @constant {number} | |
| */ | |
| exports.GL_COLOR_ATTACHMENT4_WEBGL = 0x8ce4; | |
| /** | |
| * Framebuffer color attachment point | |
| * @constant {number} | |
| */ | |
| exports.GL_COLOR_ATTACHMENT5_WEBGL = 0x8ce5; | |
| /** | |
| * Framebuffer color attachment point | |
| * @constant {number} | |
| */ | |
| exports.GL_COLOR_ATTACHMENT6_WEBGL = 0x8ce6; | |
| /** | |
| * Framebuffer color attachment point | |
| * @constant {number} | |
| */ | |
| exports.GL_COLOR_ATTACHMENT7_WEBGL = 0x8ce7; | |
| /** | |
| * Framebuffer color attachment point | |
| * @constant {number} | |
| */ | |
| exports.GL_COLOR_ATTACHMENT8_WEBGL = 0x8ce8; | |
| /** | |
| * Framebuffer color attachment point | |
| * @constant {number} | |
| */ | |
| exports.GL_COLOR_ATTACHMENT9_WEBGL = 0x8ce9; | |
| /** | |
| * Framebuffer color attachment point | |
| * @constant {number} | |
| */ | |
| exports.GL_COLOR_ATTACHMENT10_WEBGL = 0x8cea; | |
| /** | |
| * Framebuffer color attachment point | |
| * @constant {number} | |
| */ | |
| exports.GL_COLOR_ATTACHMENT11_WEBGL = 0x8ceb; | |
| /** | |
| * Framebuffer color attachment point | |
| * @constant {number} | |
| */ | |
| exports.GL_COLOR_ATTACHMENT12_WEBGL = 0x8cec; | |
| /** | |
| * Framebuffer color attachment point | |
| * @constant {number} | |
| */ | |
| exports.GL_COLOR_ATTACHMENT13_WEBGL = 0x8ced; | |
| /** | |
| * Framebuffer color attachment point | |
| * @constant {number} | |
| */ | |
| exports.GL_COLOR_ATTACHMENT14_WEBGL = 0x8cee; | |
| /** | |
| * Framebuffer color attachment point | |
| * @constant {number} | |
| */ | |
| exports.GL_COLOR_ATTACHMENT15_WEBGL = 0x8cef; | |
| /** | |
| * Draw buffer | |
| * @constant {number} | |
| */ | |
| exports.GL_DRAW_BUFFER0_WEBGL = 0x8825; | |
| /** | |
| * Draw buffer | |
| * @constant {number} | |
| */ | |
| exports.GL_DRAW_BUFFER1_WEBGL = 0x8826; | |
| /** | |
| * Draw buffer | |
| * @constant {number} | |
| */ | |
| exports.GL_DRAW_BUFFER2_WEBGL = 0x8827; | |
| /** | |
| * Draw buffer | |
| * @constant {number} | |
| */ | |
| exports.GL_DRAW_BUFFER3_WEBGL = 0x8828; | |
| /** | |
| * Draw buffer | |
| * @constant {number} | |
| */ | |
| exports.GL_DRAW_BUFFER4_WEBGL = 0x8829; | |
| /** | |
| * Draw buffer | |
| * @constant {number} | |
| */ | |
| exports.GL_DRAW_BUFFER5_WEBGL = 0x882a; | |
| /** | |
| * Draw buffer | |
| * @constant {number} | |
| */ | |
| exports.GL_DRAW_BUFFER6_WEBGL = 0x882b; | |
| /** | |
| * Draw buffer | |
| * @constant {number} | |
| */ | |
| exports.GL_DRAW_BUFFER7_WEBGL = 0x882c; | |
| /** | |
| * Draw buffer | |
| * @constant {number} | |
| */ | |
| exports.GL_DRAW_BUFFER8_WEBGL = 0x882d; | |
| /** | |
| * Draw buffer | |
| * @constant {number} | |
| */ | |
| exports.GL_DRAW_BUFFER9_WEBGL = 0x882e; | |
| /** | |
| * Draw buffer | |
| * @constant {number} | |
| */ | |
| exports.GL_DRAW_BUFFER10_WEBGL = 0x882f; | |
| /** | |
| * Draw buffer | |
| * @constant {number} | |
| */ | |
| exports.GL_DRAW_BUFFER11_WEBGL = 0x8830; | |
| /** | |
| * Draw buffer | |
| * @constant {number} | |
| */ | |
| exports.GL_DRAW_BUFFER12_WEBGL = 0x8831; | |
| /** | |
| * Draw buffer | |
| * @constant {number} | |
| */ | |
| exports.GL_DRAW_BUFFER13_WEBGL = 0x8832; | |
| /** | |
| * Draw buffer | |
| * @constant {number} | |
| */ | |
| exports.GL_DRAW_BUFFER14_WEBGL = 0x8833; | |
| /** | |
| * Draw buffer | |
| * @constant {number} | |
| */ | |
| exports.GL_DRAW_BUFFER15_WEBGL = 0x8834; | |
| /** | |
| * Maximum number of framebuffer color attachment points | |
| * @constant {number} | |
| */ | |
| exports.GL_MAX_COLOR_ATTACHMENTS_WEBGL = 0x8cdf; | |
| /** | |
| * Maximum number of draw buffers | |
| * @constant {number} | |
| */ | |
| exports.GL_MAX_DRAW_BUFFERS_WEBGL = 0x8824; | |
| // OES_vertex_array_object | |
| // The OES_vertex_array_object extension is part of the WebGL API and provides vertex array objects (VAOs) which encapsulate vertex array states. These objects keep pointers to vertex data and provide names for different sets of vertex data | |
| /** | |
| * The bound vertex array object (VAO) | |
| * @constant {number} | |
| */ | |
| exports.GL_VERTEX_ARRAY_BINDING_OES = 0x85b5; | |
| // EXT_disjoint_timer_query | |
| // The EXT_disjoint_timer_query extension is part of the WebGL API and provides a way to measure the duration of a set of GL commands, without stalling the rendering pipeline | |
| /** | |
| * The number of bits used to hold the query result for the given target | |
| * @constant {number} | |
| */ | |
| exports.GL_QUERY_COUNTER_BITS_EXT = 0x8864; | |
| /** | |
| * The currently active query | |
| * @constant {number} | |
| */ | |
| exports.GL_CURRENT_QUERY_EXT = 0x8865; | |
| /** | |
| * The query result | |
| * @constant {number} | |
| */ | |
| exports.GL_QUERY_RESULT_EXT = 0x8866; | |
| /** | |
| * A Boolean indicating whether or not a query result is available | |
| * @constant {number} | |
| */ | |
| exports.GL_QUERY_RESULT_AVAILABLE_EXT = 0x8867; | |
| /** | |
| * Elapsed time (in nanoseconds) | |
| * @constant {number} | |
| */ | |
| exports.GL_TIME_ELAPSED_EXT = 0x88bf; | |
| /** | |
| * The current time | |
| * @constant {number} | |
| */ | |
| exports.GL_TIMESTAMP_EXT = 0x8e28; | |
| /** | |
| * A Boolean indicating whether or not the GPU performed any disjoint operation | |
| * @constant {number} | |
| */ | |
| exports.GL_GPU_DISJOINT_EXT = 0x8fbb; | |
| // Constants defined in WebGL draft extensions | |
| // KHR_parallel_shader_compile | |
| // The KHR_parallel_shader_compile extension is part of the WebGL draft API and provides multithreaded asynchronous shader compilation | |
| /** | |
| * Query to determine if the compilation process is complete | |
| * @constant {number} | |
| */ | |
| exports.GL_COMPLETION_STATUS_KHR = 0x91b1; | |
| //# sourceMappingURL=index.js.map |
Xet Storage Details
- Size:
- 71.7 kB
- Xet hash:
- 0f6201b2e1f8329e9d4bbb2a315b02afe592f821b8292dc527e241481054c1d3
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.