Package-level declarations

Types

Link copied to clipboard

The ANGLE_instanced_arrays extension is part of the WebGL API and allows to draw the same object, or groups of similar objects multiple times, if they share the same vertex data, primitive count and type.

Link copied to clipboard

The EXT_blend_minmax extension is part of the WebGL API and extends blending capabilities by adding two new blend equations: the minimum or maximum color components of the source and destination colors.

Link copied to clipboard

The EXT_color_buffer_float extension is part of WebGL and adds the ability to render a variety of floating point formats.

Link copied to clipboard

The EXT_color_buffer_half_float extension is part of the WebGL API and adds the ability to render to 16-bit floating-point color buffers.

Link copied to clipboard
interface EXT_float_blend

The WebGL API's EXT_float_blend extension allows blending and draw buffers with 32-bit floating-point components.

Link copied to clipboard
interface EXT_frag_depth

The EXT_frag_depth extension is part of the WebGL API and enables to set a depth value of a fragment from within the fragment shader.

Link copied to clipboard

The EXT_shader_texture_lod extension is part of the WebGL API and adds additional texture functions to the OpenGL ES Shading Language which provide the shader writer with explicit control of LOD (Level of detail).

Link copied to clipboard
interface EXT_sRGB

The EXT_sRGB extension is part of the WebGL API and adds sRGB support to textures and framebuffer objects.

Link copied to clipboard

The EXT_texture_compression_bptc extension is part of the WebGL API and exposes 4 BPTC compressed texture formats. These compression formats are called BC7 and BC6H in Microsoft's DirectX API.

Link copied to clipboard

The EXT_texture_compression_rgtc extension is part of the WebGL API and exposes 4 RGTC compressed texture formats. RGTC is a block-based texture compression format suited for unsigned and signed red and red-green textures (Red-Green Texture Compression).

Link copied to clipboard

The EXT_texture_filter_anisotropic extension is part of the WebGL API and exposes two constants for anisotropic filtering (AF).

Link copied to clipboard

The EXT_texture_norm16 extension is part of the WebGL API and provides a set of new 16-bit signed normalized and unsigned normalized formats (fixed-point texture, renderbuffer and texture buffer).

Link copied to clipboard
Link copied to clipboard
sealed interface GLbitfield : Bitmask<GLbitfield>
Link copied to clipboard
typealias GLboolean = Boolean
Link copied to clipboard
typealias GLclampf = Float
Link copied to clipboard
sealed interface GLenum
Link copied to clipboard
typealias GLfloat = Float
Link copied to clipboard
typealias GLint = Int
Link copied to clipboard
typealias GLint64 = Int53
Link copied to clipboard
typealias GLintptr = Int
Link copied to clipboard
typealias GLsizei = Int
Link copied to clipboard
typealias GLsizeiptr = Int
Link copied to clipboard
typealias GLuint = JsUInt
Link copied to clipboard
typealias GLuint64 = UInt53
Link copied to clipboard
Link copied to clipboard

The KHR_parallel_shader_compile extension is part of the WebGL API and enables a non-blocking poll operation, so that compile/link status availability (COMPLETION_STATUS_KHR) can be queried without potentially incurring stalls. In other words you can check the status of your shaders compiling without blocking the runtime.

Link copied to clipboard

The OES_draw_buffers_indexed extension is part of the WebGL API and enables the use of different blend options when writing to multiple color buffers simultaneously.

Link copied to clipboard

The OES_element_index_uint extension is part of the WebGL API and adds support for gl.UNSIGNED_INT types to WebGLRenderingContext.drawElements().

Link copied to clipboard

The OES_fbo_render_mipmap extension is part of the WebGL API and makes it possible to attach any level of a texture to a framebuffer object.

Link copied to clipboard

The OES_standard_derivatives extension is part of the WebGL API and adds the GLSL derivative functions dFdx, dFdy, and fwidth.

Link copied to clipboard

The OES_texture_float extension is part of the WebGL API and exposes floating-point pixel types for textures.

Link copied to clipboard

The OES_texture_float_linear extension is part of the WebGL API and allows linear filtering with floating-point pixel types for textures.

Link copied to clipboard

The OES_texture_half_float extension is part of the WebGL API and adds texture formats with 16- (aka half float) and 32-bit floating-point components.

Link copied to clipboard

The OES_texture_half_float_linear extension is part of the WebGL API and allows linear filtering with half floating-point pixel types for textures.

Link copied to clipboard

The OES_vertex_array_object extension is part of the WebGL API and provides vertex array objects (VAOs) which encapsulate vertex array states. These objects keep pointers to vertex data and provide names for different sets of vertex data.

