melonjs
    Preparing search index...

    Function isWebGLSupported

    • returns true if the device supports WebGL

      Parameters

      • Optionaloptions: { failIfMajorPerformanceCaveat?: boolean }

        context creation options

        • OptionalfailIfMajorPerformanceCaveat?: boolean

          If true, the renderer will switch to CANVAS mode if the performances of a WebGL context would be dramatically lower than that of a native application making equivalent OpenGL calls.

      Returns boolean

      true if WebGL is supported

      device