Skip to main content

GLDrawLoad

Callable

  • GLDrawLoad(_evt: Event, force2d?: boolean): void

  • 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).


    Parameters

    • _evt: Event

      Unused DOM event

    • optionalforce2d: boolean = false

      Whether to force a fallback to 2d mode

    Returns void

    • Nothing