Link copied to clipboard
interface OVR_multiview2

The OVR_multiview2 extension is part of the WebGL API and adds support for rendering into multiple views simultaneously. This especially useful for virtual reality (VR) and WebXR.

Link copied to clipboard
Link copied to clipboard

The WebGL2RenderingContext interface provides the OpenGL ES 3.0 rendering context for the drawing surface of an HTML element.

Link copied to clipboard
Link copied to clipboard

The WEBGL_color_buffer_float extension is part of the WebGL API and adds the ability to render to 32-bit floating-point color buffers.

Link copied to clipboard

The WEBGL_compressed_texture_astc extension is part of the WebGL API and exposes Adaptive Scalable Texture Compression (ASTC) compressed texture formats to WebGL.

Link copied to clipboard

The WEBGL_compressed_texture_etc extension is part of the WebGL API and exposes 10 ETC/EAC compressed texture formats.

Link copied to clipboard

The WEBGL_compressed_texture_etc1 extension is part of the WebGL API and exposes the ETC1 compressed texture format.

Link copied to clipboard

The WEBGL_compressed_texture_pvrtc extension is part of the WebGL API and exposes four PVRTC compressed texture formats.

Link copied to clipboard

The WEBGL_compressed_texture_s3tc extension is part of the WebGL API and exposes four S3TC compressed texture formats.

Link copied to clipboard

The WEBGL_compressed_texture_s3tc_srgb extension is part of the WebGL API and exposes four S3TC compressed texture formats for the sRGB colorspace.

Link copied to clipboard

The WEBGL_debug_renderer_info extension is part of the WebGL API and exposes two constants with information about the graphics driver for debugging purposes.

Link copied to clipboard

The WEBGL_debug_shaders extension is part of the WebGL API and exposes a method to debug shaders from privileged contexts.

Link copied to clipboard

The WEBGL_depth_texture extension is part of the WebGL API and defines 2D depth and depth-stencil textures.

Link copied to clipboard

The WEBGL_draw_buffers extension is part of the WebGL API and enables a fragment shader to write to several textures, which is useful for deferred shading, for example.

Link copied to clipboard

The WEBGL_lose_context extension is part of the WebGL API and exposes functions to simulate losing and restoring a WebGLRenderingContext.

Link copied to clipboard

The WEBGL_multi_draw extension is part of the WebGL API and allows to render more than one primitive with a single function call. This can improve a WebGL application's performance as it reduces binding costs in the renderer and speeds up GPU thread time with uniform data.

Link copied to clipboard
open class WebGLActiveInfo

The WebGLActiveInfo interface is part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getActiveAttrib() and WebGLRenderingContext.getActiveUniform() methods.

Link copied to clipboard
open class WebGLBuffer

The WebGLBuffer interface is part of the WebGL API and represents an opaque buffer object storing data such as vertices or colors.

Link copied to clipboard
Link copied to clipboard
open class WebGLContextEvent(val type: EventType<WebGLContextEvent>, init: WebGLContextEventInit = definedExternally) : Event

The WebGLContextEvent interface is part of the WebGL API and is an interface for an event that is generated in response to a status change to the WebGL rendering context.

Link copied to clipboard
Link copied to clipboard
sealed interface WebGLExtension
Link copied to clipboard
open class WebGLFramebuffer

The WebGLFramebuffer interface is part of the WebGL API and represents a collection of buffers that serve as a rendering destination.

Link copied to clipboard
sealed interface WebGLPowerPreference
Link copied to clipboard
open class WebGLProgram

The WebGLProgram is part of the WebGL API and is a combination of two compiled WebGLShaders consisting of a vertex shader and a fragment shader (both written in GLSL).

Link copied to clipboard
open class WebGLQuery

The WebGLQuery interface is part of the WebGL 2 API and provides ways to asynchronously query for information. By default, occlusion queries and primitive queries are available.

Link copied to clipboard

The WebGLRenderbuffer interface is part of the WebGL API and represents a buffer that can contain an image, or that can be a source or target of a rendering operation.

Link copied to clipboard

The WebGLRenderingContext interface provides an interface to the OpenGL ES 2.0 graphics rendering context for the drawing surface of an HTML element.

Link copied to clipboard
Link copied to clipboard
open class WebGLSampler

The WebGLSampler interface is part of the WebGL 2 API and stores sampling parameters for WebGLTexture access inside of a shader.

Link copied to clipboard
open class WebGLShader

The WebGLShader is part of the WebGL API and can either be a vertex or a fragment shader. A WebGLProgram requires both types of shaders.

