#[repr(transparent)]
pub struct WebGlRenderingContext { /* private fields */ }
Expand description

The WebGLRenderingContext object

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

Implementations§

The bufferData() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The bufferData() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The bufferData() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The bufferData() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The bufferData() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The bufferSubData() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The bufferSubData() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The bufferSubData() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The bufferSubData() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The bufferSubData() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The bufferSubData() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The commit() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The compressedTexImage2D() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The compressedTexImage2D() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The compressedTexSubImage2D() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The compressedTexSubImage2D() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The readPixels() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The readPixels() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The texImage2D() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The texImage2D() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The texImage2D() method

MDN Documentation

This API requires the following crate features to be activated: ImageBitmap, WebGlRenderingContext

The texImage2D() method

MDN Documentation

This API requires the following crate features to be activated: ImageData, WebGlRenderingContext

The texImage2D() method

MDN Documentation

This API requires the following crate features to be activated: HtmlImageElement, WebGlRenderingContext

The texImage2D() method

MDN Documentation

This API requires the following crate features to be activated: HtmlCanvasElement, WebGlRenderingContext

The texImage2D() method

MDN Documentation

This API requires the following crate features to be activated: HtmlVideoElement, WebGlRenderingContext

The texSubImage2D() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The texSubImage2D() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The texSubImage2D() method

MDN Documentation

This API requires the following crate features to be activated: ImageBitmap, WebGlRenderingContext

The texSubImage2D() method

MDN Documentation

This API requires the following crate features to be activated: ImageData, WebGlRenderingContext

The texSubImage2D() method

MDN Documentation

This API requires the following crate features to be activated: HtmlImageElement, WebGlRenderingContext

The texSubImage2D() method

MDN Documentation

This API requires the following crate features to be activated: HtmlCanvasElement, WebGlRenderingContext

The texSubImage2D() method

MDN Documentation

This API requires the following crate features to be activated: HtmlVideoElement, WebGlRenderingContext

The uniform1fv() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext, WebGlUniformLocation

The uniform1iv() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext, WebGlUniformLocation

The uniform2fv() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext, WebGlUniformLocation

The uniform2iv() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext, WebGlUniformLocation

The uniform3fv() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext, WebGlUniformLocation

The uniform3iv() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext, WebGlUniformLocation

The uniform4fv() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext, WebGlUniformLocation

The uniform4iv() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext, WebGlUniformLocation

The uniformMatrix2fv() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext, WebGlUniformLocation

The uniformMatrix3fv() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext, WebGlUniformLocation

The uniformMatrix4fv() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext, WebGlUniformLocation

The activeTexture() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The attachShader() method

MDN Documentation

This API requires the following crate features to be activated: WebGlProgram, WebGlRenderingContext, WebGlShader

The bindAttribLocation() method

MDN Documentation

This API requires the following crate features to be activated: WebGlProgram, WebGlRenderingContext

The bindBuffer() method

MDN Documentation

This API requires the following crate features to be activated: WebGlBuffer, WebGlRenderingContext

The bindFramebuffer() method

MDN Documentation

This API requires the following crate features to be activated: WebGlFramebuffer, WebGlRenderingContext

The bindRenderbuffer() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderbuffer, WebGlRenderingContext

The bindTexture() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext, WebGlTexture

The blendColor() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The blendEquation() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The blendEquationSeparate() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The blendFunc() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The blendFuncSeparate() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The checkFramebufferStatus() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The clear() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The clearColor() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The clearDepth() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The clearStencil() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The colorMask() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The compileShader() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext, WebGlShader

The copyTexImage2D() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The copyTexSubImage2D() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The createBuffer() method

MDN Documentation

This API requires the following crate features to be activated: WebGlBuffer, WebGlRenderingContext

The createFramebuffer() method

MDN Documentation

This API requires the following crate features to be activated: WebGlFramebuffer, WebGlRenderingContext

The createProgram() method

MDN Documentation

This API requires the following crate features to be activated: WebGlProgram, WebGlRenderingContext

The createRenderbuffer() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderbuffer, WebGlRenderingContext

The createShader() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext, WebGlShader

The createTexture() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext, WebGlTexture

The cullFace() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The deleteBuffer() method

MDN Documentation

This API requires the following crate features to be activated: WebGlBuffer, WebGlRenderingContext

The deleteFramebuffer() method

MDN Documentation

This API requires the following crate features to be activated: WebGlFramebuffer, WebGlRenderingContext

The deleteProgram() method

MDN Documentation

This API requires the following crate features to be activated: WebGlProgram, WebGlRenderingContext

The deleteRenderbuffer() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderbuffer, WebGlRenderingContext

The deleteShader() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext, WebGlShader

The deleteTexture() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext, WebGlTexture

The depthFunc() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The depthMask() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The depthRange() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The detachShader() method

MDN Documentation

This API requires the following crate features to be activated: WebGlProgram, WebGlRenderingContext, WebGlShader

The disable() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The disableVertexAttribArray() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The drawArrays() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The drawElements() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The drawElements() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The enable() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The enableVertexAttribArray() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The finish() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The flush() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The framebufferRenderbuffer() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderbuffer, WebGlRenderingContext

The framebufferTexture2D() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext, WebGlTexture

The frontFace() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The generateMipmap() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The getActiveAttrib() method

MDN Documentation

This API requires the following crate features to be activated: WebGlActiveInfo, WebGlProgram, WebGlRenderingContext

The getActiveUniform() method

MDN Documentation

This API requires the following crate features to be activated: WebGlActiveInfo, WebGlProgram, WebGlRenderingContext

