@mocanvas/editor · class

WebGL2Backend

declare class WebGL2Backend implements RenderBackend

This one ships without a description. The signature above is read from the package, and the guides cover the area it belongs to.


Methods · 6

constructor(canvas: HTMLCanvasElement, options?: {
deleteTexture(id: number): void
dispose(): void
draw(frame: FrameBuffers, camera: CameraState, options: DrawOptions): void
resize(width: number, height: number, dpr: number): void
uploadTexture(id: number, source: TextureSource, opts?: TextureOptions): void

Properties · 2

readonly canvas: HTMLCanvasElement
readonly kind: "webgl2"

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.