Link copied to clipboard

The WebGLShaderPrecisionFormat interface is part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getShaderPrecisionFormat() method.

Link copied to clipboard
open class WebGLSync

The WebGLSync interface is part of the WebGL 2 API and is used to synchronize activities between the GPU and the application.

Link copied to clipboard
open class WebGLTexture

The WebGLTexture interface is part of the WebGL API and represents an opaque texture object providing storage and state for texturing operations.

Link copied to clipboard

The WebGLTransformFeedback interface is part of the WebGL 2 API and enables transform feedback, which is the process of capturing primitives generated by vertex processing. It allows to preserve the post-transform rendering state of an object and resubmit this data multiple times.

Link copied to clipboard

The WebGLUniformLocation interface is part of the WebGL API and represents the location of a uniform variable in a shader program.

Link copied to clipboard

The WebGLVertexArrayObject interface is part of the WebGL 2 API, represents vertex array objects (VAOs) pointing to vertex array data, and provides names for different sets of vertex data.

Link copied to clipboard

Properties

Link copied to clipboard

Passed to getProgramParameter to get the number of attributes active in a program.

Link copied to clipboard

The current active texture unit.

Link copied to clipboard

Passed to getProgramParameter to get the number of uniforms active in a program.

Link copied to clipboard

Passed to getParameter to get the range of available widths for a line. The getParameter method then returns an array with two elements: the first element is the minimum width value and the second element is the maximum width value.

Link copied to clipboard

Passed to getParameter to get the current size of a point drawn with gl.POINTS

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Passed to depthFunction or stencilFunction to specify depth or stencil tests will always pass, i.e., pixels will be drawn in the order they are drawn.

Link copied to clipboard
Link copied to clipboard

Passed to bindBuffer or bufferData to specify the type of buffer being used.

Link copied to clipboard

Passed to getParameter to get the array buffer binding.

Link copied to clipboard

Passed to getProgramParameter after calling attachShader to determine if the shader was attached correctly. Returns false if errors occurred.

Link copied to clipboard

Passed to cullFace to specify that only back faces should be culled.

Link copied to clipboard

Passed to enable/disable to turn on/off blending. Can also be used with getParameter to find the current blending method.

Link copied to clipboard

Passed to getParameter to return the current blend color.

Link copied to clipboard

Passed to getParameter to get the current destination alpha blend function.

Link copied to clipboard

Passed to getParameter to get the current destination RGB blend function.

Link copied to clipboard

Passed to getParameter to get the current RGB blend function.

Link copied to clipboard

Passed to getParameter to get the current alpha blend function.

Link copied to clipboard

Passed to getParameter to get the current RGB blend function. Same as BLEND_EQUATION

Link copied to clipboard

Passed to getParameter to get the current source alpha blend function.

Link copied to clipboard

Passed to getParameter to get the current source RGB blend function.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Passed to getBufferParameter to get a buffer's size.

Link copied to clipboard

Passed to getBufferParameter to get the hint for the buffer passed in when it was created.

Link copied to clipboard
Link copied to clipboard
val CCW: GLenum

Passed to frontFace to specify the front face of a polygon is drawn in the counter clockwise direction

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Passed to clear to clear the current color buffer.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Passed to getShaderParameter to get the status of the compilation. Returns false if the shader was not compiled. You can then query getShaderInfoLog to find the exact error

Link copied to clipboard
Link copied to clipboard

Passed to blendFunc or blendFuncSeparate to specify a constant alpha blend function.

Link copied to clipboard

Passed to blendFunc or blendFuncSeparate to specify a constant color blend function.

Link copied to clipboard

Returned from getError.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Passed to enable/disable to turn on/off culling. Can also be used with getParameter to find the current culling method.

Link copied to clipboard

Passed to getParameter to get the current value of cullFace. Should return FRONT, BACK, or FRONT_AND_BACK

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Passed to getVertexAttrib to read back the current vertex attribute.

Link copied to clipboard
val CW: GLenum

Passed to frontFace to specify the front face of a polygon is drawn in the clockwise direction

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Passed to getShaderParameter to determine if a shader was deleted via deleteShader. Returns true if it was, false otherwise.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Passed to clear to clear the current depth buffer.

Link copied to clipboard

Passed to getParameter to determine the current depth clear value.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Passed to getParameter to get the current depth function. Returns NEVER, ALWAYS, LESS, EQUAL, LEQUAL, GREATER, GEQUAL, or NOTEQUAL.

Link copied to clipboard

Passed to getParameter to return a length-2 array of floats giving the current depth range.

