Skip to main content

SharedWebGLContext

class SharedWebGLContext 

Constructors

constructor

public new SharedWebGLContextlogger: Logger: SharedWebGLContext

Parameters

Methods

borrow

public borrowowner: WebGLContextOwner: WebGL2RenderingContext

Parameters


dispose

public dispose(): void

Dispose the WebGL context to free up resources.


getProgram

public getProgramfragment: stringvertex: string: nullWebGLProgram

Parameters