pub struct WebSysWebGL2Surface {
    pub window: Window,
    pub document: Document,
    pub canvas: HtmlCanvasElement,
    /* private fields */
}
Expand description

web-sys surface for WebGL2.

Fields

window: Windowdocument: Documentcanvas: HtmlCanvasElement

Implementations

Create a new WebSysWebGL2Surface based on the name of the DOM canvas element named by canvas_name.

Create a new WebSysWebGL2Surface based on the name of the DOM canvas element named by canvas_name and pass along a list of parameters when creating the WebGL context.

Create a new WebSysWebGL2Surface based on a given HtmlCanvasElement.

Create a new WebSysWebGL2Surface based on a given HtmlCanvasElement and pass along a list of parameters when creating the WebGL context.

Get the back buffer.

Trait Implementations

Internal type used by the backend to cache, optimize and store data. This roughly represents the GPU data / context a backend implementation needs to work correctly. Read more

Access the underlying backend.

Access the query API.

Create a new pipeline gate

Create a new framebuffer. Read more

Create a new shader stage. Read more

Create a new shader program. Read more

Create a new shader data. Read more

Create a TessBuilder with deinterleaved memory. Read more

Create a new texture from texels. Read more

Create a new texture from raw texels. 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.

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.