Link copied to clipboard
Link copied to clipboard

Passed to enable/disable to turn on/off the depth test. Can also be used with getParameter to query the depth test.

Link copied to clipboard

Passed to getParameter to determine if the depth write mask is enabled.

Link copied to clipboard

Passed to enable/disable to turn on/off dithering. Can also be used with getParameter to find the current dithering method.

Link copied to clipboard

There is no preference for this behavior.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Passed to blendFunc or blendFuncSeparate to multiply a component by the destination's alpha.

Link copied to clipboard

Passed to blendFunc or blendFuncSeparate to multiply a component by the destination's color.

Link copied to clipboard
Link copied to clipboard

Passed to bufferData as a hint about whether the contents of the buffer are likely to be used often and change often.

Link copied to clipboard
Link copied to clipboard

Passed to bindBuffer or bufferData to specify the type of buffer being used.

Link copied to clipboard

Passed to getParameter to get the current element array buffer.

Link copied to clipboard

Passed to depthFunction or stencilFunction to specify depth or stencil tests will pass if the new depth value is equals to the stored value.

Link copied to clipboard

The most efficient behavior should be used.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Passed to createShader to define a fragment shader.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Passed to cullFace to specify that only front faces should be culled.

Link copied to clipboard

Passed to cullFace to specify that front and back faces should be culled.

Link copied to clipboard

Passed to getParameter to determine the current value of frontFace. Should return CW or CCW.

Link copied to clipboard

Passed to blendEquation or blendEquationSeparate to set an addition blend function.

Link copied to clipboard

Passed to blendEquation or blendEquationSeparate to specify a reverse subtraction blend function (destination - source).

Link copied to clipboard

Passed to blendEquation or blendEquationSeparate to specify a subtraction blend function (source - destination).

Link copied to clipboard

Hint for the quality of filtering when generating mipmap images with WebGLRenderingContext.generateMipmap.

Link copied to clipboard

Passed to depthFunction or stencilFunction to specify depth or stencil tests will pass if the new depth value is greater than or equal to the stored value.

Link copied to clipboard

Passed to depthFunction or stencilFunction to specify depth or stencil tests will pass if the new depth value is greater than the stored value.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Returned from getError.

Link copied to clipboard
Link copied to clipboard

Returned from getError.

Link copied to clipboard

Returned from getError.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Passed to depthFunction or stencilFunction to specify depth or stencil tests will pass if the new depth value is less than or equal to the stored value.

Link copied to clipboard

Passed to depthFunction or stencilFunction to specify depth or stencil tests will pass if the new depth value is less than the stored value.

Link copied to clipboard

Passed to drawElements or drawArrays to draw lines. Each set of two vertices is treated as a separate line segment.

Link copied to clipboard

Passed to drawElements or drawArrays to draw a connected group of line segments from the first vertex to the last.

Link copied to clipboard

Passed to getParameter to get the current lineWidth (set by the lineWidth method).

Link copied to clipboard
Link copied to clipboard

Passed to drawElements or drawArrays to draw lines. Each vertex connects to the one after it.

Link copied to clipboard

Passed to getProgramParameter after calling linkProgram to determine if a program was linked correctly. Returns false if there were errors. Use getProgramInfoLog to find the exact error.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Implementation-dependent number of maximum texture units. At least 8.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The maximum number of entries possible in the vertex attribute list.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Passed to depthFunction or stencilFunction to specify depth or stencil tests will never pass, i.e., nothing will be drawn.

Link copied to clipboard

The most correct or the highest quality option should be used.

Link copied to clipboard

Returned from getError.

Link copied to clipboard
Link copied to clipboard

Passed to depthFunction or stencilFunction to specify depth or stencil tests will pass if the new depth value is not equal to the stored value.

Link copied to clipboard
Link copied to clipboard
val ONE: GLenum

Passed to blendFunc or blendFuncSeparate to turn on a component.

Link copied to clipboard

Passed to blendFunc or blendFuncSeparate to specify one minus a constant alpha blend function.

Link copied to clipboard

Passed to blendFunc or blendFuncSeparate to specify one minus a constant color blend function.

Link copied to clipboard

Passed to blendFunc or blendFuncSeparate to multiply a component by one minus the destination's alpha.

Link copied to clipboard

Passed to blendFunc or blendFuncSeparate to multiply a component by one minus the destination's color.

Link copied to clipboard

Passed to blendFunc or blendFuncSeparate to multiply a component by one minus the source's alpha.

Link copied to clipboard

Passed to blendFunc or blendFuncSeparate to multiply a component by one minus the source element's color.

