MCPcopy Create free account
hub / github.com/SuperMap/iClient-JavaScript / supportWebGL2

Function supportWebGL2

src/openlayers/core/Util.js:294–297  ·  view source on GitHub ↗

* @function Util.supportWebGL2 * @description 是否支持 webgl2。 * @private

()

Source from the content-addressed store, hash-verified

292 * @private
293 */
294 supportWebGL2() {
295 const canvas = document.createElement('canvas');
296 return Boolean(canvas && canvas.getContext('webgl2'));
297 },
298
299 /**
300 * @function Util.isString

Callers

nothing calls this directly

Calls 2

createElementMethod · 0.80
getContextMethod · 0.45

Tested by

no test coverage detected