@revideo/core / app / SharedWebGLContext
Class: SharedWebGLContext
Defined in: app/SharedWebGLContext.ts:47
Constructors
Constructor
new SharedWebGLContext(
logger):SharedWebGLContext
Defined in: app/SharedWebGLContext.ts:52
Parameters
logger
Returns
SharedWebGLContext
Methods
borrow()
borrow(
owner):WebGL2RenderingContext
Defined in: app/SharedWebGLContext.ts:54
Parameters
owner
WebGLContextOwner
Returns
WebGL2RenderingContext
dispose()
dispose():
void
Defined in: app/SharedWebGLContext.ts:68
Dispose the WebGL context to free up resources.
Returns
void
getProgram()
getProgram(
fragment,vertex):WebGLProgram|null
Defined in: app/SharedWebGLContext.ts:89
Parameters
fragment
string
vertex
string
Returns
WebGLProgram | null