WebGLRenderingContext
Provides an interface to the OpenGL ES 2.0 graphics rendering context for the drawing surface of an HTML element.
interface WebGLRenderingContext extends WebGLRenderingContextBase, WebGLRenderingContextOverloads {}
var WebGLRenderingContext: {
prototype: WebGLRenderingContext;
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 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 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 LINEAR: GLenum;
readonly LINEAR_MIPMAP_LINEAR: GLenum;
readonly LINEAR_MIPMAP_NEAREST: GLenum;
readonly LINES: GLenum;
readonly LINE_LOOP: GLenum;
readonly LINE_STRIP: GLenum;
readonly LINE_WIDTH: 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 NONE: GLenum;
readonly NOTEQUAL: GLenum;
readonly NO_ERROR: 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 RGB565: GLenum;
readonly RGB5_A1: GLenum;
readonly RGBA: GLenum;
readonly RGBA4: GLenum;
readonly SAMPLER_2D: GLenum;
readonly SAMPLER_CUBE: GLenum;
readonly SAMPLES: 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 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 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 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 TRIANGLES: GLenum;
readonly TRIANGLE_FAN: GLenum;
readonly TRIANGLE_STRIP: 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;
new (): WebGLRenderingContext;
};