SharedWebGLContext
class SharedWebGLContext
Constructors
constructor
public new SharedWebGLContextlogger: Logger: SharedWebGLContext
Parameters
Methods
borrow
public borrowowner: WebGLContextOwner: WebGL2RenderingContext
Parameters
owner: WebGLContextOwner
dispose
public dispose(): void
Dispose the WebGL context to free up resources.
getProgram
public getProgramfragment: stringvertex: string: nullWebGLProgram