Interface WebGLRenderingContext
interface WebGLRenderingContext {
ACTIVE_ATTRIBUTES: 35721;
ACTIVE_TEXTURE: 34016;
ACTIVE_UNIFORMS: 35718;
ALIASED_LINE_WIDTH_RANGE: 33902;
ALIASED_POINT_SIZE_RANGE: 33901;
ALPHA: 6406;
ALPHA_BITS: 3413;
ALWAYS: 519;
ARRAY_BUFFER: 34962;
ARRAY_BUFFER_BINDING: 34964;
ATTACHED_SHADERS: 35717;
BACK: 1029;
BLEND: 3042;
BLEND_COLOR: 32773;
BLEND_DST_ALPHA: 32970;
BLEND_DST_RGB: 32968;
BLEND_EQUATION: 32777;
BLEND_EQUATION_ALPHA: 34877;
BLEND_EQUATION_RGB: 32777;
BLEND_SRC_ALPHA: 32971;
BLEND_SRC_RGB: 32969;
BLUE_BITS: 3412;
BOOL: 35670;
BOOL_VEC2: 35671;
BOOL_VEC3: 35672;
BOOL_VEC4: 35673;
BROWSER_DEFAULT_WEBGL: 37444;
BUFFER_SIZE: 34660;
BUFFER_USAGE: 34661;
BYTE: 5120;
canvas: HTMLCanvasElement | OffscreenCanvas;
CCW: 2305;
CLAMP_TO_EDGE: 33071;
COLOR_ATTACHMENT0: 36064;
COLOR_BUFFER_BIT: 16384;
COLOR_CLEAR_VALUE: 3106;
COLOR_WRITEMASK: 3107;
COMPILE_STATUS: 35713;
COMPRESSED_TEXTURE_FORMATS: 34467;
CONSTANT_ALPHA: 32771;
CONSTANT_COLOR: 32769;
CONTEXT_LOST_WEBGL: 37442;
CULL_FACE: 2884;
CULL_FACE_MODE: 2885;
CURRENT_PROGRAM: 35725;
CURRENT_VERTEX_ATTRIB: 34342;
CW: 2304;
DECR: 7683;
DECR_WRAP: 34056;
DELETE_STATUS: 35712;
DEPTH_ATTACHMENT: 36096;
DEPTH_BITS: 3414;
DEPTH_BUFFER_BIT: 256;
DEPTH_CLEAR_VALUE: 2931;
DEPTH_COMPONENT: 6402;
DEPTH_COMPONENT16: 33189;
DEPTH_FUNC: 2932;
DEPTH_RANGE: 2928;
DEPTH_STENCIL: 34041;
DEPTH_STENCIL_ATTACHMENT: 33306;
DEPTH_TEST: 2929;
DEPTH_WRITEMASK: 2930;
DITHER: 3024;
DONT_CARE: 4352;
drawingBufferColorSpace: PredefinedColorSpace;
drawingBufferHeight: number;
drawingBufferWidth: number;
DST_ALPHA: 772;
DST_COLOR: 774;
DYNAMIC_DRAW: 35048;
ELEMENT_ARRAY_BUFFER: 34963;
ELEMENT_ARRAY_BUFFER_BINDING: 34965;
EQUAL: 514;
FASTEST: 4353;
FLOAT: 5126;
FLOAT_MAT2: 35674;
FLOAT_MAT3: 35675;
FLOAT_MAT4: 35676;
FLOAT_VEC2: 35664;
FLOAT_VEC3: 35665;
FLOAT_VEC4: 35666;
FRAGMENT_SHADER: 35632;
FRAMEBUFFER: 36160;
FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 36049;
FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 36048;
FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 36051;
FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 36050;
FRAMEBUFFER_BINDING: 36006;
FRAMEBUFFER_COMPLETE: 36053;
FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 36054;
FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 36057;
FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 36055;
FRAMEBUFFER_UNSUPPORTED: 36061;
FRONT: 1028;
FRONT_AND_BACK: 1032;
FRONT_FACE: 2886;
FUNC_ADD: 32774;
FUNC_REVERSE_SUBTRACT: 32779;
FUNC_SUBTRACT: 32778;
GENERATE_MIPMAP_HINT: 33170;
GEQUAL: 518;
GREATER: 516;
GREEN_BITS: 3411;
HIGH_FLOAT: 36338;
HIGH_INT: 36341;
IMPLEMENTATION_COLOR_READ_FORMAT: 35739;
IMPLEMENTATION_COLOR_READ_TYPE: 35738;
INCR: 7682;
INCR_WRAP: 34055;
INT: 5124;
INT_VEC2: 35667;
INT_VEC3: 35668;
INT_VEC4: 35669;
INVALID_ENUM: 1280;
INVALID_FRAMEBUFFER_OPERATION: 1286;
INVALID_OPERATION: 1282;
INVALID_VALUE: 1281;
INVERT: 5386;
KEEP: 7680;
LEQUAL: 515;
LESS: 513;
LINE_LOOP: 2;
LINE_STRIP: 3;
LINE_WIDTH: 2849;
LINEAR: 9729;
LINEAR_MIPMAP_LINEAR: 9987;
LINEAR_MIPMAP_NEAREST: 9985;
LINES: 1;
LINK_STATUS: 35714;
LOW_FLOAT: 36336;
LOW_INT: 36339;
LUMINANCE: 6409;
LUMINANCE_ALPHA: 6410;
MAX_COMBINED_TEXTURE_IMAGE_UNITS: 35661;
MAX_CUBE_MAP_TEXTURE_SIZE: 34076;
MAX_FRAGMENT_UNIFORM_VECTORS: 36349;
MAX_RENDERBUFFER_SIZE: 34024;
MAX_TEXTURE_IMAGE_UNITS: 34930;
MAX_TEXTURE_SIZE: 3379;
MAX_VARYING_VECTORS: 36348;
MAX_VERTEX_ATTRIBS: 34921;
MAX_VERTEX_TEXTURE_IMAGE_UNITS: 35660;
MAX_VERTEX_UNIFORM_VECTORS: 36347;
MAX_VIEWPORT_DIMS: 3386;
MEDIUM_FLOAT: 36337;
MEDIUM_INT: 36340;
MIRRORED_REPEAT: 33648;
NEAREST: 9728;
NEAREST_MIPMAP_LINEAR: 9986;
NEAREST_MIPMAP_NEAREST: 9984;
NEVER: 512;
NICEST: 4354;
NO_ERROR: 0;
NONE: 0;
NOTEQUAL: 517;
ONE: 1;
ONE_MINUS_CONSTANT_ALPHA: 32772;
ONE_MINUS_CONSTANT_COLOR: 32770;
ONE_MINUS_DST_ALPHA: 773;
ONE_MINUS_DST_COLOR: 775;
ONE_MINUS_SRC_ALPHA: 771;
ONE_MINUS_SRC_COLOR: 769;
OUT_OF_MEMORY: 1285;
PACK_ALIGNMENT: 3333;
POINTS: 0;
POLYGON_OFFSET_FACTOR: 32824;
POLYGON_OFFSET_FILL: 32823;
POLYGON_OFFSET_UNITS: 10752;
RED_BITS: 3410;
RENDERBUFFER: 36161;
RENDERBUFFER_ALPHA_SIZE: 36179;
RENDERBUFFER_BINDING: 36007;
RENDERBUFFER_BLUE_SIZE: 36178;
RENDERBUFFER_DEPTH_SIZE: 36180;
RENDERBUFFER_GREEN_SIZE: 36177;
RENDERBUFFER_HEIGHT: 36163;
RENDERBUFFER_INTERNAL_FORMAT: 36164;
RENDERBUFFER_RED_SIZE: 36176;
RENDERBUFFER_STENCIL_SIZE: 36181;
RENDERBUFFER_WIDTH: 36162;
RENDERER: 7937;
REPEAT: 10497;
REPLACE: 7681;
RGB: 6407;
RGB5_A1: 32855;
RGB565: 36194;
RGBA: 6408;
RGBA4: 32854;
RGBA8: 32856;
SAMPLE_ALPHA_TO_COVERAGE: 32926;
SAMPLE_BUFFERS: 32936;
SAMPLE_COVERAGE: 32928;
SAMPLE_COVERAGE_INVERT: 32939;
SAMPLE_COVERAGE_VALUE: 32938;
SAMPLER_2D: 35678;
SAMPLER_CUBE: 35680;
SAMPLES: 32937;
SCISSOR_BOX: 3088;
SCISSOR_TEST: 3089;
SHADER_TYPE: 35663;
SHADING_LANGUAGE_VERSION: 35724;
SHORT: 5122;
SRC_ALPHA: 770;
SRC_ALPHA_SATURATE: 776;
SRC_COLOR: 768;
STATIC_DRAW: 35044;
STENCIL_ATTACHMENT: 36128;
STENCIL_BACK_FAIL: 34817;
STENCIL_BACK_FUNC: 34816;
STENCIL_BACK_PASS_DEPTH_FAIL: 34818;
STENCIL_BACK_PASS_DEPTH_PASS: 34819;
STENCIL_BACK_REF: 36003;
STENCIL_BACK_VALUE_MASK: 36004;
STENCIL_BACK_WRITEMASK: 36005;
STENCIL_BITS: 3415;
STENCIL_BUFFER_BIT: 1024;
STENCIL_CLEAR_VALUE: 2961;
STENCIL_FAIL: 2964;
STENCIL_FUNC: 2962;
STENCIL_INDEX8: 36168;
STENCIL_PASS_DEPTH_FAIL: 2965;
STENCIL_PASS_DEPTH_PASS: 2966;
STENCIL_REF: 2967;
STENCIL_TEST: 2960;
STENCIL_VALUE_MASK: 2963;
STENCIL_WRITEMASK: 2968;
STREAM_DRAW: 35040;
SUBPIXEL_BITS: 3408;
TEXTURE: 5890;
TEXTURE_2D: 3553;
TEXTURE_BINDING_2D: 32873;
TEXTURE_BINDING_CUBE_MAP: 34068;
TEXTURE_CUBE_MAP: 34067;
TEXTURE_CUBE_MAP_NEGATIVE_X: 34070;
TEXTURE_CUBE_MAP_NEGATIVE_Y: 34072;
TEXTURE_CUBE_MAP_NEGATIVE_Z: 34074;
TEXTURE_CUBE_MAP_POSITIVE_X: 34069;
TEXTURE_CUBE_MAP_POSITIVE_Y: 34071;
TEXTURE_CUBE_MAP_POSITIVE_Z: 34073;
TEXTURE_MAG_FILTER: 10240;
TEXTURE_MIN_FILTER: 10241;
TEXTURE_WRAP_S: 10242;
TEXTURE_WRAP_T: 10243;
TEXTURE0: 33984;
TEXTURE1: 33985;
TEXTURE10: 33994;
TEXTURE11: 33995;
TEXTURE12: 33996;
TEXTURE13: 33997;
TEXTURE14: 33998;
TEXTURE15: 33999;
TEXTURE16: 34000;
TEXTURE17: 34001;
TEXTURE18: 34002;
TEXTURE19: 34003;
TEXTURE2: 33986;
TEXTURE20: 34004;
TEXTURE21: 34005;
TEXTURE22: 34006;
TEXTURE23: 34007;
TEXTURE24: 34008;
TEXTURE25: 34009;
TEXTURE26: 34010;
TEXTURE27: 34011;
TEXTURE28: 34012;
TEXTURE29: 34013;
TEXTURE3: 33987;
TEXTURE30: 34014;
TEXTURE31: 34015;
TEXTURE4: 33988;
TEXTURE5: 33989;
TEXTURE6: 33990;
TEXTURE7: 33991;
TEXTURE8: 33992;
TEXTURE9: 33993;
TRIANGLE_FAN: 6;
TRIANGLE_STRIP: 5;
TRIANGLES: 4;
UNPACK_ALIGNMENT: 3317;
UNPACK_COLORSPACE_CONVERSION_WEBGL: 37443;
UNPACK_FLIP_Y_WEBGL: 37440;
UNPACK_PREMULTIPLY_ALPHA_WEBGL: 37441;
UNSIGNED_BYTE: 5121;
UNSIGNED_INT: 5125;
UNSIGNED_SHORT: 5123;
UNSIGNED_SHORT_4_4_4_4: 32819;
UNSIGNED_SHORT_5_5_5_1: 32820;
UNSIGNED_SHORT_5_6_5: 33635;
VALIDATE_STATUS: 35715;
VENDOR: 7936;
VERSION: 7938;
VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 34975;
VERTEX_ATTRIB_ARRAY_ENABLED: 34338;
VERTEX_ATTRIB_ARRAY_NORMALIZED: 34922;
VERTEX_ATTRIB_ARRAY_POINTER: 34373;
VERTEX_ATTRIB_ARRAY_SIZE: 34339;
VERTEX_ATTRIB_ARRAY_STRIDE: 34340;
VERTEX_ATTRIB_ARRAY_TYPE: 34341;
VERTEX_SHADER: 35633;
VIEWPORT: 2978;
ZERO: 0;
activeTexture(texture: number): void;
attachShader(program: WebGLProgram, shader: WebGLShader): void;
bindAttribLocation(program: WebGLProgram, index: number, name: string): void;
bindBuffer(target: number, buffer: WebGLBuffer): void;
bindFramebuffer(target: number, framebuffer: WebGLFramebuffer): void;
bindRenderbuffer(target: number, renderbuffer: WebGLRenderbuffer): void;
bindTexture(target: number, texture: WebGLTexture): void;
blendColor(red: number, green: number, blue: number, alpha: number): void;
blendEquation(mode: number): void;
blendEquationSeparate(modeRGB: number, modeAlpha: number): void;
blendFunc(sfactor: number, dfactor: number): void;
blendFuncSeparate(srcRGB: number, dstRGB: number, srcAlpha: number, dstAlpha: number): void;
bufferData(target: number, size: number, usage: number): void;
bufferData(target: number, data: AllowSharedBufferSource, usage: number): void;
bufferSubData(target: number, offset: number, data: AllowSharedBufferSource): void;
checkFramebufferStatus(target: number): number;
clear(mask: number): void;
clearColor(red: number, green: number, blue: number, alpha: number): void;
clearDepth(depth: number): void;
clearStencil(s: number): void;
colorMask(red: boolean, green: boolean, blue: boolean, alpha: boolean): void;
compileShader(shader: WebGLShader): void;
compressedTexImage2D(target: number, level: number, internalformat: number, width: number, height: number, border: number, data: ArrayBufferView): void;
compressedTexSubImage2D(target: number, level: number, xoffset: number, yoffset: number, width: number, height: number, format: number, data: ArrayBufferView): void;
copyTexImage2D(target: number, level: number, internalformat: number, x: number, y: number, width: number, height: number, border: number): void;
copyTexSubImage2D(target: number, level: number, xoffset: number, yoffset: number, x: number, y: number, width: number, height: number): void;
createBuffer(): WebGLBuffer;
createFramebuffer(): WebGLFramebuffer;
createProgram(): WebGLProgram;
createRenderbuffer(): WebGLRenderbuffer;
createShader(type: number): WebGLShader;
createTexture(): WebGLTexture;
cullFace(mode: number): void;
deleteBuffer(buffer: WebGLBuffer): void;
deleteFramebuffer(framebuffer: WebGLFramebuffer): void;
deleteProgram(program: WebGLProgram): void;
deleteRenderbuffer(renderbuffer: WebGLRenderbuffer): void;
deleteShader(shader: WebGLShader): void;
deleteTexture(texture: WebGLTexture): void;
depthFunc(func: number): void;
depthMask(flag: boolean): void;
depthRange(zNear: number, zFar: number): void;
detachShader(program: WebGLProgram, shader: WebGLShader): void;
disable(cap: number): void;
disableVertexAttribArray(index: number): void;
drawArrays(mode: number, first: number, count: number): void;
drawElements(mode: number, count: number, type: number, offset: number): void;
enable(cap: number): void;
enableVertexAttribArray(index: number): void;
finish(): void;
flush(): void;
framebufferRenderbuffer(target: number, attachment: number, renderbuffertarget: number, renderbuffer: WebGLRenderbuffer): void;
framebufferTexture2D(target: number, attachment: number, textarget: number, texture: WebGLTexture, level: number): void;
frontFace(mode: number): void;
generateMipmap(target: number): void;
getActiveAttrib(program: WebGLProgram, index: number): WebGLActiveInfo;
getActiveUniform(program: WebGLProgram, index: number): WebGLActiveInfo;
getAttachedShaders(program: WebGLProgram): WebGLShader[];
getAttribLocation(program: WebGLProgram, name: string): number;
getBufferParameter(target: number, pname: number): any;
getContextAttributes(): WebGLContextAttributes;
getError(): number;
getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays;
getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax;
getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float;
getExtension(extensionName: "EXT_color_buffer_half_float"): EXT_color_buffer_half_float;
getExtension(extensionName: "EXT_float_blend"): EXT_float_blend;
getExtension(extensionName: "EXT_frag_depth"): EXT_frag_depth;
getExtension(extensionName: "EXT_sRGB"): EXT_sRGB;
getExtension(extensionName: "EXT_shader_texture_lod"): EXT_shader_texture_lod;
getExtension(extensionName: "EXT_texture_compression_bptc"): EXT_texture_compression_bptc;
getExtension(extensionName: "EXT_texture_compression_rgtc"): EXT_texture_compression_rgtc;
getExtension(extensionName: "EXT_texture_filter_anisotropic"): EXT_texture_filter_anisotropic;
getExtension(extensionName: "KHR_parallel_shader_compile"): KHR_parallel_shader_compile;
getExtension(extensionName: "OES_element_index_uint"): OES_element_index_uint;
getExtension(extensionName: "OES_fbo_render_mipmap"): OES_fbo_render_mipmap;
getExtension(extensionName: "OES_standard_derivatives"): OES_standard_derivatives;
getExtension(extensionName: "OES_texture_float"): OES_texture_float;
getExtension(extensionName: "OES_texture_float_linear"): OES_texture_float_linear;
getExtension(extensionName: "OES_texture_half_float"): OES_texture_half_float;
getExtension(extensionName: "OES_texture_half_float_linear"): OES_texture_half_float_linear;
getExtension(extensionName: "OES_vertex_array_object"): OES_vertex_array_object;
getExtension(extensionName: "OVR_multiview2"): OVR_multiview2;
getExtension(extensionName: "WEBGL_color_buffer_float"): WEBGL_color_buffer_float;
getExtension(extensionName: "WEBGL_compressed_texture_astc"): WEBGL_compressed_texture_astc;
getExtension(extensionName: "WEBGL_compressed_texture_etc"): WEBGL_compressed_texture_etc;
getExtension(extensionName: "WEBGL_compressed_texture_etc1"): WEBGL_compressed_texture_etc1;
getExtension(extensionName: "WEBGL_compressed_texture_pvrtc"): WEBGL_compressed_texture_pvrtc;
getExtension(extensionName: "WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc;
getExtension(extensionName: "WEBGL_compressed_texture_s3tc_srgb"): WEBGL_compressed_texture_s3tc_srgb;
getExtension(extensionName: "WEBGL_debug_renderer_info"): WEBGL_debug_renderer_info;
getExtension(extensionName: "WEBGL_debug_shaders"): WEBGL_debug_shaders;
getExtension(extensionName: "WEBGL_depth_texture"): WEBGL_depth_texture;
getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers;
getExtension(extensionName: "WEBGL_lose_context"): WEBGL_lose_context;
getExtension(extensionName: "WEBGL_multi_draw"): WEBGL_multi_draw;
getExtension(name: string): any;
getExtension(extensionName: "OCULUS_multiview"): OCULUS_multiview;
getFramebufferAttachmentParameter(target: number, attachment: number, pname: number): any;
getParameter(pname: number): any;
getProgramInfoLog(program: WebGLProgram): string;
getProgramParameter(program: WebGLProgram, pname: number): any;
getRenderbufferParameter(target: number, pname: number): any;
getShaderInfoLog(shader: WebGLShader): string;
getShaderParameter(shader: WebGLShader, pname: number): any;
getShaderPrecisionFormat(shadertype: number, precisiontype: number): WebGLShaderPrecisionFormat;
getShaderSource(shader: WebGLShader): string;
getSupportedExtensions(): string[];
getTexParameter(target: number, pname: number): any;
getUniform(program: WebGLProgram, location: WebGLUniformLocation): any;
getUniformLocation(program: WebGLProgram, name: string): WebGLUniformLocation;
getVertexAttrib(index: number, pname: number): any;
getVertexAttribOffset(index: number, pname: number): number;
hint(target: number, mode: number): void;
isBuffer(buffer: WebGLBuffer): boolean;
isContextLost(): boolean;
isEnabled(cap: number): boolean;
isFramebuffer(framebuffer: WebGLFramebuffer): boolean;
isProgram(program: WebGLProgram): boolean;
isRenderbuffer(renderbuffer: WebGLRenderbuffer): boolean;
isShader(shader: WebGLShader): boolean;
isTexture(texture: WebGLTexture): boolean;
lineWidth(width: number): void;
linkProgram(program: WebGLProgram): void;
makeXRCompatible(): Promise<void>;
pixelStorei(pname: number, param: number | boolean): void;
polygonOffset(factor: number, units: number): void;
readPixels(x: number, y: number, width: number, height: number, format: number, type: number, pixels: ArrayBufferView): void;
renderbufferStorage(target: number, internalformat: number, width: number, height: number): void;
sampleCoverage(value: number, invert: boolean): void;
scissor(x: number, y: number, width: number, height: number): void;
shaderSource(shader: WebGLShader, source: string): void;
stencilFunc(func: number, ref: number, mask: number): void;
stencilFuncSeparate(face: number, func: number, ref: number, mask: number): void;
stencilMask(mask: number): void;
stencilMaskSeparate(face: number, mask: number): void;
stencilOp(fail: number, zfail: number, zpass: number): void;
stencilOpSeparate(face: number, fail: number, zfail: number, zpass: number): void;
texImage2D(target: number, level: number, internalformat: number, width: number, height: number, border: number, format: number, type: number, pixels: ArrayBufferView): void;
texImage2D(target: number, level: number, internalformat: number, format: number, type: number, source: TexImageSource): void;
texImage2D(target: number, level: number, internalformat: number, format: number, type: number, source: TexImageSourceWebCodecs): void;
texParameterf(target: number, pname: number, param: number): void;
texParameteri(target: number, pname: number, param: number): void;
texSubImage2D(target: number, level: number, xoffset: number, yoffset: number, width: number, height: number, format: number, type: number, pixels: ArrayBufferView): void;
texSubImage2D(target: number, level: number, xoffset: number, yoffset: number, format: number, type: number, source: TexImageSource): void;
texSubImage2D(target: number, level: number, xoffset: number, yoffset: number, format: number, type: number, source: TexImageSourceWebCodecs): void;
uniform1f(location: WebGLUniformLocation, x: number): void;
uniform1fv(location: WebGLUniformLocation, v: Float32List): void;
uniform1fv(location: WebGLUniformLocation, v: Iterable<number, any, any>): void;
uniform1i(location: WebGLUniformLocation, x: number): void;
uniform1iv(location: WebGLUniformLocation, v: Int32List): void;
uniform1iv(location: WebGLUniformLocation, v: Iterable<number, any, any>): void;
uniform2f(location: WebGLUniformLocation, x: number, y: number): void;
uniform2fv(location: WebGLUniformLocation, v: Float32List): void;
uniform2fv(location: WebGLUniformLocation, v: Iterable<number, any, any>): void;
uniform2i(location: WebGLUniformLocation, x: number, y: number): void;
uniform2iv(location: WebGLUniformLocation, v: Int32List): void;
uniform2iv(location: WebGLUniformLocation, v: Iterable<number, any, any>): void;
uniform3f(location: WebGLUniformLocation, x: number, y: number, z: number): void;
uniform3fv(location: WebGLUniformLocation, v: Float32List): void;
uniform3fv(location: WebGLUniformLocation, v: Iterable<number, any, any>): void;
uniform3i(location: WebGLUniformLocation, x: number, y: number, z: number): void;
uniform3iv(location: WebGLUniformLocation, v: Int32List): void;
uniform3iv(location: WebGLUniformLocation, v: Iterable<number, any, any>): void;
uniform4f(location: WebGLUniformLocation, x: number, y: number, z: number, w: number): void;
uniform4fv(location: WebGLUniformLocation, v: Float32List): void;
uniform4fv(location: WebGLUniformLocation, v: Iterable<number, any, any>): void;
uniform4i(location: WebGLUniformLocation, x: number, y: number, z: number, w: number): void;
uniform4iv(location: WebGLUniformLocation, v: Int32List): void;
uniform4iv(location: WebGLUniformLocation, v: Iterable<number, any, any>): void;
uniformMatrix2fv(location: WebGLUniformLocation, transpose: boolean, value: Float32List): void;
uniformMatrix2fv(location: WebGLUniformLocation, transpose: boolean, value: Iterable<number, any, any>): void;
uniformMatrix3fv(location: WebGLUniformLocation, transpose: boolean, value: Float32List): void;
uniformMatrix3fv(location: WebGLUniformLocation, transpose: boolean, value: Iterable<number, any, any>): void;
uniformMatrix4fv(location: WebGLUniformLocation, transpose: boolean, value: Float32List): void;
uniformMatrix4fv(location: WebGLUniformLocation, transpose: boolean, value: Iterable<number, any, any>): void;
useProgram(program: WebGLProgram): void;
validateProgram(program: WebGLProgram): void;
vertexAttrib1f(index: number, x: number): void;
vertexAttrib1fv(index: number, values: Float32List): void;
vertexAttrib1fv(index: number, values: Iterable<number, any, any>): void;
vertexAttrib2f(index: number, x: number, y: number): void;
vertexAttrib2fv(index: number, values: Float32List): void;
vertexAttrib2fv(index: number, values: Iterable<number, any, any>): void;
vertexAttrib3f(index: number, x: number, y: number, z: number): void;
vertexAttrib3fv(index: number, values: Float32List): void;
vertexAttrib3fv(index: number, values: Iterable<number, any, any>): void;
vertexAttrib4f(index: number, x: number, y: number, z: number, w: number): void;
vertexAttrib4fv(index: number, values: Float32List): void;
vertexAttrib4fv(index: number, values: Iterable<number, any, any>): void;
vertexAttribPointer(index: number, size: number, type: number, normalized: boolean, stride: number, offset: number): void;
viewport(x: number, y: number, width: number, height: number): void;
}
ACTIVE_ATTRIBUTES: 35721;
ACTIVE_TEXTURE: 34016;
ACTIVE_UNIFORMS: 35718;
ALIASED_LINE_WIDTH_RANGE: 33902;
ALIASED_POINT_SIZE_RANGE: 33901;
ALPHA: 6406;
ALPHA_BITS: 3413;
ALWAYS: 519;
ARRAY_BUFFER: 34962;
ARRAY_BUFFER_BINDING: 34964;
ATTACHED_SHADERS: 35717;
BACK: 1029;
BLEND: 3042;
BLEND_COLOR: 32773;
BLEND_DST_ALPHA: 32970;
BLEND_DST_RGB: 32968;
BLEND_EQUATION: 32777;
BLEND_EQUATION_ALPHA: 34877;
BLEND_EQUATION_RGB: 32777;
BLEND_SRC_ALPHA: 32971;
BLEND_SRC_RGB: 32969;
BLUE_BITS: 3412;
BOOL: 35670;
BOOL_VEC2: 35671;
BOOL_VEC3: 35672;
BOOL_VEC4: 35673;
BROWSER_DEFAULT_WEBGL: 37444;
BUFFER_SIZE: 34660;
BUFFER_USAGE: 34661;
BYTE: 5120;
canvas: HTMLCanvasElement | OffscreenCanvas;
CCW: 2305;
CLAMP_TO_EDGE: 33071;
COLOR_ATTACHMENT0: 36064;
COLOR_BUFFER_BIT: 16384;
COLOR_CLEAR_VALUE: 3106;
COLOR_WRITEMASK: 3107;
COMPILE_STATUS: 35713;
COMPRESSED_TEXTURE_FORMATS: 34467;
CONSTANT_ALPHA: 32771;
CONSTANT_COLOR: 32769;
CONTEXT_LOST_WEBGL: 37442;
CULL_FACE: 2884;
CULL_FACE_MODE: 2885;
CURRENT_PROGRAM: 35725;
CURRENT_VERTEX_ATTRIB: 34342;
CW: 2304;
DECR: 7683;
DECR_WRAP: 34056;
DELETE_STATUS: 35712;
DEPTH_ATTACHMENT: 36096;
DEPTH_BITS: 3414;
DEPTH_BUFFER_BIT: 256;
DEPTH_CLEAR_VALUE: 2931;
DEPTH_COMPONENT: 6402;
DEPTH_COMPONENT16: 33189;
DEPTH_FUNC: 2932;
DEPTH_RANGE: 2928;
DEPTH_STENCIL: 34041;
DEPTH_STENCIL_ATTACHMENT: 33306;
DEPTH_TEST: 2929;
DEPTH_WRITEMASK: 2930;
DITHER: 3024;
DONT_CARE: 4352;
drawingBufferColorSpace: PredefinedColorSpace;
drawingBufferHeight: number;
drawingBufferWidth: number;
DST_ALPHA: 772;
DST_COLOR: 774;
DYNAMIC_DRAW: 35048;
ELEMENT_ARRAY_BUFFER: 34963;
ELEMENT_ARRAY_BUFFER_BINDING: 34965;
EQUAL: 514;
FASTEST: 4353;
FLOAT: 5126;
FLOAT_MAT2: 35674;
FLOAT_MAT3: 35675;
FLOAT_MAT4: 35676;
FLOAT_VEC2: 35664;
FLOAT_VEC3: 35665;
FLOAT_VEC4: 35666;
FRAGMENT_SHADER: 35632;
FRAMEBUFFER: 36160;
FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 36049;
FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 36048;
FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 36051;
FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 36050;
FRAMEBUFFER_BINDING: 36006;
FRAMEBUFFER_COMPLETE: 36053;
FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 36054;
FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 36057;
FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 36055;
FRAMEBUFFER_UNSUPPORTED: 36061;
FRONT: 1028;
FRONT_AND_BACK: 1032;
FRONT_FACE: 2886;
FUNC_ADD: 32774;
FUNC_REVERSE_SUBTRACT: 32779;
FUNC_SUBTRACT: 32778;
GENERATE_MIPMAP_HINT: 33170;
GEQUAL: 518;
GREATER: 516;
GREEN_BITS: 3411;
HIGH_FLOAT: 36338;
HIGH_INT: 36341;
IMPLEMENTATION_COLOR_READ_FORMAT: 35739;
IMPLEMENTATION_COLOR_READ_TYPE: 35738;
INCR: 7682;
INCR_WRAP: 34055;
INT: 5124;
INT_VEC2: 35667;
INT_VEC3: 35668;
INT_VEC4: 35669;
INVALID_ENUM: 1280;
INVALID_FRAMEBUFFER_OPERATION: 1286;
INVALID_OPERATION: 1282;
INVALID_VALUE: 1281;
INVERT: 5386;
KEEP: 7680;
LEQUAL: 515;
LESS: 513;
LINE_LOOP: 2;
LINE_STRIP: 3;
LINE_WIDTH: 2849;
LINEAR: 9729;
LINEAR_MIPMAP_LINEAR: 9987;
LINEAR_MIPMAP_NEAREST: 9985;
LINES: 1;
LINK_STATUS: 35714;
LOW_FLOAT: 36336;
LOW_INT: 36339;
LUMINANCE: 6409;
LUMINANCE_ALPHA: 6410;
MAX_COMBINED_TEXTURE_IMAGE_UNITS: 35661;
MAX_CUBE_MAP_TEXTURE_SIZE: 34076;
MAX_FRAGMENT_UNIFORM_VECTORS: 36349;
MAX_RENDERBUFFER_SIZE: 34024;
MAX_TEXTURE_IMAGE_UNITS: 34930;
MAX_TEXTURE_SIZE: 3379;
MAX_VARYING_VECTORS: 36348;
MAX_VERTEX_ATTRIBS: 34921;
MAX_VERTEX_TEXTURE_IMAGE_UNITS: 35660;
MAX_VERTEX_UNIFORM_VECTORS: 36347;
MAX_VIEWPORT_DIMS: 3386;
MEDIUM_FLOAT: 36337;
MEDIUM_INT: 36340;
MIRRORED_REPEAT: 33648;
NEAREST: 9728;
NEAREST_MIPMAP_LINEAR: 9986;
NEAREST_MIPMAP_NEAREST: 9984;
NEVER: 512;
NICEST: 4354;
NO_ERROR: 0;
NONE: 0;
NOTEQUAL: 517;
ONE: 1;
ONE_MINUS_CONSTANT_ALPHA: 32772;
ONE_MINUS_CONSTANT_COLOR: 32770;
ONE_MINUS_DST_ALPHA: 773;
ONE_MINUS_DST_COLOR: 775;
ONE_MINUS_SRC_ALPHA: 771;
ONE_MINUS_SRC_COLOR: 769;
OUT_OF_MEMORY: 1285;
PACK_ALIGNMENT: 3333;
POINTS: 0;
POLYGON_OFFSET_FACTOR: 32824;
POLYGON_OFFSET_FILL: 32823;
POLYGON_OFFSET_UNITS: 10752;
RED_BITS: 3410;
RENDERBUFFER: 36161;
RENDERBUFFER_ALPHA_SIZE: 36179;
RENDERBUFFER_BINDING: 36007;
RENDERBUFFER_BLUE_SIZE: 36178;
RENDERBUFFER_DEPTH_SIZE: 36180;
RENDERBUFFER_GREEN_SIZE: 36177;
RENDERBUFFER_HEIGHT: 36163;
RENDERBUFFER_INTERNAL_FORMAT: 36164;
RENDERBUFFER_RED_SIZE: 36176;
RENDERBUFFER_STENCIL_SIZE: 36181;
RENDERBUFFER_WIDTH: 36162;
RENDERER: 7937;
REPEAT: 10497;
REPLACE: 7681;
RGB: 6407;
RGB5_A1: 32855;
RGB565: 36194;
RGBA: 6408;
RGBA4: 32854;
RGBA8: 32856;
SAMPLE_ALPHA_TO_COVERAGE: 32926;
SAMPLE_BUFFERS: 32936;
SAMPLE_COVERAGE: 32928;
SAMPLE_COVERAGE_INVERT: 32939;
SAMPLE_COVERAGE_VALUE: 32938;
SAMPLER_2D: 35678;
SAMPLER_CUBE: 35680;
SAMPLES: 32937;
SCISSOR_BOX: 3088;
SCISSOR_TEST: 3089;
SHADER_TYPE: 35663;
SHADING_LANGUAGE_VERSION: 35724;
SHORT: 5122;
SRC_ALPHA: 770;
SRC_ALPHA_SATURATE: 776;
SRC_COLOR: 768;
STATIC_DRAW: 35044;
STENCIL_ATTACHMENT: 36128;
STENCIL_BACK_FAIL: 34817;
STENCIL_BACK_FUNC: 34816;
STENCIL_BACK_PASS_DEPTH_FAIL: 34818;
STENCIL_BACK_PASS_DEPTH_PASS: 34819;
STENCIL_BACK_REF: 36003;
STENCIL_BACK_VALUE_MASK: 36004;
STENCIL_BACK_WRITEMASK: 36005;
STENCIL_BITS: 3415;
STENCIL_BUFFER_BIT: 1024;
STENCIL_CLEAR_VALUE: 2961;
STENCIL_FAIL: 2964;
STENCIL_FUNC: 2962;
STENCIL_INDEX8: 36168;
STENCIL_PASS_DEPTH_FAIL: 2965;
STENCIL_PASS_DEPTH_PASS: 2966;
STENCIL_REF: 2967;
STENCIL_TEST: 2960;
STENCIL_VALUE_MASK: 2963;
STENCIL_WRITEMASK: 2968;
STREAM_DRAW: 35040;
SUBPIXEL_BITS: 3408;
TEXTURE: 5890;
TEXTURE_2D: 3553;
TEXTURE_BINDING_2D: 32873;
TEXTURE_BINDING_CUBE_MAP: 34068;
TEXTURE_CUBE_MAP: 34067;
TEXTURE_CUBE_MAP_NEGATIVE_X: 34070;
TEXTURE_CUBE_MAP_NEGATIVE_Y: 34072;
TEXTURE_CUBE_MAP_NEGATIVE_Z: 34074;
TEXTURE_CUBE_MAP_POSITIVE_X: 34069;
TEXTURE_CUBE_MAP_POSITIVE_Y: 34071;
TEXTURE_CUBE_MAP_POSITIVE_Z: 34073;
TEXTURE_MAG_FILTER: 10240;
TEXTURE_MIN_FILTER: 10241;
TEXTURE_WRAP_S: 10242;
TEXTURE_WRAP_T: 10243;
TEXTURE0: 33984;
TEXTURE1: 33985;
TEXTURE10: 33994;
TEXTURE11: 33995;
TEXTURE12: 33996;
TEXTURE13: 33997;
TEXTURE14: 33998;
TEXTURE15: 33999;
TEXTURE16: 34000;
TEXTURE17: 34001;
TEXTURE18: 34002;
TEXTURE19: 34003;
TEXTURE2: 33986;
TEXTURE20: 34004;
TEXTURE21: 34005;
TEXTURE22: 34006;
TEXTURE23: 34007;
TEXTURE24: 34008;
TEXTURE25: 34009;
TEXTURE26: 34010;
TEXTURE27: 34011;
TEXTURE28: 34012;
TEXTURE29: 34013;
TEXTURE3: 33987;
TEXTURE30: 34014;
TEXTURE31: 34015;
TEXTURE4: 33988;
TEXTURE5: 33989;
TEXTURE6: 33990;
TEXTURE7: 33991;
TEXTURE8: 33992;
TEXTURE9: 33993;
TRIANGLE_FAN: 6;
TRIANGLE_STRIP: 5;
TRIANGLES: 4;
UNPACK_ALIGNMENT: 3317;
UNPACK_COLORSPACE_CONVERSION_WEBGL: 37443;
UNPACK_FLIP_Y_WEBGL: 37440;
UNPACK_PREMULTIPLY_ALPHA_WEBGL: 37441;
UNSIGNED_BYTE: 5121;
UNSIGNED_INT: 5125;
UNSIGNED_SHORT: 5123;
UNSIGNED_SHORT_4_4_4_4: 32819;
UNSIGNED_SHORT_5_5_5_1: 32820;
UNSIGNED_SHORT_5_6_5: 33635;
VALIDATE_STATUS: 35715;
VENDOR: 7936;
VERSION: 7938;
VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 34975;
VERTEX_ATTRIB_ARRAY_ENABLED: 34338;
VERTEX_ATTRIB_ARRAY_NORMALIZED: 34922;
VERTEX_ATTRIB_ARRAY_POINTER: 34373;
VERTEX_ATTRIB_ARRAY_SIZE: 34339;
VERTEX_ATTRIB_ARRAY_STRIDE: 34340;
VERTEX_ATTRIB_ARRAY_TYPE: 34341;
VERTEX_SHADER: 35633;
VIEWPORT: 2978;
ZERO: 0;
activeTexture(texture: number): void;
attachShader(program: WebGLProgram, shader: WebGLShader): void;
bindAttribLocation(program: WebGLProgram, index: number, name: string): void;
bindBuffer(target: number, buffer: WebGLBuffer): void;
bindFramebuffer(target: number, framebuffer: WebGLFramebuffer): void;
bindRenderbuffer(target: number, renderbuffer: WebGLRenderbuffer): void;
bindTexture(target: number, texture: WebGLTexture): void;
blendColor(red: number, green: number, blue: number, alpha: number): void;
blendEquation(mode: number): void;
blendEquationSeparate(modeRGB: number, modeAlpha: number): void;
blendFunc(sfactor: number, dfactor: number): void;
blendFuncSeparate(srcRGB: number, dstRGB: number, srcAlpha: number, dstAlpha: number): void;
bufferData(target: number, size: number, usage: number): void;
bufferData(target: number, data: AllowSharedBufferSource, usage: number): void;
bufferSubData(target: number, offset: number, data: AllowSharedBufferSource): void;
checkFramebufferStatus(target: number): number;
clear(mask: number): void;
clearColor(red: number, green: number, blue: number, alpha: number): void;
clearDepth(depth: number): void;
clearStencil(s: number): void;
colorMask(red: boolean, green: boolean, blue: boolean, alpha: boolean): void;
compileShader(shader: WebGLShader): void;
compressedTexImage2D(target: number, level: number, internalformat: number, width: number, height: number, border: number, data: ArrayBufferView): void;
compressedTexSubImage2D(target: number, level: number, xoffset: number, yoffset: number, width: number, height: number, format: number, data: ArrayBufferView): void;
copyTexImage2D(target: number, level: number, internalformat: number, x: number, y: number, width: number, height: number, border: number): void;
copyTexSubImage2D(target: number, level: number, xoffset: number, yoffset: number, x: number, y: number, width: number, height: number): void;
createBuffer(): WebGLBuffer;
createFramebuffer(): WebGLFramebuffer;
createProgram(): WebGLProgram;
createRenderbuffer(): WebGLRenderbuffer;
createShader(type: number): WebGLShader;
createTexture(): WebGLTexture;
cullFace(mode: number): void;
deleteBuffer(buffer: WebGLBuffer): void;
deleteFramebuffer(framebuffer: WebGLFramebuffer): void;
deleteProgram(program: WebGLProgram): void;
deleteRenderbuffer(renderbuffer: WebGLRenderbuffer): void;
deleteShader(shader: WebGLShader): void;
deleteTexture(texture: WebGLTexture): void;
depthFunc(func: number): void;
depthMask(flag: boolean): void;
depthRange(zNear: number, zFar: number): void;
detachShader(program: WebGLProgram, shader: WebGLShader): void;
disable(cap: number): void;
disableVertexAttribArray(index: number): void;
drawArrays(mode: number, first: number, count: number): void;
drawElements(mode: number, count: number, type: number, offset: number): void;
enable(cap: number): void;
enableVertexAttribArray(index: number): void;
finish(): void;
flush(): void;
framebufferRenderbuffer(target: number, attachment: number, renderbuffertarget: number, renderbuffer: WebGLRenderbuffer): void;
framebufferTexture2D(target: number, attachment: number, textarget: number, texture: WebGLTexture, level: number): void;
frontFace(mode: number): void;
generateMipmap(target: number): void;
getActiveAttrib(program: WebGLProgram, index: number): WebGLActiveInfo;
getActiveUniform(program: WebGLProgram, index: number): WebGLActiveInfo;
getAttachedShaders(program: WebGLProgram): WebGLShader[];
getAttribLocation(program: WebGLProgram, name: string): number;
getBufferParameter(target: number, pname: number): any;
getContextAttributes(): WebGLContextAttributes;
getError(): number;
getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays;
getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax;
getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float;
getExtension(extensionName: "EXT_color_buffer_half_float"): EXT_color_buffer_half_float;
getExtension(extensionName: "EXT_float_blend"): EXT_float_blend;
getExtension(extensionName: "EXT_frag_depth"): EXT_frag_depth;
getExtension(extensionName: "EXT_sRGB"): EXT_sRGB;
getExtension(extensionName: "EXT_shader_texture_lod"): EXT_shader_texture_lod;
getExtension(extensionName: "EXT_texture_compression_bptc"): EXT_texture_compression_bptc;
getExtension(extensionName: "EXT_texture_compression_rgtc"): EXT_texture_compression_rgtc;
getExtension(extensionName: "EXT_texture_filter_anisotropic"): EXT_texture_filter_anisotropic;
getExtension(extensionName: "KHR_parallel_shader_compile"): KHR_parallel_shader_compile;
getExtension(extensionName: "OES_element_index_uint"): OES_element_index_uint;
getExtension(extensionName: "OES_fbo_render_mipmap"): OES_fbo_render_mipmap;
getExtension(extensionName: "OES_standard_derivatives"): OES_standard_derivatives;
getExtension(extensionName: "OES_texture_float"): OES_texture_float;
getExtension(extensionName: "OES_texture_float_linear"): OES_texture_float_linear;
getExtension(extensionName: "OES_texture_half_float"): OES_texture_half_float;
getExtension(extensionName: "OES_texture_half_float_linear"): OES_texture_half_float_linear;
getExtension(extensionName: "OES_vertex_array_object"): OES_vertex_array_object;
getExtension(extensionName: "OVR_multiview2"): OVR_multiview2;
getExtension(extensionName: "WEBGL_color_buffer_float"): WEBGL_color_buffer_float;
getExtension(extensionName: "WEBGL_compressed_texture_astc"): WEBGL_compressed_texture_astc;
getExtension(extensionName: "WEBGL_compressed_texture_etc"): WEBGL_compressed_texture_etc;
getExtension(extensionName: "WEBGL_compressed_texture_etc1"): WEBGL_compressed_texture_etc1;
getExtension(extensionName: "WEBGL_compressed_texture_pvrtc"): WEBGL_compressed_texture_pvrtc;
getExtension(extensionName: "WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc;
getExtension(extensionName: "WEBGL_compressed_texture_s3tc_srgb"): WEBGL_compressed_texture_s3tc_srgb;
getExtension(extensionName: "WEBGL_debug_renderer_info"): WEBGL_debug_renderer_info;
getExtension(extensionName: "WEBGL_debug_shaders"): WEBGL_debug_shaders;
getExtension(extensionName: "WEBGL_depth_texture"): WEBGL_depth_texture;
getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers;
getExtension(extensionName: "WEBGL_lose_context"): WEBGL_lose_context;
getExtension(extensionName: "WEBGL_multi_draw"): WEBGL_multi_draw;
getExtension(name: string): any;
getExtension(extensionName: "OCULUS_multiview"): OCULUS_multiview;
getFramebufferAttachmentParameter(target: number, attachment: number, pname: number): any;
getParameter(pname: number): any;
getProgramInfoLog(program: WebGLProgram): string;
getProgramParameter(program: WebGLProgram, pname: number): any;
getRenderbufferParameter(target: number, pname: number): any;
getShaderInfoLog(shader: WebGLShader): string;
getShaderParameter(shader: WebGLShader, pname: number): any;
getShaderPrecisionFormat(shadertype: number, precisiontype: number): WebGLShaderPrecisionFormat;
getShaderSource(shader: WebGLShader): string;
getSupportedExtensions(): string[];
getTexParameter(target: number, pname: number): any;
getUniform(program: WebGLProgram, location: WebGLUniformLocation): any;
getUniformLocation(program: WebGLProgram, name: string): WebGLUniformLocation;
getVertexAttrib(index: number, pname: number): any;
getVertexAttribOffset(index: number, pname: number): number;
hint(target: number, mode: number): void;
isBuffer(buffer: WebGLBuffer): boolean;
isContextLost(): boolean;
isEnabled(cap: number): boolean;
isFramebuffer(framebuffer: WebGLFramebuffer): boolean;
isProgram(program: WebGLProgram): boolean;
isRenderbuffer(renderbuffer: WebGLRenderbuffer): boolean;
isShader(shader: WebGLShader): boolean;
isTexture(texture: WebGLTexture): boolean;
lineWidth(width: number): void;
linkProgram(program: WebGLProgram): void;
makeXRCompatible(): Promise<void>;
pixelStorei(pname: number, param: number | boolean): void;
polygonOffset(factor: number, units: number): void;
readPixels(x: number, y: number, width: number, height: number, format: number, type: number, pixels: ArrayBufferView): void;
renderbufferStorage(target: number, internalformat: number, width: number, height: number): void;
sampleCoverage(value: number, invert: boolean): void;
scissor(x: number, y: number, width: number, height: number): void;
shaderSource(shader: WebGLShader, source: string): void;
stencilFunc(func: number, ref: number, mask: number): void;
stencilFuncSeparate(face: number, func: number, ref: number, mask: number): void;
stencilMask(mask: number): void;
stencilMaskSeparate(face: number, mask: number): void;
stencilOp(fail: number, zfail: number, zpass: number): void;
stencilOpSeparate(face: number, fail: number, zfail: number, zpass: number): void;
texImage2D(target: number, level: number, internalformat: number, width: number, height: number, border: number, format: number, type: number, pixels: ArrayBufferView): void;
texImage2D(target: number, level: number, internalformat: number, format: number, type: number, source: TexImageSource): void;
texImage2D(target: number, level: number, internalformat: number, format: number, type: number, source: TexImageSourceWebCodecs): void;
texParameterf(target: number, pname: number, param: number): void;
texParameteri(target: number, pname: number, param: number): void;
texSubImage2D(target: number, level: number, xoffset: number, yoffset: number, width: number, height: number, format: number, type: number, pixels: ArrayBufferView): void;
texSubImage2D(target: number, level: number, xoffset: number, yoffset: number, format: number, type: number, source: TexImageSource): void;
texSubImage2D(target: number, level: number, xoffset: number, yoffset: number, format: number, type: number, source: TexImageSourceWebCodecs): void;
uniform1f(location: WebGLUniformLocation, x: number): void;
uniform1fv(location: WebGLUniformLocation, v: Float32List): void;
uniform1fv(location: WebGLUniformLocation, v: Iterable<number, any, any>): void;
uniform1i(location: WebGLUniformLocation, x: number): void;
uniform1iv(location: WebGLUniformLocation, v: Int32List): void;
uniform1iv(location: WebGLUniformLocation, v: Iterable<number, any, any>): void;
uniform2f(location: WebGLUniformLocation, x: number, y: number): void;
uniform2fv(location: WebGLUniformLocation, v: Float32List): void;
uniform2fv(location: WebGLUniformLocation, v: Iterable<number, any, any>): void;
uniform2i(location: WebGLUniformLocation, x: number, y: number): void;
uniform2iv(location: WebGLUniformLocation, v: Int32List): void;
uniform2iv(location: WebGLUniformLocation, v: Iterable<number, any, any>): void;
uniform3f(location: WebGLUniformLocation, x: number, y: number, z: number): void;
uniform3fv(location: WebGLUniformLocation, v: Float32List): void;
uniform3fv(location: WebGLUniformLocation, v: Iterable<number, any, any>): void;
uniform3i(location: WebGLUniformLocation, x: number, y: number, z: number): void;
uniform3iv(location: WebGLUniformLocation, v: Int32List): void;
uniform3iv(location: WebGLUniformLocation, v: Iterable<number, any, any>): void;
uniform4f(location: WebGLUniformLocation, x: number, y: number, z: number, w: number): void;
uniform4fv(location: WebGLUniformLocation, v: Float32List): void;
uniform4fv(location: WebGLUniformLocation, v: Iterable<number, any, any>): void;
uniform4i(location: WebGLUniformLocation, x: number, y: number, z: number, w: number): void;
uniform4iv(location: WebGLUniformLocation, v: Int32List): void;
uniform4iv(location: WebGLUniformLocation, v: Iterable<number, any, any>): void;
uniformMatrix2fv(location: WebGLUniformLocation, transpose: boolean, value: Float32List): void;
uniformMatrix2fv(location: WebGLUniformLocation, transpose: boolean, value: Iterable<number, any, any>): void;
uniformMatrix3fv(location: WebGLUniformLocation, transpose: boolean, value: Float32List): void;
uniformMatrix3fv(location: WebGLUniformLocation, transpose: boolean, value: Iterable<number, any, any>): void;
uniformMatrix4fv(location: WebGLUniformLocation, transpose: boolean, value: Float32List): void;
uniformMatrix4fv(location: WebGLUniformLocation, transpose: boolean, value: Iterable<number, any, any>): void;
useProgram(program: WebGLProgram): void;
validateProgram(program: WebGLProgram): void;
vertexAttrib1f(index: number, x: number): void;
vertexAttrib1fv(index: number, values: Float32List): void;
vertexAttrib1fv(index: number, values: Iterable<number, any, any>): void;
vertexAttrib2f(index: number, x: number, y: number): void;
vertexAttrib2fv(index: number, values: Float32List): void;
vertexAttrib2fv(index: number, values: Iterable<number, any, any>): void;
vertexAttrib3f(index: number, x: number, y: number, z: number): void;
vertexAttrib3fv(index: number, values: Float32List): void;
vertexAttrib3fv(index: number, values: Iterable<number, any, any>): void;
vertexAttrib4f(index: number, x: number, y: number, z: number, w: number): void;
vertexAttrib4fv(index: number, values: Float32List): void;
vertexAttrib4fv(index: number, values: Iterable<number, any, any>): void;
vertexAttribPointer(index: number, size: number, type: number, normalized: boolean, stride: number, offset: number): void;
viewport(x: number, y: number, width: number, height: number): void;
}
Hierarchy
- WebGLRenderingContextBase
- WebGLRenderingContextOverloads
- WebGLRenderingContext (view full)
Index
Properties
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
canvas
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
drawingBufferColorSpace
drawingBufferHeight
drawingBufferWidth
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
IMPLEMENTATION_COLOR_READ_FORMAT
IMPLEMENTATION_COLOR_READ_TYPE
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
RGBA8
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_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
Methods
activeTexture
attachShader
bindAttribLocation
bindBuffer
bindFramebuffer
bindRenderbuffer
bindTexture
blendColor
blendEquation
blendEquationSeparate
blendFunc
blendFuncSeparate
bufferData
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
getAttribLocation
getBufferParameter
getContextAttributes
getError
getExtension
getFramebufferAttachmentParameter
getParameter
getProgramInfoLog
getProgramParameter
getRenderbufferParameter
getShaderInfoLog
getShaderParameter
getShaderPrecisionFormat
getShaderSource
getSupportedExtensions
getTexParameter
getUniform
getUniformLocation
getVertexAttrib
getVertexAttribOffset
hint
isBuffer
isContextLost
isEnabled
isFramebuffer
isProgram
isRenderbuffer
isShader
isTexture
lineWidth
linkProgram
makeXRCompatible
pixelStorei
polygonOffset
readPixels
renderbufferStorage
sampleCoverage
scissor
shaderSource
stencilFunc
stencilFuncSeparate
stencilMask
stencilMaskSeparate
stencilOp
stencilOpSeparate
texImage2D
texParameterf
texParameteri
texSubImage2D
uniform1f
uniform1fv
uniform1i
uniform1iv
uniform2f
uniform2fv
uniform2i
uniform2iv
uniform3f
uniform3fv
uniform3i
uniform3iv
uniform4f
uniform4fv
uniform4i
uniform4iv
uniformMatrix2fv
uniformMatrix3fv
uniformMatrix4fv
useProgram
validateProgram
vertexAttrib1f
vertexAttrib1fv
vertexAttrib2f
vertexAttrib2fv
vertexAttrib3f
vertexAttrib3fv
vertexAttrib4f
vertexAttrib4fv
vertexAttribPointer
viewport
Properties
Readonly
ACTIVE_ATTRIBUTES
ACTIVE_ATTRIBUTES : 35721
Readonly
ACTIVE_TEXTURE
ACTIVE_TEXTURE : 34016
Readonly
ACTIVE_UNIFORMS
ACTIVE_UNIFORMS : 35718
Readonly
ALIASED_LINE_WIDTH_RANGE
ALIASED_LINE_WIDTH_RANGE : 33902
Readonly
ALIASED_POINT_SIZE_RANGE
ALIASED_POINT_SIZE_RANGE : 33901
Readonly
ALPHA
ALPHA: 6406
Readonly
ALPHA_BITS
ALPHA_BITS : 3413
Readonly
ALWAYS
ALWAYS: 519
Readonly
ARRAY_BUFFER
ARRAY_BUFFER : 34962
Readonly
ARRAY_BUFFER_BINDING
ARRAY_BUFFER_BINDING : 34964
Readonly
ATTACHED_SHADERS
ATTACHED_SHADERS : 35717
Readonly
BACK
BACK: 1029
Readonly
BLEND
BLEND: 3042
Readonly
BLEND_COLOR
BLEND_COLOR : 32773
Readonly
BLEND_DST_ALPHA
BLEND_DST_ALPHA : 32970
Readonly
BLEND_DST_RGB
BLEND_DST_RGB : 32968
Readonly
BLEND_EQUATION
BLEND_EQUATION : 32777
Readonly
BLEND_EQUATION_ALPHA
BLEND_EQUATION_ALPHA : 34877
Readonly
BLEND_EQUATION_RGB
BLEND_EQUATION_RGB : 32777
Readonly
BLEND_SRC_ALPHA
BLEND_SRC_ALPHA : 32971
Readonly
BLEND_SRC_RGB
BLEND_SRC_RGB : 32969
Readonly
BLUE_BITS
BLUE_BITS : 3412
Readonly
BOOL
BOOL: 35670
Readonly
BOOL_VEC2
BOOL_VEC2 : 35671
Readonly
BOOL_VEC3
BOOL_VEC3 : 35672
Readonly
BOOL_VEC4
BOOL_VEC4 : 35673
Readonly
BROWSER_DEFAULT_WEBGL
BROWSER_DEFAULT_WEBGL : 37444
Readonly
BUFFER_SIZE
BUFFER_SIZE : 34660
Readonly
BUFFER_USAGE
BUFFER_USAGE : 34661
Readonly
BYTE
BYTE: 5120
Readonly
canvas
Readonly
CCW
CCW: 2305
Readonly
CLAMP_TO_EDGE
CLAMP_TO_EDGE : 33071
Readonly
COLOR_ATTACHMENT0
COLOR_ATTACHMENT0 : 36064
Readonly
COLOR_BUFFER_BIT
COLOR_BUFFER_BIT : 16384
Readonly
COLOR_CLEAR_VALUE
COLOR_CLEAR_VALUE : 3106
Readonly
COLOR_WRITEMASK
COLOR_WRITEMASK : 3107
Readonly
COMPILE_STATUS
COMPILE_STATUS : 35713
Readonly
COMPRESSED_TEXTURE_FORMATS
COMPRESSED_TEXTURE_FORMATS : 34467
Readonly
CONSTANT_ALPHA
CONSTANT_ALPHA : 32771
Readonly
CONSTANT_COLOR
CONSTANT_COLOR : 32769
Readonly
CONTEXT_LOST_WEBGL
CONTEXT_LOST_WEBGL : 37442
Readonly
CULL_FACE
CULL_FACE : 2884
Readonly
CULL_FACE_MODE
CULL_FACE_MODE : 2885
Readonly
CURRENT_PROGRAM
CURRENT_PROGRAM : 35725
Readonly
CURRENT_VERTEX_ATTRIB
CURRENT_VERTEX_ATTRIB : 34342
Readonly
CW
CW: 2304
Readonly
DECR
DECR: 7683
Readonly
DECR_WRAP
DECR_WRAP : 34056
Readonly
DELETE_STATUS
DELETE_STATUS : 35712
Readonly
DEPTH_ATTACHMENT
DEPTH_ATTACHMENT : 36096
Readonly
DEPTH_BITS
DEPTH_BITS : 3414
Readonly
DEPTH_BUFFER_BIT
DEPTH_BUFFER_BIT : 256
Readonly
DEPTH_CLEAR_VALUE
DEPTH_CLEAR_VALUE : 2931
Readonly
DEPTH_COMPONENT
DEPTH_COMPONENT : 6402
Readonly
DEPTH_COMPONENT16
DEPTH_COMPONENT16 : 33189
Readonly
DEPTH_FUNC
DEPTH_FUNC : 2932
Readonly
DEPTH_RANGE
DEPTH_RANGE : 2928
Readonly
DEPTH_STENCIL
DEPTH_STENCIL : 34041
Readonly
DEPTH_STENCIL_ATTACHMENT
DEPTH_STENCIL_ATTACHMENT : 33306
Readonly
DEPTH_TEST
DEPTH_TEST : 2929
Readonly
DEPTH_WRITEMASK
DEPTH_WRITEMASK : 2930
Readonly
DITHER
DITHER: 3024
Readonly
DONT_CARE
DONT_CARE : 4352
drawingBufferColorSpace
Readonly
drawingBufferHeight
drawingBufferHeight : number
Readonly
drawingBufferWidth
drawingBufferWidth : number
Readonly
DST_ALPHA
DST_ALPHA : 772
Readonly
DST_COLOR
DST_COLOR : 774
Readonly
DYNAMIC_DRAW
DYNAMIC_DRAW : 35048
Readonly
ELEMENT_ARRAY_BUFFER
ELEMENT_ARRAY_BUFFER : 34963
Readonly
ELEMENT_ARRAY_BUFFER_BINDING
ELEMENT_ARRAY_BUFFER_BINDING : 34965
Readonly
EQUAL
EQUAL: 514
Readonly
FASTEST
FASTEST: 4353
Readonly
FLOAT
FLOAT: 5126
Readonly
FLOAT_MAT2
FLOAT_MAT2 : 35674
Readonly
FLOAT_MAT3
FLOAT_MAT3 : 35675
Readonly
FLOAT_MAT4
FLOAT_MAT4 : 35676
Readonly
FLOAT_VEC2
FLOAT_VEC2 : 35664
Readonly
FLOAT_VEC3
FLOAT_VEC3 : 35665
Readonly
FLOAT_VEC4
FLOAT_VEC4 : 35666
Readonly
FRAGMENT_SHADER
FRAGMENT_SHADER : 35632
Readonly
FRAMEBUFFER
FRAMEBUFFER: 36160
Readonly
FRAMEBUFFER_ATTACHMENT_OBJECT_NAME
FRAMEBUFFER_ATTACHMENT_OBJECT_NAME : 36049
Readonly
FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE
FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE : 36048
Readonly
FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE
FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE : 36051
Readonly
FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL
FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL : 36050
Readonly
FRAMEBUFFER_BINDING
FRAMEBUFFER_BINDING : 36006
Readonly
FRAMEBUFFER_COMPLETE
FRAMEBUFFER_COMPLETE : 36053
Readonly
FRAMEBUFFER_INCOMPLETE_ATTACHMENT
FRAMEBUFFER_INCOMPLETE_ATTACHMENT : 36054
Readonly
FRAMEBUFFER_INCOMPLETE_DIMENSIONS
FRAMEBUFFER_INCOMPLETE_DIMENSIONS : 36057
Readonly
FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT
FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT : 36055
Readonly
FRAMEBUFFER_UNSUPPORTED
FRAMEBUFFER_UNSUPPORTED : 36061
Readonly
FRONT
FRONT: 1028
Readonly
FRONT_AND_BACK
FRONT_AND_BACK : 1032
Readonly
FRONT_FACE
FRONT_FACE : 2886
Readonly
FUNC_ADD
FUNC_ADD : 32774
Readonly
FUNC_REVERSE_SUBTRACT
FUNC_REVERSE_SUBTRACT : 32779
Readonly
FUNC_SUBTRACT
FUNC_SUBTRACT : 32778
Readonly
GENERATE_MIPMAP_HINT
GENERATE_MIPMAP_HINT : 33170
Readonly
GEQUAL
GEQUAL: 518
Readonly
GREATER
GREATER: 516
Readonly
GREEN_BITS
GREEN_BITS : 3411
Readonly
HIGH_FLOAT
HIGH_FLOAT : 36338
Readonly
HIGH_INT
HIGH_INT : 36341
Readonly
IMPLEMENTATION_COLOR_READ_FORMAT
IMPLEMENTATION_COLOR_READ_FORMAT : 35739
Readonly
IMPLEMENTATION_COLOR_READ_TYPE
IMPLEMENTATION_COLOR_READ_TYPE : 35738
Readonly
INCR
INCR: 7682
Readonly
INCR_WRAP
INCR_WRAP : 34055
Readonly
INT
INT: 5124
Readonly
INT_VEC2
INT_VEC2 : 35667
Readonly
INT_VEC3
INT_VEC3 : 35668
Readonly
INT_VEC4
INT_VEC4 : 35669
Readonly
INVALID_ENUM
INVALID_ENUM : 1280
Readonly
INVALID_FRAMEBUFFER_OPERATION
INVALID_FRAMEBUFFER_OPERATION : 1286
Readonly
INVALID_OPERATION
INVALID_OPERATION : 1282
Readonly
INVALID_VALUE
INVALID_VALUE : 1281
Readonly
INVERT
INVERT: 5386
Readonly
KEEP
KEEP: 7680
Readonly
LEQUAL
LEQUAL: 515
Readonly
LESS
LESS: 513
Readonly
LINE_LOOP
LINE_LOOP : 2
Readonly
LINE_STRIP
LINE_STRIP : 3
Readonly
LINE_WIDTH
LINE_WIDTH : 2849
Readonly
LINEAR
LINEAR: 9729
Readonly
LINEAR_MIPMAP_LINEAR
LINEAR_MIPMAP_LINEAR : 9987
Readonly
LINEAR_MIPMAP_NEAREST
LINEAR_MIPMAP_NEAREST : 9985
Readonly
LINES
LINES: 1
Readonly
LINK_STATUS
LINK_STATUS : 35714
Readonly
LOW_FLOAT
LOW_FLOAT : 36336
Readonly
LOW_INT
LOW_INT : 36339
Readonly
LUMINANCE
LUMINANCE: 6409
Readonly
LUMINANCE_ALPHA
LUMINANCE_ALPHA : 6410
Readonly
MAX_COMBINED_TEXTURE_IMAGE_UNITS
MAX_COMBINED_TEXTURE_IMAGE_UNITS : 35661
Readonly
MAX_CUBE_MAP_TEXTURE_SIZE
MAX_CUBE_MAP_TEXTURE_SIZE : 34076
Readonly
MAX_FRAGMENT_UNIFORM_VECTORS
MAX_FRAGMENT_UNIFORM_VECTORS : 36349
Readonly
MAX_RENDERBUFFER_SIZE
MAX_RENDERBUFFER_SIZE : 34024
Readonly
MAX_TEXTURE_IMAGE_UNITS
MAX_TEXTURE_IMAGE_UNITS : 34930
Readonly
MAX_TEXTURE_SIZE
MAX_TEXTURE_SIZE : 3379
Readonly
MAX_VARYING_VECTORS
MAX_VARYING_VECTORS : 36348
Readonly
MAX_VERTEX_ATTRIBS
MAX_VERTEX_ATTRIBS : 34921
Readonly
MAX_VERTEX_TEXTURE_IMAGE_UNITS
MAX_VERTEX_TEXTURE_IMAGE_UNITS : 35660
Readonly
MAX_VERTEX_UNIFORM_VECTORS
MAX_VERTEX_UNIFORM_VECTORS : 36347
Readonly
MAX_VIEWPORT_DIMS
MAX_VIEWPORT_DIMS : 3386
Readonly
MEDIUM_FLOAT
MEDIUM_FLOAT : 36337
Readonly
MEDIUM_INT
MEDIUM_INT : 36340
Readonly
MIRRORED_REPEAT
MIRRORED_REPEAT : 33648
Readonly
NEAREST
NEAREST: 9728
Readonly
NEAREST_MIPMAP_LINEAR
NEAREST_MIPMAP_LINEAR : 9986
Readonly
NEAREST_MIPMAP_NEAREST
NEAREST_MIPMAP_NEAREST : 9984
Readonly
NEVER
NEVER: 512
Readonly
NICEST
NICEST: 4354
Readonly
NO_ERROR
NO_ERROR : 0
Readonly
NONE
NONE: 0
Readonly
NOTEQUAL
NOTEQUAL: 517
Readonly
ONE
ONE: 1
Readonly
ONE_MINUS_CONSTANT_ALPHA
ONE_MINUS_CONSTANT_ALPHA : 32772
Readonly
ONE_MINUS_CONSTANT_COLOR
ONE_MINUS_CONSTANT_COLOR : 32770
Readonly
ONE_MINUS_DST_ALPHA
ONE_MINUS_DST_ALPHA : 773
Readonly
ONE_MINUS_DST_COLOR
ONE_MINUS_DST_COLOR : 775
Readonly
ONE_MINUS_SRC_ALPHA
ONE_MINUS_SRC_ALPHA : 771
Readonly
ONE_MINUS_SRC_COLOR
ONE_MINUS_SRC_COLOR : 769
Readonly
OUT_OF_MEMORY
OUT_OF_MEMORY : 1285
Readonly
PACK_ALIGNMENT
PACK_ALIGNMENT : 3333
Readonly
POINTS
POINTS: 0
Readonly
POLYGON_OFFSET_FACTOR
POLYGON_OFFSET_FACTOR : 32824
Readonly
POLYGON_OFFSET_FILL
POLYGON_OFFSET_FILL : 32823
Readonly
POLYGON_OFFSET_UNITS
POLYGON_OFFSET_UNITS : 10752
Readonly
RED_BITS
RED_BITS : 3410
Readonly
RENDERBUFFER
RENDERBUFFER: 36161
Readonly
RENDERBUFFER_ALPHA_SIZE
RENDERBUFFER_ALPHA_SIZE : 36179
Readonly
RENDERBUFFER_BINDING
RENDERBUFFER_BINDING : 36007
Readonly
RENDERBUFFER_BLUE_SIZE
RENDERBUFFER_BLUE_SIZE : 36178
Readonly
RENDERBUFFER_DEPTH_SIZE
RENDERBUFFER_DEPTH_SIZE : 36180
Readonly
RENDERBUFFER_GREEN_SIZE
RENDERBUFFER_GREEN_SIZE : 36177
Readonly
RENDERBUFFER_HEIGHT
RENDERBUFFER_HEIGHT : 36163
Readonly
RENDERBUFFER_INTERNAL_FORMAT
RENDERBUFFER_INTERNAL_FORMAT : 36164
Readonly
RENDERBUFFER_RED_SIZE
RENDERBUFFER_RED_SIZE : 36176
Readonly
RENDERBUFFER_STENCIL_SIZE
RENDERBUFFER_STENCIL_SIZE : 36181
Readonly
RENDERBUFFER_WIDTH
RENDERBUFFER_WIDTH : 36162
Readonly
RENDERER
RENDERER: 7937
Readonly
REPEAT
REPEAT: 10497
Readonly
REPLACE
REPLACE: 7681
Readonly
RGB
RGB: 6407
Readonly
RGB5_A1
RGB5_A1 : 32855
Readonly
RGB565
RGB565: 36194
Readonly
RGBA
RGBA: 6408
Readonly
RGBA4
RGBA4: 32854
Readonly
RGBA8
RGBA8: 32856
Readonly
SAMPLE_ALPHA_TO_COVERAGE
SAMPLE_ALPHA_TO_COVERAGE : 32926
Readonly
SAMPLE_BUFFERS
SAMPLE_BUFFERS : 32936
Readonly
SAMPLE_COVERAGE
SAMPLE_COVERAGE : 32928
Readonly
SAMPLE_COVERAGE_INVERT
SAMPLE_COVERAGE_INVERT : 32939
Readonly
SAMPLE_COVERAGE_VALUE
SAMPLE_COVERAGE_VALUE : 32938
Readonly
SAMPLER_2D
SAMPLER_2D : 35678
Readonly
SAMPLER_CUBE
SAMPLER_CUBE : 35680
Readonly
SAMPLES
SAMPLES: 32937
Readonly
SCISSOR_BOX
SCISSOR_BOX : 3088
Readonly
SCISSOR_TEST
SCISSOR_TEST : 3089
Readonly
SHADER_TYPE
SHADER_TYPE : 35663
Readonly
SHADING_LANGUAGE_VERSION
SHADING_LANGUAGE_VERSION : 35724
Readonly
SHORT
SHORT: 5122
Readonly
SRC_ALPHA
SRC_ALPHA : 770
Readonly
SRC_ALPHA_SATURATE
SRC_ALPHA_SATURATE : 776
Readonly
SRC_COLOR
SRC_COLOR : 768
Readonly
STATIC_DRAW
STATIC_DRAW : 35044
Readonly
STENCIL_ATTACHMENT
STENCIL_ATTACHMENT : 36128
Readonly
STENCIL_BACK_FAIL
STENCIL_BACK_FAIL : 34817
Readonly
STENCIL_BACK_FUNC
STENCIL_BACK_FUNC : 34816
Readonly
STENCIL_BACK_PASS_DEPTH_FAIL
STENCIL_BACK_PASS_DEPTH_FAIL : 34818
Readonly
STENCIL_BACK_PASS_DEPTH_PASS
STENCIL_BACK_PASS_DEPTH_PASS : 34819
Readonly
STENCIL_BACK_REF
STENCIL_BACK_REF : 36003
Readonly
STENCIL_BACK_VALUE_MASK
STENCIL_BACK_VALUE_MASK : 36004
Readonly
STENCIL_BACK_WRITEMASK
STENCIL_BACK_WRITEMASK : 36005
Readonly
STENCIL_BITS
STENCIL_BITS : 3415
Readonly
STENCIL_BUFFER_BIT
STENCIL_BUFFER_BIT : 1024
Readonly
STENCIL_CLEAR_VALUE
STENCIL_CLEAR_VALUE : 2961
Readonly
STENCIL_FAIL
STENCIL_FAIL : 2964
Readonly
STENCIL_FUNC
STENCIL_FUNC : 2962
Readonly
STENCIL_INDEX8
STENCIL_INDEX8 : 36168
Readonly
STENCIL_PASS_DEPTH_FAIL
STENCIL_PASS_DEPTH_FAIL : 2965
Readonly
STENCIL_PASS_DEPTH_PASS
STENCIL_PASS_DEPTH_PASS : 2966
Readonly
STENCIL_REF
STENCIL_REF : 2967
Readonly
STENCIL_TEST
STENCIL_TEST : 2960
Readonly
STENCIL_VALUE_MASK
STENCIL_VALUE_MASK : 2963
Readonly
STENCIL_WRITEMASK
STENCIL_WRITEMASK : 2968
Readonly
STREAM_DRAW
STREAM_DRAW : 35040
Readonly
SUBPIXEL_BITS
SUBPIXEL_BITS : 3408
Readonly
TEXTURE
TEXTURE: 5890
Readonly
TEXTURE_2D
TEXTURE_2D : 3553
Readonly
TEXTURE_BINDING_2D
TEXTURE_BINDING_2D : 32873
Readonly
TEXTURE_BINDING_CUBE_MAP
TEXTURE_BINDING_CUBE_MAP : 34068
Readonly
TEXTURE_CUBE_MAP
TEXTURE_CUBE_MAP : 34067
Readonly
TEXTURE_CUBE_MAP_NEGATIVE_X
TEXTURE_CUBE_MAP_NEGATIVE_X : 34070
Readonly
TEXTURE_CUBE_MAP_NEGATIVE_Y
TEXTURE_CUBE_MAP_NEGATIVE_Y : 34072
Readonly
TEXTURE_CUBE_MAP_NEGATIVE_Z
TEXTURE_CUBE_MAP_NEGATIVE_Z : 34074
Readonly
TEXTURE_CUBE_MAP_POSITIVE_X
TEXTURE_CUBE_MAP_POSITIVE_X : 34069
Readonly
TEXTURE_CUBE_MAP_POSITIVE_Y
TEXTURE_CUBE_MAP_POSITIVE_Y : 34071
Readonly
TEXTURE_CUBE_MAP_POSITIVE_Z
TEXTURE_CUBE_MAP_POSITIVE_Z : 34073
Readonly
TEXTURE_MAG_FILTER
TEXTURE_MAG_FILTER : 10240
Readonly
TEXTURE_MIN_FILTER
TEXTURE_MIN_FILTER : 10241
Readonly
TEXTURE_WRAP_S
TEXTURE_WRAP_S : 10242
Readonly
TEXTURE_WRAP_T
TEXTURE_WRAP_T : 10243
Readonly
TEXTURE0
TEXTURE0: 33984
Readonly
TEXTURE1
TEXTURE1: 33985
Readonly
TEXTURE10
TEXTURE10: 33994
Readonly
TEXTURE11
TEXTURE11: 33995
Readonly
TEXTURE12
TEXTURE12: 33996
Readonly
TEXTURE13
TEXTURE13: 33997
Readonly
TEXTURE14
TEXTURE14: 33998
Readonly
TEXTURE15
TEXTURE15: 33999
Readonly
TEXTURE16
TEXTURE16: 34000
Readonly
TEXTURE17
TEXTURE17: 34001
Readonly
TEXTURE18
TEXTURE18: 34002
Readonly
TEXTURE19
TEXTURE19: 34003
Readonly
TEXTURE2
TEXTURE2: 33986
Readonly
TEXTURE20
TEXTURE20: 34004
Readonly
TEXTURE21
TEXTURE21: 34005
Readonly
TEXTURE22
TEXTURE22: 34006
Readonly
TEXTURE23
TEXTURE23: 34007
Readonly
TEXTURE24
TEXTURE24: 34008
Readonly
TEXTURE25
TEXTURE25: 34009
Readonly
TEXTURE26
TEXTURE26: 34010
Readonly
TEXTURE27
TEXTURE27: 34011
Readonly
TEXTURE28
TEXTURE28: 34012
Readonly
TEXTURE29
TEXTURE29: 34013
Readonly
TEXTURE3
TEXTURE3: 33987
Readonly
TEXTURE30
TEXTURE30: 34014
Readonly
TEXTURE31
TEXTURE31: 34015
Readonly
TEXTURE4
TEXTURE4: 33988
Readonly
TEXTURE5
TEXTURE5: 33989
Readonly
TEXTURE6
TEXTURE6: 33990
Readonly
TEXTURE7
TEXTURE7: 33991
Readonly
TEXTURE8
TEXTURE8: 33992
Readonly
TEXTURE9
TEXTURE9: 33993
Readonly
TRIANGLE_FAN
TRIANGLE_FAN : 6
Readonly
TRIANGLE_STRIP
TRIANGLE_STRIP : 5
Readonly
TRIANGLES
TRIANGLES: 4
Readonly
UNPACK_ALIGNMENT
UNPACK_ALIGNMENT : 3317
Readonly
UNPACK_COLORSPACE_CONVERSION_WEBGL
UNPACK_COLORSPACE_CONVERSION_WEBGL : 37443
Readonly
UNPACK_FLIP_Y_WEBGL
UNPACK_FLIP_Y_WEBGL : 37440
Readonly
UNPACK_PREMULTIPLY_ALPHA_WEBGL
UNPACK_PREMULTIPLY_ALPHA_WEBGL : 37441
Readonly
UNSIGNED_BYTE
UNSIGNED_BYTE : 5121
Readonly
UNSIGNED_INT
UNSIGNED_INT : 5125
Readonly
UNSIGNED_SHORT
UNSIGNED_SHORT : 5123
Readonly
UNSIGNED_SHORT_4_4_4_4
UNSIGNED_SHORT_4_4_4_4 : 32819
Readonly
UNSIGNED_SHORT_5_5_5_1
UNSIGNED_SHORT_5_5_5_1 : 32820
Readonly
UNSIGNED_SHORT_5_6_5
UNSIGNED_SHORT_5_6_5 : 33635
Readonly
VALIDATE_STATUS
VALIDATE_STATUS : 35715
Readonly
VENDOR
VENDOR: 7936
Readonly
VERSION
VERSION: 7938
Readonly
VERTEX_ATTRIB_ARRAY_BUFFER_BINDING
VERTEX_ATTRIB_ARRAY_BUFFER_BINDING : 34975
Readonly
VERTEX_ATTRIB_ARRAY_ENABLED
VERTEX_ATTRIB_ARRAY_ENABLED : 34338
Readonly
VERTEX_ATTRIB_ARRAY_NORMALIZED
VERTEX_ATTRIB_ARRAY_NORMALIZED : 34922
Readonly
VERTEX_ATTRIB_ARRAY_POINTER
VERTEX_ATTRIB_ARRAY_POINTER : 34373
Readonly
VERTEX_ATTRIB_ARRAY_SIZE
VERTEX_ATTRIB_ARRAY_SIZE : 34339
Readonly
VERTEX_ATTRIB_ARRAY_STRIDE
VERTEX_ATTRIB_ARRAY_STRIDE : 34340
Readonly
VERTEX_ATTRIB_ARRAY_TYPE
VERTEX_ATTRIB_ARRAY_TYPE : 34341
Readonly
VERTEX_SHADER
VERTEX_SHADER : 35633
Readonly
VIEWPORT
VIEWPORT: 2978
Readonly
ZERO
ZERO: 0
Methods
activeTexture
attachShader
- attach
Shader (program, shader): void Parameters
- program: WebGLProgram
- shader: WebGLShader
Returns void
bindAttribLocation
- bind
Attrib (program, index, name): voidLocation Parameters
- program: WebGLProgram
- index: number
- name: string
Returns void
bindBuffer
- bind
Buffer (target, buffer): void Parameters
- target: number
- buffer: WebGLBuffer
Returns void
bindFramebuffer
- bind
Framebuffer (target, framebuffer): void Parameters
- target: number
- framebuffer: WebGLFramebuffer
Returns void
bindRenderbuffer
- bind
Renderbuffer (target, renderbuffer): void Parameters
- target: number
- renderbuffer: WebGLRenderbuffer
Returns void
bindTexture
- bind
Texture (target, texture): void Parameters
- target: number
- texture: WebGLTexture
Returns void
blendColor
blendEquation
blendEquationSeparate
blendFunc
blendFuncSeparate
bufferData
- buffer
Data (target, size, usage): void Parameters
- target: number
- size: number
- usage: number
Returns void
- buffer
Data (target, data, usage): void Parameters
- target: number
- data: AllowSharedBufferSource
- usage: number
Returns void
bufferSubData
- buffer
Sub (target, offset, data): voidData Parameters
- target: number
- offset: number
- data: AllowSharedBufferSource
Returns void
checkFramebufferStatus
clear
clearColor
clearDepth
clearStencil
colorMask
compileShader
- compile
Shader (shader): void Parameters
- shader: WebGLShader
Returns void
compressedTexImage2D
- compressed
Tex (target, level, internalformat, width, height, border, data): voidImage2D Parameters
- target: number
- level: number
- internalformat: number
- width: number
- height: number
- border: number
- data: ArrayBufferView
Returns void
compressedTexSubImage2D
- compressed
Tex (target, level, xoffset, yoffset, width, height, format, data): voidSub Image2D Parameters
- target: number
- level: number
- xoffset: number
- yoffset: number
- width: number
- height: number
- format: number
- data: ArrayBufferView
Returns void
copyTexImage2D
copyTexSubImage2D
createBuffer
- create
Buffer (): WebGLBuffer Returns WebGLBuffer
createFramebuffer
- create
Framebuffer (): WebGLFramebuffer Returns WebGLFramebuffer
createProgram
- create
Program (): WebGLProgram Returns WebGLProgram
createRenderbuffer
- create
Renderbuffer (): WebGLRenderbuffer Returns WebGLRenderbuffer
createShader
- create
Shader (type): WebGLShader Parameters
- type: number
Returns WebGLShader
createTexture
- create
Texture (): WebGLTexture Returns WebGLTexture
cullFace
deleteBuffer
- delete
Buffer (buffer): void Parameters
- buffer: WebGLBuffer
Returns void
deleteFramebuffer
- delete
Framebuffer (framebuffer): void Parameters
- framebuffer: WebGLFramebuffer
Returns void
deleteProgram
- delete
Program (program): void Parameters
- program: WebGLProgram
Returns void
deleteRenderbuffer
- delete
Renderbuffer (renderbuffer): void Parameters
- renderbuffer: WebGLRenderbuffer
Returns void
deleteShader
- delete
Shader (shader): void Parameters
- shader: WebGLShader
Returns void
deleteTexture
- delete
Texture (texture): void Parameters
- texture: WebGLTexture
Returns void
depthFunc
depthMask
depthRange
detachShader
- detach
Shader (program, shader): void Parameters
- program: WebGLProgram
- shader: WebGLShader
Returns void
disable
disableVertexAttribArray
drawArrays
drawElements
enable
enableVertexAttribArray
finish
flush
framebufferRenderbuffer
- framebuffer
Renderbuffer (target, attachment, renderbuffertarget, renderbuffer): void Parameters
- target: number
- attachment: number
- renderbuffertarget: number
- renderbuffer: WebGLRenderbuffer
Returns void
framebufferTexture2D
- framebuffer
Texture2D (target, attachment, textarget, texture, level): void Parameters
- target: number
- attachment: number
- textarget: number
- texture: WebGLTexture
- level: number
Returns void
frontFace
generateMipmap
getActiveAttrib
- get
Active (program, index): WebGLActiveInfoAttrib Parameters
- program: WebGLProgram
- index: number
Returns WebGLActiveInfo
getActiveUniform
- get
Active (program, index): WebGLActiveInfoUniform Parameters
- program: WebGLProgram
- index: number
Returns WebGLActiveInfo
getAttachedShaders
- get
Attached (program): WebGLShader[]Shaders Parameters
- program: WebGLProgram
Returns WebGLShader[]
getAttribLocation
- get
Attrib (program, name): numberLocation Parameters
- program: WebGLProgram
- name: string
Returns number
getBufferParameter
getContextAttributes
- get
Context (): WebGLContextAttributesAttributes Returns WebGLContextAttributes
getError
getExtension
- get
Extension (extensionName): ANGLE_instanced_arrays Parameters
- extensionName: "ANGLE_instanced_arrays"
Returns ANGLE_instanced_arrays
- get
Extension (extensionName): EXT_blend_minmax Parameters
- extensionName: "EXT_blend_minmax"
Returns EXT_blend_minmax
- get
Extension (extensionName): EXT_color_buffer_float Parameters
- extensionName: "EXT_color_buffer_float"
Returns EXT_color_buffer_float
- get
Extension (extensionName): EXT_color_buffer_half_float Parameters
- extensionName: "EXT_color_buffer_half_float"
Returns EXT_color_buffer_half_float
- get
Extension (extensionName): EXT_float_blend Parameters
- extensionName: "EXT_float_blend"
Returns EXT_float_blend
- get
Extension (extensionName): EXT_frag_depth Parameters
- extensionName: "EXT_frag_depth"
Returns EXT_frag_depth
- get
Extension (extensionName): EXT_sRGB Parameters
- extensionName: "EXT_sRGB"
Returns EXT_sRGB
- get
Extension (extensionName): EXT_shader_texture_lod Parameters
- extensionName: "EXT_shader_texture_lod"
Returns EXT_shader_texture_lod
- get
Extension (extensionName): EXT_texture_compression_bptc Parameters
- extensionName: "EXT_texture_compression_bptc"
Returns EXT_texture_compression_bptc
- get
Extension (extensionName): EXT_texture_compression_rgtc Parameters
- extensionName: "EXT_texture_compression_rgtc"
Returns EXT_texture_compression_rgtc
- get
Extension (extensionName): EXT_texture_filter_anisotropic Parameters
- extensionName: "EXT_texture_filter_anisotropic"
Returns EXT_texture_filter_anisotropic
- get
Extension (extensionName): KHR_parallel_shader_compile Parameters
- extensionName: "KHR_parallel_shader_compile"
Returns KHR_parallel_shader_compile
- get
Extension (extensionName): OES_element_index_uint Parameters
- extensionName: "OES_element_index_uint"
Returns OES_element_index_uint
- get
Extension (extensionName): OES_fbo_render_mipmap Parameters
- extensionName: "OES_fbo_render_mipmap"
Returns OES_fbo_render_mipmap
- get
Extension (extensionName): OES_standard_derivatives Parameters
- extensionName: "OES_standard_derivatives"
Returns OES_standard_derivatives
- get
Extension (extensionName): OES_texture_float Parameters
- extensionName: "OES_texture_float"
Returns OES_texture_float
- get
Extension (extensionName): OES_texture_float_linear Parameters
- extensionName: "OES_texture_float_linear"
Returns OES_texture_float_linear
- get
Extension (extensionName): OES_texture_half_float Parameters
- extensionName: "OES_texture_half_float"
Returns OES_texture_half_float
- get
Extension (extensionName): OES_texture_half_float_linear Parameters
- extensionName: "OES_texture_half_float_linear"
Returns OES_texture_half_float_linear
- get
Extension (extensionName): OES_vertex_array_object Parameters
- extensionName: "OES_vertex_array_object"
Returns OES_vertex_array_object
- get
Extension (extensionName): OVR_multiview2 Parameters
- extensionName: "OVR_multiview2"
Returns OVR_multiview2
- get
Extension (extensionName): WEBGL_color_buffer_float Parameters
- extensionName: "WEBGL_color_buffer_float"
Returns WEBGL_color_buffer_float
- get
Extension (extensionName): WEBGL_compressed_texture_astc Parameters
- extensionName: "WEBGL_compressed_texture_astc"
Returns WEBGL_compressed_texture_astc
- get
Extension (extensionName): WEBGL_compressed_texture_etc Parameters
- extensionName: "WEBGL_compressed_texture_etc"
Returns WEBGL_compressed_texture_etc
- get
Extension (extensionName): WEBGL_compressed_texture_etc1 Parameters
- extensionName: "WEBGL_compressed_texture_etc1"
Returns WEBGL_compressed_texture_etc1
- get
Extension (extensionName): WEBGL_compressed_texture_pvrtc Parameters
- extensionName: "WEBGL_compressed_texture_pvrtc"
Returns WEBGL_compressed_texture_pvrtc
- get
Extension (extensionName): WEBGL_compressed_texture_s3tc Parameters
- extensionName: "WEBGL_compressed_texture_s3tc"
Returns WEBGL_compressed_texture_s3tc
- get
Extension (extensionName): WEBGL_compressed_texture_s3tc_srgb Parameters
- extensionName: "WEBGL_compressed_texture_s3tc_srgb"
Returns WEBGL_compressed_texture_s3tc_srgb
- get
Extension (extensionName): WEBGL_debug_renderer_info Parameters
- extensionName: "WEBGL_debug_renderer_info"
Returns WEBGL_debug_renderer_info
- get
Extension (extensionName): WEBGL_debug_shaders Parameters
- extensionName: "WEBGL_debug_shaders"
Returns WEBGL_debug_shaders
- get
Extension (extensionName): WEBGL_depth_texture Parameters
- extensionName: "WEBGL_depth_texture"
Returns WEBGL_depth_texture
- get
Extension (extensionName): WEBGL_draw_buffers Parameters
- extensionName: "WEBGL_draw_buffers"
Returns WEBGL_draw_buffers
- get
Extension (extensionName): WEBGL_lose_context Parameters
- extensionName: "WEBGL_lose_context"
Returns WEBGL_lose_context
- get
Extension (extensionName): WEBGL_multi_draw Parameters
- extensionName: "WEBGL_multi_draw"
Returns WEBGL_multi_draw
- get
Extension (name): any Parameters
- name: string
Returns any
- get
Extension (extensionName): OCULUS_multiview Parameters
- extensionName: "OCULUS_multiview"
Returns OCULUS_multiview
getFramebufferAttachmentParameter
getParameter
getProgramInfoLog
- get
Program (program): stringInfo Log Parameters
- program: WebGLProgram
Returns string
getProgramParameter
- get
Program (program, pname): anyParameter Parameters
- program: WebGLProgram
- pname: number
Returns any
getRenderbufferParameter
getShaderInfoLog
- get
Shader (shader): stringInfo Log Parameters
- shader: WebGLShader
Returns string
getShaderParameter
- get
Shader (shader, pname): anyParameter Parameters
- shader: WebGLShader
- pname: number
Returns any
getShaderPrecisionFormat
- get
Shader (shadertype, precisiontype): WebGLShaderPrecisionFormatPrecision Format Parameters
- shadertype: number
- precisiontype: number
Returns WebGLShaderPrecisionFormat
getShaderSource
- get
Shader (shader): stringSource Parameters
- shader: WebGLShader
Returns string
getSupportedExtensions
getTexParameter
getUniform
- get
Uniform (program, location): any Parameters
- program: WebGLProgram
- location: WebGLUniformLocation
Returns any
getUniformLocation
- get
Uniform (program, name): WebGLUniformLocationLocation Parameters
- program: WebGLProgram
- name: string
Returns WebGLUniformLocation
getVertexAttrib
getVertexAttribOffset
hint
isBuffer
- is
Buffer (buffer): boolean Parameters
- buffer: WebGLBuffer
Returns boolean
isContextLost
isEnabled
isFramebuffer
- is
Framebuffer (framebuffer): boolean Parameters
- framebuffer: WebGLFramebuffer
Returns boolean
isProgram
- is
Program (program): boolean Parameters
- program: WebGLProgram
Returns boolean
isRenderbuffer
- is
Renderbuffer (renderbuffer): boolean Parameters
- renderbuffer: WebGLRenderbuffer
Returns boolean
isShader
- is
Shader (shader): boolean Parameters
- shader: WebGLShader
Returns boolean
isTexture
- is
Texture (texture): boolean Parameters
- texture: WebGLTexture
Returns boolean
lineWidth
linkProgram
- link
Program (program): void Parameters
- program: WebGLProgram
Returns void
makeXRCompatible
pixelStorei
polygonOffset
readPixels
- read
Pixels (x, y, width, height, format, type, pixels): void Parameters
- x: number
- y: number
- width: number
- height: number
- format: number
- type: number
- pixels: ArrayBufferView
Returns void
renderbufferStorage
sampleCoverage
scissor
shaderSource
- shader
Source (shader, source): void Parameters
- shader: WebGLShader
- source: string
Returns void
stencilFunc
stencilFuncSeparate
stencilMask
stencilMaskSeparate
stencilOp
stencilOpSeparate
texImage2D
- tex
Image2D (target, level, internalformat, width, height, border, format, type, pixels): void Parameters
- target: number
- level: number
- internalformat: number
- width: number
- height: number
- border: number
- format: number
- type: number
- pixels: ArrayBufferView
Returns void
- tex
Image2D (target, level, internalformat, format, type, source): void Parameters
- target: number
- level: number
- internalformat: number
- format: number
- type: number
- source: TexImageSource
Returns void
- tex
Image2D (target, level, internalformat, format, type, source): void Parameters
- target: number
- level: number
- internalformat: number
- format: number
- type: number
- source: TexImageSourceWebCodecs
Returns void
texParameterf
texParameteri
texSubImage2D
- tex
Sub (target, level, xoffset, yoffset, width, height, format, type, pixels): voidImage2D Parameters
- target: number
- level: number
- xoffset: number
- yoffset: number
- width: number
- height: number
- format: number
- type: number
- pixels: ArrayBufferView
Returns void
- tex
Sub (target, level, xoffset, yoffset, format, type, source): voidImage2D Parameters
- target: number
- level: number
- xoffset: number
- yoffset: number
- format: number
- type: number
- source: TexImageSource
Returns void
- tex
Sub (target, level, xoffset, yoffset, format, type, source): voidImage2D Parameters
- target: number
- level: number
- xoffset: number
- yoffset: number
- format: number
- type: number
- source: TexImageSourceWebCodecs
Returns void
uniform1f
- uniform1f(location, x): void
Parameters
- location: WebGLUniformLocation
- x: number
Returns void
uniform1fv
- uniform1fv(location, v): void
Parameters
- location: WebGLUniformLocation
- v: Float32List
Returns void
- uniform1fv(location, v): void
Parameters
- location: WebGLUniformLocation
- v: Iterable<number, any, any>
Returns void
uniform1i
- uniform1i(location, x): void
Parameters
- location: WebGLUniformLocation
- x: number
Returns void
uniform1iv
- uniform1iv(location, v): void
Parameters
- location: WebGLUniformLocation
- v: Int32List
Returns void
- uniform1iv(location, v): void
Parameters
- location: WebGLUniformLocation
- v: Iterable<number, any, any>
Returns void
uniform2f
- uniform2f(location, x, y): void
Parameters
- location: WebGLUniformLocation
- x: number
- y: number
Returns void
uniform2fv
- uniform2fv(location, v): void
Parameters
- location: WebGLUniformLocation
- v: Float32List
Returns void
- uniform2fv(location, v): void
Parameters
- location: WebGLUniformLocation
- v: Iterable<number, any, any>
Returns void
uniform2i
- uniform2i(location, x, y): void
Parameters
- location: WebGLUniformLocation
- x: number
- y: number
Returns void
uniform2iv
- uniform2iv(location, v): void
Parameters
- location: WebGLUniformLocation
- v: Int32List
Returns void
- uniform2iv(location, v): void
Parameters
- location: WebGLUniformLocation
- v: Iterable<number, any, any>
Returns void
uniform3f
- uniform3f(location, x, y, z): void
Parameters
- location: WebGLUniformLocation
- x: number
- y: number
- z: number
Returns void
uniform3fv
- uniform3fv(location, v): void
Parameters
- location: WebGLUniformLocation
- v: Float32List
Returns void
- uniform3fv(location, v): void
Parameters
- location: WebGLUniformLocation
- v: Iterable<number, any, any>
Returns void
uniform3i
- uniform3i(location, x, y, z): void
Parameters
- location: WebGLUniformLocation
- x: number
- y: number
- z: number
Returns void
uniform3iv
- uniform3iv(location, v): void
Parameters
- location: WebGLUniformLocation
- v: Int32List
Returns void
- uniform3iv(location, v): void
Parameters
- location: WebGLUniformLocation
- v: Iterable<number, any, any>
Returns void
uniform4f
- uniform4f(location, x, y, z, w): void
Parameters
- location: WebGLUniformLocation
- x: number
- y: number
- z: number
- w: number
Returns void
uniform4fv
- uniform4fv(location, v): void
Parameters
- location: WebGLUniformLocation
- v: Float32List
Returns void
- uniform4fv(location, v): void
Parameters
- location: WebGLUniformLocation
- v: Iterable<number, any, any>
Returns void
uniform4i
- uniform4i(location, x, y, z, w): void
Parameters
- location: WebGLUniformLocation
- x: number
- y: number
- z: number
- w: number
Returns void
uniform4iv
- uniform4iv(location, v): void
Parameters
- location: WebGLUniformLocation
- v: Int32List
Returns void
- uniform4iv(location, v): void
Parameters
- location: WebGLUniformLocation
- v: Iterable<number, any, any>
Returns void
uniformMatrix2fv
- uniform
Matrix2fv (location, transpose, value): void Parameters
- location: WebGLUniformLocation
- transpose: boolean
- value: Float32List
Returns void
- uniform
Matrix2fv (location, transpose, value): void Parameters
- location: WebGLUniformLocation
- transpose: boolean
- value: Iterable<number, any, any>
Returns void
uniformMatrix3fv
- uniform
Matrix3fv (location, transpose, value): void Parameters
- location: WebGLUniformLocation
- transpose: boolean
- value: Float32List
Returns void
- uniform
Matrix3fv (location, transpose, value): void Parameters
- location: WebGLUniformLocation
- transpose: boolean
- value: Iterable<number, any, any>
Returns void
uniformMatrix4fv
- uniform
Matrix4fv (location, transpose, value): void Parameters
- location: WebGLUniformLocation
- transpose: boolean
- value: Float32List
Returns void
- uniform
Matrix4fv (location, transpose, value): void Parameters
- location: WebGLUniformLocation
- transpose: boolean
- value: Iterable<number, any, any>
Returns void
useProgram
- use
Program (program): void Parameters
- program: WebGLProgram
Returns void
validateProgram
- validate
Program (program): void Parameters
- program: WebGLProgram
Returns void
vertexAttrib1f
vertexAttrib1fv
- vertex
Attrib1fv (index, values): void Parameters
- index: number
- values: Float32List
Returns void
- vertex
Attrib1fv (index, values): void Parameters
- index: number
- values: Iterable<number, any, any>
Returns void
vertexAttrib2f
vertexAttrib2fv
- vertex
Attrib2fv (index, values): void Parameters
- index: number
- values: Float32List
Returns void
- vertex
Attrib2fv (index, values): void Parameters
- index: number
- values: Iterable<number, any, any>
Returns void
vertexAttrib3f
vertexAttrib3fv
- vertex
Attrib3fv (index, values): void Parameters
- index: number
- values: Float32List
Returns void
- vertex
Attrib3fv (index, values): void Parameters
- index: number
- values: Iterable<number, any, any>
Returns void
vertexAttrib4f
vertexAttrib4fv
- vertex
Attrib4fv (index, values): void Parameters
- index: number
- values: Float32List
Returns void
- vertex
Attrib4fv (index, values): void Parameters
- index: number
- values: Iterable<number, any, any>
Returns void
Provides an interface to the OpenGL ES 2.0 graphics rendering context for the drawing surface of an HTML
MDN Reference