FunctionsGLDrawLoadGLDrawLoad CallableGLDrawLoad(_evt: Event, force2d?: boolean): voidSetup WebGL rendering This will create a drawing canvas and try to initialize it for GL rendering. In case of failure, or if the fallback is required, it will disable GL rendering entirely, switching back to the normal canvas-based rendering (see Drawing.js).Parameters_evt: EventUnused DOM eventoptionalforce2d: boolean = falseWhether to force a fallback to 2d modeReturns voidNothing
Setup WebGL rendering
This will create a drawing canvas and try to initialize it for GL rendering. In case of failure, or if the fallback is required, it will disable GL rendering entirely, switching back to the normal canvas-based rendering (see Drawing.js).