The getAttribLocation() method

MDN Documentation

This API requires the following crate features to be activated: WebGlProgram, WebGlRenderingContext

The getBufferParameter() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The getContextAttributes() method

MDN Documentation

This API requires the following crate features to be activated: WebGlContextAttributes, WebGlRenderingContext

The getError() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The getExtension() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The getFramebufferAttachmentParameter() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The getParameter() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The getProgramInfoLog() method

MDN Documentation

This API requires the following crate features to be activated: WebGlProgram, WebGlRenderingContext

The getProgramParameter() method

MDN Documentation

This API requires the following crate features to be activated: WebGlProgram, WebGlRenderingContext

The getRenderbufferParameter() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The getShaderInfoLog() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext, WebGlShader

The getShaderParameter() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext, WebGlShader

The getShaderPrecisionFormat() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext, WebGlShaderPrecisionFormat

The getShaderSource() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext, WebGlShader

The getTexParameter() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The getUniform() method

MDN Documentation

This API requires the following crate features to be activated: WebGlProgram, WebGlRenderingContext, WebGlUniformLocation

The getUniformLocation() method

MDN Documentation

This API requires the following crate features to be activated: WebGlProgram, WebGlRenderingContext, WebGlUniformLocation

The getVertexAttrib() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The getVertexAttribOffset() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The hint() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The isBuffer() method

MDN Documentation

This API requires the following crate features to be activated: WebGlBuffer, WebGlRenderingContext

The isContextLost() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The isEnabled() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The isFramebuffer() method

MDN Documentation

This API requires the following crate features to be activated: WebGlFramebuffer, WebGlRenderingContext

The isProgram() method

MDN Documentation

This API requires the following crate features to be activated: WebGlProgram, WebGlRenderingContext

The isRenderbuffer() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderbuffer, WebGlRenderingContext

The isShader() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext, WebGlShader

The isTexture() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext, WebGlTexture

The lineWidth() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The linkProgram() method

MDN Documentation

This API requires the following crate features to be activated: WebGlProgram, WebGlRenderingContext

The pixelStorei() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The polygonOffset() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The renderbufferStorage() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The sampleCoverage() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The scissor() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The shaderSource() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext, WebGlShader

The stencilFunc() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The stencilFuncSeparate() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The stencilMask() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The stencilMaskSeparate() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The stencilOp() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The stencilOpSeparate() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The texParameterf() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The texParameteri() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The uniform1f() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext, WebGlUniformLocation

The uniform1i() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext, WebGlUniformLocation

The uniform2f() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext, WebGlUniformLocation

The uniform2i() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext, WebGlUniformLocation

The uniform3f() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext, WebGlUniformLocation

The uniform3i() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext, WebGlUniformLocation

The uniform4f() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext, WebGlUniformLocation

The uniform4i() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext, WebGlUniformLocation

The useProgram() method

MDN Documentation

This API requires the following crate features to be activated: WebGlProgram, WebGlRenderingContext

The validateProgram() method

MDN Documentation

This API requires the following crate features to be activated: WebGlProgram, WebGlRenderingContext

The vertexAttrib1f() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The vertexAttrib1fv() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The vertexAttrib2f() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The vertexAttrib2fv() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The vertexAttrib3f() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The vertexAttrib3fv() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The vertexAttrib4f() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The vertexAttrib4fv() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The vertexAttribPointer() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The vertexAttribPointer() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The viewport() method

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The canvas getter

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The drawingBufferWidth getter

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

The drawingBufferHeight getter

MDN Documentation

This API requires the following crate features to be activated: WebGlRenderingContext

Trait Implementations§

Converts this type into a shared reference of the (usually inferred) input type.
Converts this type into a shared reference of the (usually inferred) input type.
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
The wasm ABI type that this converts from when coming back out from the ABI boundary. Read more
Recover a Self from Self::Abi. Read more
The wasm ABI type that this converts into when crossing the ABI boundary. Read more
Convert self into Self::Abi so that it can be sent across the wasm ABI boundary. Read more
The wasm ABI type that this converts into when crossing the ABI boundary. Read more
Convert self into Self::Abi so that it can be sent across the wasm ABI boundary. Read more
Performs a dynamic instanceof check to see whether the JsValue provided is an instance of this type. Read more
Performs a zero-cost unchecked conversion from a JsValue into an instance of Self Read more
Performs a zero-cost unchecked conversion from a &JsValue into an instance of &Self. Read more
Test whether this JS value is an instance of the type T. Read more
Performs a dynamic cast (checked at runtime) of this value into the target type T. Read more
Performs a dynamic cast (checked at runtime) of this value into the target type T. Read more
Performs a zero-cost unchecked cast into the specified type. Read more
Performs a zero-cost unchecked cast into a reference to the specified type. Read more
Tests whether the argument is a “none” instance. If so it will be deserialized as None, and otherwise it will be passed to FromWasmAbi. Read more
Returns an ABI instance indicating “none”, which JS will interpret as the None branch of this option. Read more
Returns an ABI instance indicating “none”, which JS will interpret as the None branch of this option. Read more
The wasm ABI type references to Self are recovered from.
The type that holds the reference to Self for the duration of the invocation of the function that has an &Self parameter. This is required to ensure that the lifetimes don’t persist beyond one function call, and so that they remain anonymous. Read more
Recover a Self::Anchor from Self::Abi. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Same as IntoWasmAbi::Abi
Same as IntoWasmAbi::into_abi, except that it may throw and never return in the case of Err. Read more
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.