Skip to main content

ContextWebGL

@3dverse/livelink v0.8.10


@3dverse/livelink / ContextWebGL

Class: ContextWebGL

Defined in: livelink.js/sources/rendering/contexts/ContextWebGL.ts:11

Extends

Constructors

new ContextWebGL()

new ContextWebGL(canvas, version, context_attributes?): ContextWebGL

Defined in: livelink.js/sources/rendering/contexts/ContextWebGL.ts:54

Parameters

canvas

Canvas

version

"webgl" | "webgl2"

context_attributes?

WebGLContextAttributes & object

Returns

ContextWebGL

Overrides

ContextProvider.constructor

Accessors

native

Get Signature

get native(): WebGLRenderingContext | WebGL2RenderingContext

Defined in: livelink.js/sources/rendering/contexts/ContextWebGL.ts:40

Returns

WebGLRenderingContext | WebGL2RenderingContext


frame_buffer

Set Signature

set frame_buffer(fb): void

Defined in: livelink.js/sources/rendering/contexts/ContextWebGL.ts:47

Parameters
fb

WebGLFramebuffer

Returns

void

Methods

drawFrame()

drawFrame(__namedParameters): void

Defined in: livelink.js/sources/rendering/contexts/ContextWebGL.ts:77

Parameters

__namedParameters
frame

OffscreenCanvas | VideoFrame

left

number

top

number

Returns

void

Overrides

ContextProvider.drawFrame


refreshSize()

refreshSize(): void

Defined in: livelink.js/sources/rendering/contexts/ContextWebGL.ts:104

Returns

void

Overrides

ContextProvider.refreshSize


release()

release(): void

Defined in: livelink.js/sources/rendering/contexts/ContextWebGL.ts:111

Returns

void

Overrides

ContextProvider.release