ContextWebGL
@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
version
"webgl"
| "webgl2"
context_attributes?
WebGLContextAttributes
& object
Returns
Overrides
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
refreshSize()
refreshSize():
void
Defined in: livelink.js/sources/rendering/contexts/ContextWebGL.ts:104
Returns
void
Overrides
release()
release():
void
Defined in: livelink.js/sources/rendering/contexts/ContextWebGL.ts:111
Returns
void