Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

WebGLRenderingContextBase

interface WebGLRenderingContextBase {
readonly ACTIVE_ATTRIBUTES: GLenum;
readonly ACTIVE_TEXTURE: GLenum;
readonly ACTIVE_UNIFORMS: GLenum;
readonly ALIASED_LINE_WIDTH_RANGE: GLenum;
readonly ALIASED_POINT_SIZE_RANGE: GLenum;
readonly ALPHA: GLenum;
readonly ALPHA_BITS: GLenum;
readonly ALWAYS: GLenum;
readonly ARRAY_BUFFER: GLenum;
readonly ARRAY_BUFFER_BINDING: GLenum;
readonly ATTACHED_SHADERS: GLenum;
readonly BACK: GLenum;
readonly BLEND: GLenum;
readonly BLEND_COLOR: GLenum;
readonly BLEND_DST_ALPHA: GLenum;
readonly BLEND_DST_RGB: GLenum;
readonly BLEND_EQUATION: GLenum;
readonly BLEND_EQUATION_ALPHA: GLenum;
readonly BLEND_EQUATION_RGB: GLenum;
readonly BLEND_SRC_ALPHA: GLenum;
readonly BLEND_SRC_RGB: GLenum;
readonly BLUE_BITS: GLenum;
readonly BOOL: GLenum;
readonly BOOL_VEC2: GLenum;
readonly BOOL_VEC3: GLenum;
readonly BOOL_VEC4: GLenum;
readonly BROWSER_DEFAULT_WEBGL: GLenum;
readonly BUFFER_SIZE: GLenum;
readonly BUFFER_USAGE: GLenum;
readonly BYTE: GLenum;
readonly canvas: HTMLCanvasElement;
readonly CCW: GLenum;
readonly CLAMP_TO_EDGE: GLenum;
readonly COLOR_ATTACHMENT0: GLenum;
readonly COLOR_BUFFER_BIT: GLenum;
readonly COLOR_CLEAR_VALUE: GLenum;
readonly COLOR_WRITEMASK: GLenum;
readonly COMPILE_STATUS: GLenum;
readonly COMPRESSED_TEXTURE_FORMATS: GLenum;
readonly CONSTANT_ALPHA: GLenum;
readonly CONSTANT_COLOR: GLenum;
readonly CONTEXT_LOST_WEBGL: GLenum;
readonly CULL_FACE: GLenum;
readonly CULL_FACE_MODE: GLenum;
readonly CURRENT_PROGRAM: GLenum;
readonly CURRENT_VERTEX_ATTRIB: GLenum;
readonly CW: GLenum;
readonly DECR: GLenum;
readonly DECR_WRAP: GLenum;
readonly DELETE_STATUS: GLenum;
readonly DEPTH_ATTACHMENT: GLenum;
readonly DEPTH_BITS: GLenum;
readonly DEPTH_BUFFER_BIT: GLenum;
readonly DEPTH_CLEAR_VALUE: GLenum;
readonly DEPTH_COMPONENT: GLenum;
readonly DEPTH_COMPONENT16: GLenum;
readonly DEPTH_FUNC: GLenum;
readonly DEPTH_RANGE: GLenum;
readonly DEPTH_STENCIL: GLenum;
readonly DEPTH_STENCIL_ATTACHMENT: GLenum;
readonly DEPTH_TEST: GLenum;
readonly DEPTH_WRITEMASK: GLenum;
readonly DITHER: GLenum;
readonly DONT_CARE: GLenum;
readonly drawingBufferHeight: GLsizei;
readonly drawingBufferWidth: GLsizei;
readonly DST_ALPHA: GLenum;
readonly DST_COLOR: GLenum;
readonly DYNAMIC_DRAW: GLenum;
readonly ELEMENT_ARRAY_BUFFER: GLenum;
readonly ELEMENT_ARRAY_BUFFER_BINDING: GLenum;
readonly EQUAL: GLenum;
readonly FASTEST: GLenum;
readonly FLOAT: GLenum;
readonly FLOAT_MAT2: GLenum;
readonly FLOAT_MAT3: GLenum;
readonly FLOAT_MAT4: GLenum;
readonly FLOAT_VEC2: GLenum;
readonly FLOAT_VEC3: GLenum;
readonly FLOAT_VEC4: GLenum;
readonly FRAGMENT_SHADER: GLenum;
readonly FRAMEBUFFER: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: GLenum;
readonly FRAMEBUFFER_BINDING: GLenum;
readonly FRAMEBUFFER_COMPLETE: GLenum;
readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: GLenum;
readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: GLenum;
readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: GLenum;
readonly FRAMEBUFFER_UNSUPPORTED: GLenum;
readonly FRONT: GLenum;
readonly FRONT_AND_BACK: GLenum;
readonly FRONT_FACE: GLenum;
readonly FUNC_ADD: GLenum;
readonly FUNC_REVERSE_SUBTRACT: GLenum;
readonly FUNC_SUBTRACT: GLenum;
readonly GENERATE_MIPMAP_HINT: GLenum;
readonly GEQUAL: GLenum;
readonly GREATER: GLenum;
readonly GREEN_BITS: GLenum;
readonly HIGH_FLOAT: GLenum;
readonly HIGH_INT: GLenum;
readonly IMPLEMENTATION_COLOR_READ_FORMAT: GLenum;
readonly IMPLEMENTATION_COLOR_READ_TYPE: GLenum;
readonly INCR: GLenum;
readonly INCR_WRAP: GLenum;
readonly INT: GLenum;
readonly INT_VEC2: GLenum;
readonly INT_VEC3: GLenum;
readonly INT_VEC4: GLenum;
readonly INVALID_ENUM: GLenum;
readonly INVALID_FRAMEBUFFER_OPERATION: GLenum;
readonly INVALID_OPERATION: GLenum;
readonly INVALID_VALUE: GLenum;
readonly INVERT: GLenum;
readonly KEEP: GLenum;
readonly LEQUAL: GLenum;
readonly LESS: GLenum;
readonly LINE_LOOP: GLenum;
readonly LINE_STRIP: GLenum;
readonly LINE_WIDTH: GLenum;
readonly LINEAR: GLenum;
readonly LINEAR_MIPMAP_LINEAR: GLenum;
readonly LINEAR_MIPMAP_NEAREST: GLenum;
readonly LINES: GLenum;
readonly LINK_STATUS: GLenum;
readonly LOW_FLOAT: GLenum;
readonly LOW_INT: GLenum;
readonly LUMINANCE: GLenum;
readonly LUMINANCE_ALPHA: GLenum;
readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: GLenum;
readonly MAX_CUBE_MAP_TEXTURE_SIZE: GLenum;
readonly MAX_FRAGMENT_UNIFORM_VECTORS: GLenum;
readonly MAX_RENDERBUFFER_SIZE: GLenum;
readonly MAX_TEXTURE_IMAGE_UNITS: GLenum;
readonly MAX_TEXTURE_SIZE: GLenum;
readonly MAX_VARYING_VECTORS: GLenum;
readonly MAX_VERTEX_ATTRIBS: GLenum;
readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: GLenum;
readonly MAX_VERTEX_UNIFORM_VECTORS: GLenum;
readonly MAX_VIEWPORT_DIMS: GLenum;
readonly MEDIUM_FLOAT: GLenum;
readonly MEDIUM_INT: GLenum;
readonly MIRRORED_REPEAT: GLenum;
readonly NEAREST: GLenum;
readonly NEAREST_MIPMAP_LINEAR: GLenum;
readonly NEAREST_MIPMAP_NEAREST: GLenum;
readonly NEVER: GLenum;
readonly NICEST: GLenum;
readonly NO_ERROR: GLenum;
readonly NONE: GLenum;
readonly NOTEQUAL: GLenum;
readonly ONE: GLenum;
readonly ONE_MINUS_CONSTANT_ALPHA: GLenum;
readonly ONE_MINUS_CONSTANT_COLOR: GLenum;
readonly ONE_MINUS_DST_ALPHA: GLenum;
readonly ONE_MINUS_DST_COLOR: GLenum;
readonly ONE_MINUS_SRC_ALPHA: GLenum;
readonly ONE_MINUS_SRC_COLOR: GLenum;
readonly OUT_OF_MEMORY: GLenum;
readonly PACK_ALIGNMENT: GLenum;
readonly POINTS: GLenum;
readonly POLYGON_OFFSET_FACTOR: GLenum;
readonly POLYGON_OFFSET_FILL: GLenum;
readonly POLYGON_OFFSET_UNITS: GLenum;
readonly RED_BITS: GLenum;
readonly RENDERBUFFER: GLenum;
readonly RENDERBUFFER_ALPHA_SIZE: GLenum;
readonly RENDERBUFFER_BINDING: GLenum;
readonly RENDERBUFFER_BLUE_SIZE: GLenum;
readonly RENDERBUFFER_DEPTH_SIZE: GLenum;
readonly RENDERBUFFER_GREEN_SIZE: GLenum;
readonly RENDERBUFFER_HEIGHT: GLenum;
readonly RENDERBUFFER_INTERNAL_FORMAT: GLenum;
readonly RENDERBUFFER_RED_SIZE: GLenum;
readonly RENDERBUFFER_STENCIL_SIZE: GLenum;
readonly RENDERBUFFER_WIDTH: GLenum;
readonly RENDERER: GLenum;
readonly REPEAT: GLenum;
readonly REPLACE: GLenum;
readonly RGB: GLenum;
readonly RGB5_A1: GLenum;
readonly RGB565: GLenum;
readonly RGBA: GLenum;
readonly RGBA4: GLenum;
readonly SAMPLE_ALPHA_TO_COVERAGE: GLenum;
readonly SAMPLE_BUFFERS: GLenum;
readonly SAMPLE_COVERAGE: GLenum;
readonly SAMPLE_COVERAGE_INVERT: GLenum;
readonly SAMPLE_COVERAGE_VALUE: GLenum;
readonly SAMPLER_2D: GLenum;
readonly SAMPLER_CUBE: GLenum;
readonly SAMPLES: GLenum;
readonly SCISSOR_BOX: GLenum;
readonly SCISSOR_TEST: GLenum;
readonly SHADER_TYPE: GLenum;
readonly SHADING_LANGUAGE_VERSION: GLenum;
readonly SHORT: GLenum;
readonly SRC_ALPHA: GLenum;
readonly SRC_ALPHA_SATURATE: GLenum;
readonly SRC_COLOR: GLenum;
readonly STATIC_DRAW: GLenum;
readonly STENCIL_ATTACHMENT: GLenum;
readonly STENCIL_BACK_FAIL: GLenum;
readonly STENCIL_BACK_FUNC: GLenum;
readonly STENCIL_BACK_PASS_DEPTH_FAIL: GLenum;
readonly STENCIL_BACK_PASS_DEPTH_PASS: GLenum;
readonly STENCIL_BACK_REF: GLenum;
readonly STENCIL_BACK_VALUE_MASK: GLenum;
readonly STENCIL_BACK_WRITEMASK: GLenum;
readonly STENCIL_BITS: GLenum;
readonly STENCIL_BUFFER_BIT: GLenum;
readonly STENCIL_CLEAR_VALUE: GLenum;
readonly STENCIL_FAIL: GLenum;
readonly STENCIL_FUNC: GLenum;
readonly STENCIL_INDEX8: GLenum;
readonly STENCIL_PASS_DEPTH_FAIL: GLenum;
readonly STENCIL_PASS_DEPTH_PASS: GLenum;
readonly STENCIL_REF: GLenum;
readonly STENCIL_TEST: GLenum;
readonly STENCIL_VALUE_MASK: GLenum;
readonly STENCIL_WRITEMASK: GLenum;
readonly STREAM_DRAW: GLenum;
readonly SUBPIXEL_BITS: GLenum;
readonly TEXTURE: GLenum;
readonly TEXTURE_2D: GLenum;
readonly TEXTURE_BINDING_2D: GLenum;
readonly TEXTURE_BINDING_CUBE_MAP: GLenum;
readonly TEXTURE_CUBE_MAP: GLenum;
readonly TEXTURE_CUBE_MAP_NEGATIVE_X: GLenum;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: GLenum;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: GLenum;
readonly TEXTURE_CUBE_MAP_POSITIVE_X: GLenum;
readonly TEXTURE_CUBE_MAP_POSITIVE_Y: GLenum;
readonly TEXTURE_CUBE_MAP_POSITIVE_Z: GLenum;
readonly TEXTURE_MAG_FILTER: GLenum;
readonly TEXTURE_MIN_FILTER: GLenum;
readonly TEXTURE_WRAP_S: GLenum;
readonly TEXTURE_WRAP_T: GLenum;
readonly TEXTURE0: GLenum;
readonly TEXTURE1: GLenum;
readonly TEXTURE10: GLenum;
readonly TEXTURE11: GLenum;
readonly TEXTURE12: GLenum;
readonly TEXTURE13: GLenum;
readonly TEXTURE14: GLenum;
readonly TEXTURE15: GLenum;
readonly TEXTURE16: GLenum;
readonly TEXTURE17: GLenum;
readonly TEXTURE18: GLenum;
readonly TEXTURE19: GLenum;
readonly TEXTURE2: GLenum;
readonly TEXTURE20: GLenum;
readonly TEXTURE21: GLenum;
readonly TEXTURE22: GLenum;
readonly TEXTURE23: GLenum;
readonly TEXTURE24: GLenum;
readonly TEXTURE25: GLenum;
readonly TEXTURE26: GLenum;
readonly TEXTURE27: GLenum;
readonly TEXTURE28: GLenum;
readonly TEXTURE29: GLenum;
readonly TEXTURE3: GLenum;
readonly TEXTURE30: GLenum;
readonly TEXTURE31: GLenum;
readonly TEXTURE4: GLenum;
readonly TEXTURE5: GLenum;
readonly TEXTURE6: GLenum;
readonly TEXTURE7: GLenum;
readonly TEXTURE8: GLenum;
readonly TEXTURE9: GLenum;
readonly TRIANGLE_FAN: GLenum;
readonly TRIANGLE_STRIP: GLenum;
readonly TRIANGLES: GLenum;
readonly UNPACK_ALIGNMENT: GLenum;
readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: GLenum;
readonly UNPACK_FLIP_Y_WEBGL: GLenum;
readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: GLenum;
readonly UNSIGNED_BYTE: GLenum;
readonly UNSIGNED_INT: GLenum;
readonly UNSIGNED_SHORT: GLenum;
readonly UNSIGNED_SHORT_4_4_4_4: GLenum;
readonly UNSIGNED_SHORT_5_5_5_1: GLenum;
readonly UNSIGNED_SHORT_5_6_5: GLenum;
readonly VALIDATE_STATUS: GLenum;
readonly VENDOR: GLenum;
readonly VERSION: GLenum;
readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: GLenum;
readonly VERTEX_ATTRIB_ARRAY_ENABLED: GLenum;
readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: GLenum;
readonly VERTEX_ATTRIB_ARRAY_POINTER: GLenum;
readonly VERTEX_ATTRIB_ARRAY_SIZE: GLenum;
readonly VERTEX_ATTRIB_ARRAY_STRIDE: GLenum;
readonly VERTEX_ATTRIB_ARRAY_TYPE: GLenum;
readonly VERTEX_SHADER: GLenum;
readonly VIEWPORT: GLenum;
readonly ZERO: GLenum;
activeTexture(texture: GLenum): void;
attachShader(program: WebGLProgram, shader: WebGLShader): void;
bindAttribLocation(
program: WebGLProgram,
index: GLuint,
name: string,
): void;
bindBuffer(target: GLenum, buffer: WebGLBuffer | null): void;
bindFramebuffer(target: GLenum, framebuffer: WebGLFramebuffer | null): void;
bindRenderbuffer(target: GLenum, renderbuffer: WebGLRenderbuffer | null): void;
bindTexture(target: GLenum, texture: WebGLTexture | null): void;
blendColor(
red: GLclampf,
green: GLclampf,
blue: GLclampf,
alpha: GLclampf,
): void;
blendEquation(mode: GLenum): void;
blendEquationSeparate(modeRGB: GLenum, modeAlpha: GLenum): void;
blendFunc(sfactor: GLenum, dfactor: GLenum): void;
blendFuncSeparate(
srcRGB: GLenum,
dstRGB: GLenum,
srcAlpha: GLenum,
dstAlpha: GLenum,
): void;
checkFramebufferStatus(target: GLenum): GLenum;
clear(mask: GLbitfield): void;
clearColor(
red: GLclampf,
green: GLclampf,
blue: GLclampf,
alpha: GLclampf,
): void;
clearDepth(depth: GLclampf): void;
clearStencil(s: GLint): void;
colorMask(
red: GLboolean,
green: GLboolean,
blue: GLboolean,
alpha: GLboolean,
): void;
compileShader(shader: WebGLShader): void;
copyTexImage2D(
target: GLenum,
level: GLint,
internalformat: GLenum,
x: GLint,
y: GLint,
width: GLsizei,
height: GLsizei,
border: GLint,
): void;
copyTexSubImage2D(
target: GLenum,
level: GLint,
xoffset: GLint,
yoffset: GLint,
x: GLint,
y: GLint,
width: GLsizei,
height: GLsizei,
): void;
createBuffer(): WebGLBuffer | null;
createFramebuffer(): WebGLFramebuffer | null;
createProgram(): WebGLProgram | null;
createRenderbuffer(): WebGLRenderbuffer | null;
createShader(type: GLenum): WebGLShader | null;
createTexture(): WebGLTexture | null;
cullFace(mode: GLenum): void;
deleteBuffer(buffer: WebGLBuffer | null): void;
deleteFramebuffer(framebuffer: WebGLFramebuffer | null): void;
deleteProgram(program: WebGLProgram | null): void;
deleteRenderbuffer(renderbuffer: WebGLRenderbuffer | null): void;
deleteShader(shader: WebGLShader | null): void;
deleteTexture(texture: WebGLTexture | null): void;
depthFunc(func: GLenum): void;
depthMask(flag: GLboolean): void;
depthRange(zNear: GLclampf, zFar: GLclampf): void;
detachShader(program: WebGLProgram, shader: WebGLShader): void;
disable(cap: GLenum): void;
disableVertexAttribArray(index: GLuint): void;
drawArrays(
mode: GLenum,
first: GLint,
count: GLsizei,
): void;
drawElements(
mode: GLenum,
count: GLsizei,
type: GLenum,
offset: GLintptr,
): void;
enable(cap: GLenum): void;
enableVertexAttribArray(index: GLuint): void;
finish(): void;
flush(): void;
framebufferRenderbuffer(
target: GLenum,
attachment: GLenum,
renderbuffertarget: GLenum,
renderbuffer: WebGLRenderbuffer | null,
): void;
framebufferTexture2D(
target: GLenum,
attachment: GLenum,
textarget: GLenum,
texture: WebGLTexture | null,
level: GLint,
): void;
frontFace(mode: GLenum): void;
generateMipmap(target: GLenum): void;
getActiveAttrib(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
getActiveUniform(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
getAttachedShaders(program: WebGLProgram): WebGLShader[] | null;
getAttribLocation(program: WebGLProgram, name: string): GLint;
getBufferParameter(target: GLenum, pname: GLenum): any;
getContextAttributes(): WebGLContextAttributes | null;
getError(): GLenum;
getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null;
getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null;
getExtension(extensionName: "EXT_color_buffer_half_float"): EXT_color_buffer_half_float | null;
getExtension(extensionName: "EXT_float_blend"): EXT_float_blend | null;
getExtension(extensionName: "EXT_texture_filter_anisotropic"): EXT_texture_filter_anisotropic | null;
getExtension(extensionName: "EXT_frag_depth"): EXT_frag_depth | null;
getExtension(extensionName: "EXT_shader_texture_lod"): EXT_shader_texture_lod | null;
getExtension(extensionName: "EXT_sRGB"): EXT_sRGB | null;
getExtension(extensionName: "KHR_parallel_shader_compile"): KHR_parallel_shader_compile | null;
getExtension(extensionName: "OES_vertex_array_object"): OES_vertex_array_object | null;
getExtension(extensionName: "OVR_multiview2"): OVR_multiview2 | null;
getExtension(extensionName: "WEBGL_color_buffer_float"): WEBGL_color_buffer_float | null;
getExtension(extensionName: "WEBGL_compressed_texture_astc"): WEBGL_compressed_texture_astc | null;
getExtension(extensionName: "WEBGL_compressed_texture_etc"): WEBGL_compressed_texture_etc | null;
getExtension(extensionName: "WEBGL_compressed_texture_etc1"): WEBGL_compressed_texture_etc1 | null;
getExtension(extensionName: "WEBGL_compressed_texture_s3tc_srgb"): WEBGL_compressed_texture_s3tc_srgb | null;
getExtension(extensionName: "WEBGL_debug_shaders"): WEBGL_debug_shaders | null;
getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;
getExtension(extensionName: "WEBGL_lose_context"): WEBGL_lose_context | null;
getExtension(extensionName: "WEBGL_depth_texture"): WEBGL_depth_texture | null;
getExtension(extensionName: "WEBGL_debug_renderer_info"): WEBGL_debug_renderer_info | null;
getExtension(extensionName: "WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc | null;
getExtension(extensionName: "OES_texture_half_float_linear"): OES_texture_half_float_linear | null;
getExtension(extensionName: "OES_texture_half_float"): OES_texture_half_float | null;
getExtension(extensionName: "OES_texture_float_linear"): OES_texture_float_linear | null;
getExtension(extensionName: "OES_texture_float"): OES_texture_float | null;
getExtension(extensionName: "OES_standard_derivatives"): OES_standard_derivatives | null;
getExtension(extensionName: "OES_element_index_uint"): OES_element_index_uint | null;
getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;
getExtension(name: string): any;
getFramebufferAttachmentParameter(
target: GLenum,
attachment: GLenum,
pname: GLenum,
): any;
getParameter(pname: GLenum): any;
getProgramInfoLog(program: WebGLProgram): string | null;
getProgramParameter(program: WebGLProgram, pname: GLenum): any;
getRenderbufferParameter(target: GLenum, pname: GLenum): any;
getShaderInfoLog(shader: WebGLShader): string | null;
getShaderParameter(shader: WebGLShader, pname: GLenum): any;
getShaderPrecisionFormat(shadertype: GLenum, precisiontype: GLenum): WebGLShaderPrecisionFormat | null;
getShaderSource(shader: WebGLShader): string | null;
getSupportedExtensions(): string[] | null;
getTexParameter(target: GLenum, pname: GLenum): any;
getUniform(program: WebGLProgram, location: WebGLUniformLocation): any;
getUniformLocation(program: WebGLProgram, name: string): WebGLUniformLocation | null;
getVertexAttrib(index: GLuint, pname: GLenum): any;
getVertexAttribOffset(index: GLuint, pname: GLenum): GLintptr;
hint(target: GLenum, mode: GLenum): void;
isBuffer(buffer: WebGLBuffer | null): GLboolean;
isContextLost(): boolean;
isEnabled(cap: GLenum): GLboolean;
isFramebuffer(framebuffer: WebGLFramebuffer | null): GLboolean;
isProgram(program: WebGLProgram | null): GLboolean;
isRenderbuffer(renderbuffer: WebGLRenderbuffer | null): GLboolean;
isShader(shader: WebGLShader | null): GLboolean;
isTexture(texture: WebGLTexture | null): GLboolean;
lineWidth(width: GLfloat): void;
linkProgram(program: WebGLProgram): void;
pixelStorei(pname: GLenum, param: GLint | GLboolean): void;
polygonOffset(factor: GLfloat, units: GLfloat): void;
renderbufferStorage(
target: GLenum,
internalformat: GLenum,
width: GLsizei,
height: GLsizei,
): void;
sampleCoverage(value: GLclampf, invert: GLboolean): void;
scissor(
x: GLint,
y: GLint,
width: GLsizei,
height: GLsizei,
): void;
shaderSource(shader: WebGLShader, source: string): void;
stencilFunc(
func: GLenum,
ref: GLint,
mask: GLuint,
): void;
stencilFuncSeparate(
face: GLenum,
func: GLenum,
ref: GLint,
mask: GLuint,
): void;
stencilMask(mask: GLuint): void;
stencilMaskSeparate(face: GLenum, mask: GLuint): void;
stencilOp(
fail: GLenum,
zfail: GLenum,
zpass: GLenum,
): void;
stencilOpSeparate(
face: GLenum,
fail: GLenum,
zfail: GLenum,
zpass: GLenum,
): void;
texParameterf(
target: GLenum,
pname: GLenum,
param: GLfloat,
): void;
texParameteri(
target: GLenum,
pname: GLenum,
param: GLint,
): void;
uniform1f(location: WebGLUniformLocation | null, x: GLfloat): void;
uniform1i(location: WebGLUniformLocation | null, x: GLint): void;
uniform2f(
location: WebGLUniformLocation | null,
): void;
uniform2i(
location: WebGLUniformLocation | null,
x: GLint,
y: GLint,
): void;
uniform3f(
location: WebGLUniformLocation | null,
): void;
uniform3i(
location: WebGLUniformLocation | null,
x: GLint,
y: GLint,
z: GLint,
): void;
uniform4f(
location: WebGLUniformLocation | null,
): void;
uniform4i(
location: WebGLUniformLocation | null,
x: GLint,
y: GLint,
z: GLint,
w: GLint,
): void;
useProgram(program: WebGLProgram | null): void;
validateProgram(program: WebGLProgram): void;
vertexAttrib1f(index: GLuint, x: GLfloat): void;
vertexAttrib1fv(index: GLuint, values: Float32List): void;
vertexAttrib1fv(index: GLuint, values: Iterable<GLfloat>): void;
vertexAttrib2f(
index: GLuint,
): void;
vertexAttrib2fv(index: GLuint, values: Float32List): void;
vertexAttrib2fv(index: GLuint, values: Iterable<GLfloat>): void;
vertexAttrib3f(
index: GLuint,
): void;
vertexAttrib3fv(index: GLuint, values: Float32List): void;
vertexAttrib3fv(index: GLuint, values: Iterable<GLfloat>): void;
vertexAttrib4f(
index: GLuint,
): void;
vertexAttrib4fv(index: GLuint, values: Float32List): void;
vertexAttrib4fv(index: GLuint, values: Iterable<GLfloat>): void;
vertexAttribPointer(
index: GLuint,
size: GLint,
type: GLenum,
normalized: GLboolean,
stride: GLsizei,
offset: GLintptr,
): void;
viewport(
x: GLint,
y: GLint,
width: GLsizei,
height: GLsizei,
): void;
}

§Properties

§
readonly ACTIVE_ATTRIBUTES: GLenum
[src]
§
readonly ACTIVE_TEXTURE: GLenum
[src]
§
readonly ACTIVE_UNIFORMS: GLenum
[src]
§
readonly ALIASED_LINE_WIDTH_RANGE: GLenum
[src]
§
readonly ALIASED_POINT_SIZE_RANGE: GLenum
[src]
§
readonly ALPHA: GLenum
[src]
§
readonly ALPHA_BITS: GLenum
[src]
§
readonly ALWAYS: GLenum
[src]
§
readonly ARRAY_BUFFER: GLenum
[src]
§
readonly ARRAY_BUFFER_BINDING: GLenum
[src]
§
readonly ATTACHED_SHADERS: GLenum
[src]
§
readonly BACK: GLenum
[src]
§
readonly BLEND: GLenum
[src]
§
readonly BLEND_COLOR: GLenum
[src]
§
readonly BLEND_DST_ALPHA: GLenum
[src]
§
readonly BLEND_DST_RGB: GLenum
[src]
§
readonly BLEND_EQUATION: GLenum
[src]
§
readonly BLEND_EQUATION_ALPHA: GLenum
[src]
§
readonly BLEND_EQUATION_RGB: GLenum
[src]
§
readonly BLEND_SRC_ALPHA: GLenum
[src]
§
readonly BLEND_SRC_RGB: GLenum
[src]
§
readonly BLUE_BITS: GLenum
[src]
§
readonly BOOL: GLenum
[src]
§
readonly BOOL_VEC2: GLenum
[src]
§
readonly BOOL_VEC3: GLenum
[src]
§
readonly BOOL_VEC4: GLenum
[src]
§
readonly BROWSER_DEFAULT_WEBGL: GLenum
[src]
§
readonly BUFFER_SIZE: GLenum
[src]
§
readonly BUFFER_USAGE: GLenum
[src]
§
readonly BYTE: GLenum
[src]
§
readonly canvas: HTMLCanvasElement
[src]
§
readonly CCW: GLenum
[src]
§
readonly CLAMP_TO_EDGE: GLenum
[src]
§
readonly COLOR_ATTACHMENT0: GLenum
[src]
§
readonly COLOR_BUFFER_BIT: GLenum
[src]
§
readonly COLOR_CLEAR_VALUE: GLenum
[src]
§
readonly COLOR_WRITEMASK: GLenum
[src]
§
readonly COMPILE_STATUS: GLenum
[src]
§
readonly COMPRESSED_TEXTURE_FORMATS: GLenum
[src]
§
readonly CONSTANT_ALPHA: GLenum
[src]
§
readonly CONSTANT_COLOR: GLenum
[src]
§
readonly CONTEXT_LOST_WEBGL: GLenum
[src]
§
readonly CULL_FACE: GLenum
[src]
§
readonly CULL_FACE_MODE: GLenum
[src]
§
readonly CURRENT_PROGRAM: GLenum
[src]
§
readonly CURRENT_VERTEX_ATTRIB: GLenum
[src]
§
readonly CW: GLenum
[src]
§
readonly DECR: GLenum
[src]
§
readonly DECR_WRAP: GLenum
[src]
§
readonly DELETE_STATUS: GLenum
[src]
§
readonly DEPTH_ATTACHMENT: GLenum
[src]
§
readonly DEPTH_BITS: GLenum
[src]
§
readonly DEPTH_BUFFER_BIT: GLenum
[src]
§
readonly DEPTH_CLEAR_VALUE: GLenum
[src]
§
readonly DEPTH_COMPONENT: GLenum
[src]
§
readonly DEPTH_COMPONENT16: GLenum
[src]
§
readonly DEPTH_FUNC: GLenum
[src]
§
readonly DEPTH_RANGE: GLenum
[src]
§
readonly DEPTH_STENCIL: GLenum
[src]
§
readonly DEPTH_STENCIL_ATTACHMENT: GLenum
[src]
§
readonly DEPTH_TEST: GLenum
[src]
§
readonly DEPTH_WRITEMASK: GLenum
[src]
§
readonly DITHER: GLenum
[src]
§
readonly DONT_CARE: GLenum
[src]
§
readonly drawingBufferHeight: GLsizei
[src]
§
readonly drawingBufferWidth: GLsizei
[src]
§
readonly DST_ALPHA: GLenum
[src]
§
readonly DST_COLOR: GLenum
[src]
§
readonly DYNAMIC_DRAW: GLenum
[src]
§
readonly ELEMENT_ARRAY_BUFFER: GLenum
[src]
§
readonly ELEMENT_ARRAY_BUFFER_BINDING: GLenum
[src]
§
readonly EQUAL: GLenum
[src]
§
readonly FASTEST: GLenum
[src]
§
readonly FLOAT: GLenum
[src]
§
readonly FLOAT_MAT2: GLenum
[src]
§
readonly FLOAT_MAT3: GLenum
[src]
§
readonly FLOAT_MAT4: GLenum
[src]
§
readonly FLOAT_VEC2: GLenum
[src]
§
readonly FLOAT_VEC3: GLenum
[src]
§
readonly FLOAT_VEC4: GLenum
[src]
§
readonly FRAGMENT_SHADER: GLenum
[src]
§
readonly FRAMEBUFFER: GLenum
[src]
§
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: GLenum
[src]
§
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: GLenum
[src]
§
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: GLenum
[src]
§
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: GLenum
[src]
§
readonly FRAMEBUFFER_BINDING: GLenum
[src]
§
readonly FRAMEBUFFER_COMPLETE: GLenum
[src]
§
readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: GLenum
[src]
§
readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: GLenum
[src]
§
readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: GLenum
[src]
§
readonly FRAMEBUFFER_UNSUPPORTED: GLenum
[src]
§
readonly FRONT: GLenum
[src]
§
readonly FRONT_AND_BACK: GLenum
[src]
§
readonly FRONT_FACE: GLenum
[src]
§
readonly FUNC_ADD: GLenum
[src]
§
readonly FUNC_REVERSE_SUBTRACT: GLenum
[src]
§
readonly FUNC_SUBTRACT: GLenum
[src]
§
readonly GENERATE_MIPMAP_HINT: GLenum
[src]
§
readonly GEQUAL: GLenum
[src]
§
readonly GREATER: GLenum
[src]
§
readonly GREEN_BITS: GLenum
[src]
§
readonly HIGH_FLOAT: GLenum
[src]
§
readonly HIGH_INT: GLenum
[src]
§
readonly IMPLEMENTATION_COLOR_READ_FORMAT: GLenum
[src]
§
readonly IMPLEMENTATION_COLOR_READ_TYPE: GLenum
[src]
§
readonly INCR: GLenum
[src]
§
readonly INCR_WRAP: GLenum
[src]
§
readonly INT: GLenum
[src]
§
readonly INT_VEC2: GLenum
[src]
§
readonly INT_VEC3: GLenum
[src]
§
readonly INT_VEC4: GLenum
[src]
§
readonly INVALID_ENUM: GLenum
[src]
§
readonly INVALID_FRAMEBUFFER_OPERATION: GLenum
[src]
§
readonly INVALID_OPERATION: GLenum
[src]
§
readonly INVALID_VALUE: GLenum
[src]
§
readonly INVERT: GLenum
[src]
§
readonly KEEP: GLenum
[src]
§
readonly LEQUAL: GLenum
[src]
§
readonly LESS: GLenum
[src]
§
readonly LINE_LOOP: GLenum
[src]
§
readonly LINE_STRIP: GLenum
[src]
§
readonly LINE_WIDTH: GLenum
[src]
§
readonly LINEAR: GLenum
[src]
§
readonly LINEAR_MIPMAP_LINEAR: GLenum
[src]
§
readonly LINEAR_MIPMAP_NEAREST: GLenum
[src]
§
readonly LINES: GLenum
[src]
§
readonly LOW_FLOAT: GLenum
[src]
§
readonly LOW_INT: GLenum
[src]
§
readonly LUMINANCE: GLenum
[src]
§
readonly LUMINANCE_ALPHA: GLenum
[src]
§
readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: GLenum
[src]
§
readonly MAX_CUBE_MAP_TEXTURE_SIZE: GLenum
[src]
§
readonly MAX_FRAGMENT_UNIFORM_VECTORS: GLenum
[src]
§
readonly MAX_RENDERBUFFER_SIZE: GLenum
[src]
§
readonly MAX_TEXTURE_IMAGE_UNITS: GLenum
[src]
§
readonly MAX_TEXTURE_SIZE: GLenum
[src]
§
readonly MAX_VARYING_VECTORS: GLenum
[src]
§
readonly MAX_VERTEX_ATTRIBS: GLenum
[src]
§
readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: GLenum
[src]
§
readonly MAX_VERTEX_UNIFORM_VECTORS: GLenum
[src]
§
readonly MAX_VIEWPORT_DIMS: GLenum
[src]
§
readonly MEDIUM_FLOAT: GLenum
[src]
§
readonly MEDIUM_INT: GLenum
[src]
§
readonly MIRRORED_REPEAT: GLenum
[src]
§
readonly NEAREST: GLenum
[src]
§
readonly NEAREST_MIPMAP_LINEAR: GLenum
[src]
§
readonly NEAREST_MIPMAP_NEAREST: GLenum
[src]
§
readonly NEVER: GLenum
[src]
§
readonly NICEST: GLenum
[src]
§
readonly NO_ERROR: GLenum
[src]
§
readonly NONE: GLenum
[src]
§
readonly NOTEQUAL: GLenum
[src]
§
readonly ONE: GLenum
[src]
§
readonly ONE_MINUS_CONSTANT_ALPHA: GLenum
[src]
§
readonly ONE_MINUS_CONSTANT_COLOR: GLenum
[src]
§
readonly ONE_MINUS_DST_ALPHA: GLenum
[src]
§
readonly ONE_MINUS_DST_COLOR: GLenum
[src]
§
readonly ONE_MINUS_SRC_ALPHA: GLenum
[src]
§
readonly ONE_MINUS_SRC_COLOR: GLenum
[src]
§
readonly OUT_OF_MEMORY: GLenum
[src]
§
readonly PACK_ALIGNMENT: GLenum
[src]
§
readonly POINTS: GLenum
[src]
§
readonly POLYGON_OFFSET_FACTOR: GLenum
[src]
§
readonly POLYGON_OFFSET_FILL: GLenum
[src]
§
readonly POLYGON_OFFSET_UNITS: GLenum
[src]
§
readonly RED_BITS: GLenum
[src]
§
readonly RENDERBUFFER: GLenum
[src]
§
readonly RENDERBUFFER_ALPHA_SIZE: GLenum
[src]
§
readonly RENDERBUFFER_BINDING: GLenum
[src]
§
readonly RENDERBUFFER_BLUE_SIZE: GLenum
[src]
§
readonly RENDERBUFFER_DEPTH_SIZE: GLenum
[src]
§
readonly RENDERBUFFER_GREEN_SIZE: GLenum
[src]
§
readonly RENDERBUFFER_HEIGHT: GLenum
[src]
§
readonly RENDERBUFFER_INTERNAL_FORMAT: GLenum
[src]
§
readonly RENDERBUFFER_RED_SIZE: GLenum
[src]
§
readonly RENDERBUFFER_STENCIL_SIZE: GLenum
[src]
§
readonly RENDERBUFFER_WIDTH: GLenum
[src]
§
readonly RENDERER: GLenum
[src]
§
readonly REPEAT: GLenum
[src]
§
readonly REPLACE: GLenum
[src]
§
readonly RGB: GLenum
[src]
§
readonly RGB5_A1: GLenum
[src]
§
readonly RGB565: GLenum
[src]
§
readonly RGBA: GLenum
[src]
§
readonly RGBA4: GLenum
[src]
§
readonly SAMPLE_ALPHA_TO_COVERAGE: GLenum
[src]
§
readonly SAMPLE_BUFFERS: GLenum
[src]
§
readonly SAMPLE_COVERAGE: GLenum
[src]
§
readonly SAMPLE_COVERAGE_INVERT: GLenum
[src]
§
readonly SAMPLE_COVERAGE_VALUE: GLenum
[src]
§
readonly SAMPLER_2D: GLenum
[src]
§
readonly SAMPLER_CUBE: GLenum
[src]
§
readonly SAMPLES: GLenum
[src]
§
readonly SCISSOR_BOX: GLenum
[src]
§
readonly SCISSOR_TEST: GLenum
[src]
§
readonly SHADER_TYPE: GLenum
[src]
§
readonly SHADING_LANGUAGE_VERSION: GLenum
[src]
§
readonly SHORT: GLenum
[src]
§
readonly SRC_ALPHA: GLenum
[src]
§
readonly SRC_ALPHA_SATURATE: GLenum
[src]
§
readonly SRC_COLOR: GLenum
[src]
§
readonly STATIC_DRAW: GLenum
[src]
§
readonly STENCIL_ATTACHMENT: GLenum
[src]
§
readonly STENCIL_BACK_FAIL: GLenum
[src]
§
readonly STENCIL_BACK_FUNC: GLenum
[src]
§
readonly STENCIL_BACK_PASS_DEPTH_FAIL: GLenum
[src]
§
readonly STENCIL_BACK_PASS_DEPTH_PASS: GLenum
[src]
§
readonly STENCIL_BACK_REF: GLenum
[src]
§
readonly STENCIL_BACK_VALUE_MASK: GLenum
[src]
§
readonly STENCIL_BACK_WRITEMASK: GLenum
[src]
§
readonly STENCIL_BITS: GLenum
[src]
§
readonly STENCIL_BUFFER_BIT: GLenum
[src]
§
readonly STENCIL_CLEAR_VALUE: GLenum
[src]
§
readonly STENCIL_FAIL: GLenum
[src]
§
readonly STENCIL_FUNC: GLenum
[src]
§
readonly STENCIL_INDEX8: GLenum
[src]
§
readonly STENCIL_PASS_DEPTH_FAIL: GLenum
[src]
§
readonly STENCIL_PASS_DEPTH_PASS: GLenum
[src]
§
readonly STENCIL_REF: GLenum
[src]
§
readonly STENCIL_TEST: GLenum
[src]
§
readonly STENCIL_VALUE_MASK: GLenum
[src]
§
readonly STENCIL_WRITEMASK: GLenum
[src]
§
readonly STREAM_DRAW: GLenum
[src]
§
readonly SUBPIXEL_BITS: GLenum
[src]
§
readonly TEXTURE: GLenum
[src]
§
readonly TEXTURE_2D: GLenum
[src]
§
readonly TEXTURE_BINDING_2D: GLenum
[src]
§
readonly TEXTURE_BINDING_CUBE_MAP: GLenum
[src]
§
readonly TEXTURE_CUBE_MAP: GLenum
[src]
§
readonly TEXTURE_CUBE_MAP_NEGATIVE_X: GLenum
[src]
§
readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: GLenum
[src]
§
readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: GLenum
[src]
§
readonly TEXTURE_CUBE_MAP_POSITIVE_X: GLenum
[src]
§
readonly TEXTURE_CUBE_MAP_POSITIVE_Y: GLenum
[src]
§
readonly TEXTURE_CUBE_MAP_POSITIVE_Z: GLenum
[src]
§
readonly TEXTURE_MAG_FILTER: GLenum
[src]
§
readonly TEXTURE_MIN_FILTER: GLenum
[src]
§
readonly TEXTURE_WRAP_S: GLenum
[src]
§
readonly TEXTURE_WRAP_T: GLenum
[src]
§
readonly TEXTURE0: GLenum
[src]
§
readonly TEXTURE1: GLenum
[src]
§
readonly TEXTURE10: GLenum
[src]
§
readonly TEXTURE11: GLenum
[src]
§
readonly TEXTURE12: GLenum
[src]
§
readonly TEXTURE13: GLenum
[src]
§
readonly TEXTURE14: GLenum
[src]
§
readonly TEXTURE15: GLenum
[src]
§
readonly TEXTURE16: GLenum
[src]
§
readonly TEXTURE17: GLenum
[src]
§
readonly TEXTURE18: GLenum
[src]
§
readonly TEXTURE19: GLenum
[src]
§
readonly TEXTURE2: GLenum
[src]
§
readonly TEXTURE20: GLenum
[src]
§
readonly TEXTURE21: GLenum
[src]
§
readonly TEXTURE22: GLenum
[src]
§
readonly TEXTURE23: GLenum
[src]
§
readonly TEXTURE24: GLenum
[src]
§
readonly TEXTURE25: GLenum
[src]
§
readonly TEXTURE26: GLenum
[src]
§
readonly TEXTURE27: GLenum
[src]
§
readonly TEXTURE28: GLenum
[src]
§
readonly TEXTURE29: GLenum
[src]
§
readonly TEXTURE3: GLenum
[src]
§
readonly TEXTURE30: GLenum
[src]
§
readonly TEXTURE31: GLenum
[src]
§
readonly TEXTURE4: GLenum
[src]
§
readonly TEXTURE5: GLenum
[src]
§
readonly TEXTURE6: GLenum
[src]
§
readonly TEXTURE7: GLenum
[src]
§
readonly TEXTURE8: GLenum
[src]
§
readonly TEXTURE9: GLenum
[src]
§
readonly TRIANGLE_FAN: GLenum
[src]
§
readonly TRIANGLE_STRIP: GLenum
[src]
§
readonly TRIANGLES: GLenum
[src]
§
readonly UNPACK_ALIGNMENT: GLenum
[src]
§
readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: GLenum
[src]
§
readonly UNPACK_FLIP_Y_WEBGL: GLenum
[src]
§
readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: GLenum
[src]
§
readonly UNSIGNED_BYTE: GLenum
[src]
§
readonly UNSIGNED_INT: GLenum
[src]
§
readonly UNSIGNED_SHORT: GLenum
[src]
§
readonly UNSIGNED_SHORT_4_4_4_4: GLenum
[src]
§
readonly UNSIGNED_SHORT_5_5_5_1: GLenum
[src]
§
readonly UNSIGNED_SHORT_5_6_5: GLenum
[src]
§
readonly VALIDATE_STATUS: GLenum
[src]
§
readonly VENDOR: GLenum
[src]
§
readonly VERSION: GLenum
[src]
§
readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: GLenum
[src]
§
readonly VERTEX_ATTRIB_ARRAY_ENABLED: GLenum
[src]
§
readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: GLenum
[src]
§
readonly VERTEX_ATTRIB_ARRAY_POINTER: GLenum
[src]
§
readonly VERTEX_ATTRIB_ARRAY_SIZE: GLenum
[src]
§
readonly VERTEX_ATTRIB_ARRAY_STRIDE: GLenum
[src]
§
readonly VERTEX_ATTRIB_ARRAY_TYPE: GLenum
[src]
§
readonly VERTEX_SHADER: GLenum
[src]
§
readonly VIEWPORT: GLenum
[src]
§
readonly ZERO: GLenum
[src]

§Methods

§
activeTexture(texture: GLenum): void
[src]
§
attachShader(program: WebGLProgram, shader: WebGLShader): void
[src]
§
bindAttribLocation(
program: WebGLProgram,
index: GLuint,
name: string,
): void
[src]
§
bindBuffer(target: GLenum, buffer: WebGLBuffer | null): void
[src]
§
bindFramebuffer(target: GLenum, framebuffer: WebGLFramebuffer | null): void
[src]
§
bindRenderbuffer(target: GLenum, renderbuffer: WebGLRenderbuffer | null): void
[src]
§
bindTexture(target: GLenum, texture: WebGLTexture | null): void
[src]
§
blendColor(
red: GLclampf,
green: GLclampf,
blue: GLclampf,
alpha: GLclampf,
): void
[src]
§
blendEquation(mode: GLenum): void
[src]
§
blendEquationSeparate(modeRGB: GLenum, modeAlpha: GLenum): void
[src]
§
blendFunc(sfactor: GLenum, dfactor: GLenum): void
[src]
§
blendFuncSeparate(
srcRGB: GLenum,
dstRGB: GLenum,
srcAlpha: GLenum,
dstAlpha: GLenum,
): void
[src]
§
checkFramebufferStatus(target: GLenum): GLenum
[src]
§
clear(mask: GLbitfield): void
[src]
§
clearColor(
red: GLclampf,
green: GLclampf,
blue: GLclampf,
alpha: GLclampf,
): void
[src]
§
clearDepth(depth: GLclampf): void
[src]
§
clearStencil(s: GLint): void
[src]
§
colorMask(
red: GLboolean,
green: GLboolean,
blue: GLboolean,
alpha: GLboolean,
): void
[src]
§
compileShader(shader: WebGLShader): void
[src]
§
copyTexImage2D(
target: GLenum,
level: GLint,
internalformat: GLenum,
x: GLint,
y: GLint,
width: GLsizei,
height: GLsizei,
border: GLint,
): void
[src]
§
copyTexSubImage2D(
target: GLenum,
level: GLint,
xoffset: GLint,
yoffset: GLint,
x: GLint,
y: GLint,
width: GLsizei,
height: GLsizei,
): void
[src]
§
createBuffer(): WebGLBuffer | null
[src]
§
createFramebuffer(): WebGLFramebuffer | null
[src]
§
createProgram(): WebGLProgram | null
[src]
§
createRenderbuffer(): WebGLRenderbuffer | null
[src]
§
createShader(type: GLenum): WebGLShader | null
[src]
§
createTexture(): WebGLTexture | null
[src]
§
cullFace(mode: GLenum): void
[src]
§
deleteBuffer(buffer: WebGLBuffer | null): void
[src]
§
deleteFramebuffer(framebuffer: WebGLFramebuffer | null): void
[src]
§
deleteProgram(program: WebGLProgram | null): void
[src]
§
deleteRenderbuffer(renderbuffer: WebGLRenderbuffer | null): void
[src]
§
deleteShader(shader: WebGLShader | null): void
[src]
§
deleteTexture(texture: WebGLTexture | null): void
[src]
§
depthFunc(func: GLenum): void
[src]
§
depthMask(flag: GLboolean): void
[src]
§
depthRange(zNear: GLclampf, zFar: GLclampf): void
[src]
§
detachShader(program: WebGLProgram, shader: WebGLShader): void
[src]
§
disable(cap: GLenum): void
[src]
§
disableVertexAttribArray(index: GLuint): void
[src]
§
drawArrays(
mode: GLenum,
first: GLint,
count: GLsizei,
): void
[src]
§
drawElements(
mode: GLenum,
count: GLsizei,
type: GLenum,
offset: GLintptr,
): void
[src]
§
enable(cap: GLenum): void
[src]
§
enableVertexAttribArray(index: GLuint): void
[src]
§
finish(): void
[src]
§
flush(): void
[src]
§
framebufferRenderbuffer(
target: GLenum,
attachment: GLenum,
renderbuffertarget: GLenum,
renderbuffer: WebGLRenderbuffer | null,
): void
[src]
§
framebufferTexture2D(
target: GLenum,
attachment: GLenum,
textarget: GLenum,
texture: WebGLTexture | null,
level: GLint,
): void
[src]
§
frontFace(mode: GLenum): void
[src]
§
generateMipmap(target: GLenum): void
[src]
§
getActiveAttrib(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null
[src]
§
getActiveUniform(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null
[src]
§
getAttachedShaders(program: WebGLProgram): WebGLShader[] | null
[src]
§
getAttribLocation(program: WebGLProgram, name: string): GLint
[src]
§
getBufferParameter(target: GLenum, pname: GLenum): any
[src]
§
getContextAttributes(): WebGLContextAttributes | null
[src]
§
getError(): GLenum
[src]
§
getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null
[src]
§
getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null
[src]
§
getExtension(extensionName: "EXT_color_buffer_half_float"): EXT_color_buffer_half_float | null
[src]
§
getExtension(extensionName: "EXT_float_blend"): EXT_float_blend | null
[src]
§
getExtension(extensionName: "EXT_texture_filter_anisotropic"): EXT_texture_filter_anisotropic | null
[src]
§
getExtension(extensionName: "EXT_frag_depth"): EXT_frag_depth | null
[src]
§
getExtension(extensionName: "EXT_shader_texture_lod"): EXT_shader_texture_lod | null
[src]
§
getExtension(extensionName: "EXT_sRGB"): EXT_sRGB | null
[src]
§
getExtension(extensionName: "KHR_parallel_shader_compile"): KHR_parallel_shader_compile | null
[src]
§
getExtension(extensionName: "OES_vertex_array_object"): OES_vertex_array_object | null
[src]
§
getExtension(extensionName: "OVR_multiview2"): OVR_multiview2 | null
[src]
§
getExtension(extensionName: "WEBGL_color_buffer_float"): WEBGL_color_buffer_float | null
[src]
§
getExtension(extensionName: "WEBGL_compressed_texture_astc"): WEBGL_compressed_texture_astc | null
[src]
§
getExtension(extensionName: "WEBGL_compressed_texture_etc"): WEBGL_compressed_texture_etc | null
[src]
§
getExtension(extensionName: "WEBGL_compressed_texture_etc1"): WEBGL_compressed_texture_etc1 | null
[src]
§
getExtension(extensionName: "WEBGL_compressed_texture_s3tc_srgb"): WEBGL_compressed_texture_s3tc_srgb | null
[src]
§
getExtension(extensionName: "WEBGL_debug_shaders"): WEBGL_debug_shaders | null
[src]
§
getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null
[src]
§
getExtension(extensionName: "WEBGL_lose_context"): WEBGL_lose_context | null
[src]
§
getExtension(extensionName: "WEBGL_depth_texture"): WEBGL_depth_texture | null
[src]
§
getExtension(extensionName: "WEBGL_debug_renderer_info"): WEBGL_debug_renderer_info | null
[src]
§
getExtension(extensionName: "WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc | null
[src]
§
getExtension(extensionName: "OES_texture_half_float_linear"): OES_texture_half_float_linear | null
[src]
§
getExtension(extensionName: "OES_texture_half_float"): OES_texture_half_float | null
[src]
§
getExtension(extensionName: "OES_texture_float_linear"): OES_texture_float_linear | null
[src]
§
getExtension(extensionName: "OES_texture_float"): OES_texture_float | null
[src]
§
getExtension(extensionName: "OES_standard_derivatives"): OES_standard_derivatives | null
[src]
§
getExtension(extensionName: "OES_element_index_uint"): OES_element_index_uint | null
[src]
§
getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null
[src]
§
getExtension(name: string): any
[src]
§
getFramebufferAttachmentParameter(
target: GLenum,
attachment: GLenum,
pname: GLenum,
): any
[src]
§
getParameter(pname: GLenum): any
[src]
§
getProgramInfoLog(program: WebGLProgram): string | null
[src]
§
getProgramParameter(program: WebGLProgram, pname: GLenum): any
[src]
§
getRenderbufferParameter(target: GLenum, pname: GLenum): any
[src]
§
getShaderInfoLog(shader: WebGLShader): string | null
[src]
§
getShaderParameter(shader: WebGLShader, pname: GLenum): any
[src]
§
getShaderPrecisionFormat(shadertype: GLenum, precisiontype: GLenum): WebGLShaderPrecisionFormat | null
[src]
§
getShaderSource(shader: WebGLShader): string | null
[src]
§
getSupportedExtensions(): string[] | null
[src]
§
getTexParameter(target: GLenum, pname: GLenum): any
[src]
§
getUniform(program: WebGLProgram, location: WebGLUniformLocation): any
[src]
§
getUniformLocation(program: WebGLProgram, name: string): WebGLUniformLocation | null
[src]
§
getVertexAttrib(index: GLuint, pname: GLenum): any
[src]
§
getVertexAttribOffset(index: GLuint, pname: GLenum): GLintptr
[src]
§
hint(target: GLenum, mode: GLenum): void
[src]
§
isBuffer(buffer: WebGLBuffer | null): GLboolean
[src]
§
isContextLost(): boolean
[src]
§
isEnabled(cap: GLenum): GLboolean
[src]
§
isFramebuffer(framebuffer: WebGLFramebuffer | null): GLboolean
[src]
§
isProgram(program: WebGLProgram | null): GLboolean
[src]
§
isRenderbuffer(renderbuffer: WebGLRenderbuffer | null): GLboolean
[src]
§
isShader(shader: WebGLShader | null): GLboolean
[src]
§
isTexture(texture: WebGLTexture | null): GLboolean
[src]
§
lineWidth(width: GLfloat): void
[src]
§
linkProgram(program: WebGLProgram): void
[src]
§
pixelStorei(pname: GLenum, param: GLint | GLboolean): void
[src]
§
polygonOffset(factor: GLfloat, units: GLfloat): void
[src]
§
renderbufferStorage(
target: GLenum,
internalformat: GLenum,
width: GLsizei,
height: GLsizei,
): void
[src]
§
sampleCoverage(value: GLclampf, invert: GLboolean): void
[src]
§
scissor(
x: GLint,
y: GLint,
width: GLsizei,
height: GLsizei,
): void
[src]
§
shaderSource(shader: WebGLShader, source: string): void
[src]
§
stencilFunc(
func: GLenum,
ref: GLint,
mask: GLuint,
): void
[src]
§
stencilFuncSeparate(
face: GLenum,
func: GLenum,
ref: GLint,
mask: GLuint,
): void
[src]
§
stencilMask(mask: GLuint): void
[src]
§
stencilMaskSeparate(face: GLenum, mask: GLuint): void
[src]
§
stencilOp(
fail: GLenum,
zfail: GLenum,
zpass: GLenum,
): void
[src]
§
stencilOpSeparate(
face: GLenum,
fail: GLenum,
zfail: GLenum,
zpass: GLenum,
): void
[src]
§
texParameterf(
target: GLenum,
pname: GLenum,
param: GLfloat,
): void
[src]
§
texParameteri(
target: GLenum,
pname: GLenum,
param: GLint,
): void
[src]
§
uniform1f(location: WebGLUniformLocation | null, x: GLfloat): void
[src]
§
uniform1i(location: WebGLUniformLocation | null, x: GLint): void
[src]
§
uniform2f(
location: WebGLUniformLocation | null,
): void
[src]
§
uniform2i(
location: WebGLUniformLocation | null,
x: GLint,
y: GLint,
): void
[src]
§
uniform3f(
location: WebGLUniformLocation | null,
): void
[src]
§
uniform3i(
location: WebGLUniformLocation | null,
x: GLint,
y: GLint,
z: GLint,
): void
[src]
§
uniform4f(
location: WebGLUniformLocation | null,
): void
[src]
§
uniform4i(
location: WebGLUniformLocation | null,
x: GLint,
y: GLint,
z: GLint,
w: GLint,
): void
[src]
§
useProgram(program: WebGLProgram | null): void
[src]
§
validateProgram(program: WebGLProgram): void
[src]
§
vertexAttrib1f(index: GLuint, x: GLfloat): void
[src]
§
vertexAttrib1fv(index: GLuint, values: Float32List): void
[src]
§
vertexAttrib1fv(index: GLuint, values: Iterable<GLfloat>): void
[src]
§
vertexAttrib2f(
index: GLuint,
): void
[src]
§
vertexAttrib2fv(index: GLuint, values: Float32List): void
[src]
§
vertexAttrib2fv(index: GLuint, values: Iterable<GLfloat>): void
[src]
§
vertexAttrib3f(
index: GLuint,
): void
[src]
§
vertexAttrib3fv(index: GLuint, values: Float32List): void
[src]
§
vertexAttrib3fv(index: GLuint, values: Iterable<GLfloat>): void
[src]
§
vertexAttrib4f(
index: GLuint,
): void
[src]
§
vertexAttrib4fv(index: GLuint, values: Float32List): void
[src]
§
vertexAttrib4fv(index: GLuint, values: Iterable<GLfloat>): void
[src]
§
vertexAttribPointer(
index: GLuint,
size: GLint,
type: GLenum,
normalized: GLboolean,
stride: GLsizei,
offset: GLintptr,
): void
[src]
§
viewport(
x: GLint,
y: GLint,
width: GLsizei,
height: GLsizei,
): void
[src]