Link copied to clipboard

Returned from getError.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Passed to drawElements or drawArrays to draw single points.

Link copied to clipboard

Passed to enable/disable to turn on/off the polygon offset. Useful for rendering hidden-line images, decals, and solids with highlighted edges. Can also be used with getParameter to query the scissor test.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Passed to enable/disable to turn on/off the alpha to coverage. Used in multi-sampling alpha channels.

Link copied to clipboard
Link copied to clipboard

Passed to enable/disable to turn on/off the sample coverage. Used in multi-sampling.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Returns an js.typedarrays.Int32Array` with four elements for the current scissor box dimensions.

Link copied to clipboard

Passed to enable/disable to turn on/off the scissor test. Can also be used with getParameter to query the scissor test.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Passed to blendFunc or blendFuncSeparate to multiply a component by the source's alpha.

Link copied to clipboard

Passed to blendFunc or blendFuncSeparate to multiply a component by the minimum of source's alpha or one minus the destination's alpha.

Link copied to clipboard

Passed to blendFunc or blendFuncSeparate to multiply a component by the source element's color.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Passed to bufferData as a hint about whether the contents of the buffer are likely to be used often and not change often.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Passed to clear to clear the current stencil buffer.

Link copied to clipboard

Passed to getParameter to get the value the stencil will be cleared to.

Link copied to clipboard

Passed to getParameter to get the current stencil fail function. Should return KEEP, REPLACE, INCR, DECR, INVERT, INCR_WRAP, or DECR_WRAP.

Link copied to clipboard

Passed to getParameter to get the current stencil function. Returns NEVER, ALWAYS, LESS, EQUAL, LEQUAL, GREATER, GEQUAL, or NOTEQUAL.

Link copied to clipboard
Link copied to clipboard

Passed to getParameter to get the current stencil fail function should the depth buffer test fail. Should return KEEP, REPLACE, INCR, DECR, INVERT, INCR_WRAP, or DECR_WRAP.

Link copied to clipboard

Passed to getParameter to get the current stencil fail function should the depth buffer test pass. Should return KEEP, REPLACE, INCR, DECR, INVERT, INCR_WRAP, or DECR_WRAP.

Link copied to clipboard

Passed to getParameter to get the reference value used for stencil tests.

Link copied to clipboard

Passed to enable/disable to turn on/off the stencil test. Can also be used with getParameter to query the stencil test.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Passed to bufferData as a hint about whether the contents of the buffer are likely to not be used often.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

A texture unit.

Link copied to clipboard

A texture unit.

Link copied to clipboard

A texture unit.

Link copied to clipboard

A texture unit.

Link copied to clipboard

A texture unit.

Link copied to clipboard

A texture unit.

Link copied to clipboard

A texture unit.

Link copied to clipboard

A texture unit.

Link copied to clipboard

A texture unit.

Link copied to clipboard

A texture unit.

Link copied to clipboard

A texture unit.

Link copied to clipboard

A texture unit.

Link copied to clipboard

A texture unit.

Link copied to clipboard

A texture unit.

Link copied to clipboard

A texture unit.

Link copied to clipboard

A texture unit.

Link copied to clipboard

A texture unit.

Link copied to clipboard

A texture unit.

Link copied to clipboard

A texture unit.

Link copied to clipboard

A texture unit.

Link copied to clipboard

A texture unit.

Link copied to clipboard

A texture unit.

Link copied to clipboard

A texture unit.

Link copied to clipboard

A texture unit.

Link copied to clipboard

A texture unit.

Link copied to clipboard

A texture unit.

Link copied to clipboard

A texture unit.

Link copied to clipboard

A texture unit.

Link copied to clipboard

A texture unit.

Link copied to clipboard

A texture unit.

Link copied to clipboard

A texture unit.

Link copied to clipboard

A texture unit.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Passed to drawElements or drawArrays to draw a connected group of triangles. Each vertex connects to the previous and the first vertex in the fan.

Link copied to clipboard

Passed to drawElements or drawArrays to draw a connected group of triangles.

Link copied to clipboard

Passed to drawElements or drawArrays to draw triangles. Each set of three vertices creates a separate triangle.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Passed to getProgramParameter after calling validateProgram to determine if it is valid. Returns false if errors were found.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Passed to createShader to define a vertex shader

Link copied to clipboard

Returns an js.typedarrays.Int32Array` with four elements for the current viewport dimensions.

Link copied to clipboard
Link copied to clipboard

Passed to blendFunc or blendFuncSeparate to turn off a component.

Functions

Link copied to clipboard