uupaa.webgldetector.js

0.1.2 • Public • Published

WebGLDetector.js Build Status

npm

Detect WebGL.

This module made of WebModule.

Documentation

Browser, NW.js and Electron

<script src="<module-dir>/lib/WebModule.js"></script>
<script src="<module-dir>/lib/WebGLDetector.js"></script>
<script>
WebGLDetector.detect();
WebGLDetector.WEBGL_CONTEXT     // -> "wegbl"
WebGLDetector.WEBGL_VERSION     // -> "WebGL 1.0 (OpenGL ES 2.0 Chromium)"
WebGLDetector.WEBGL_VERNDOR     // -> "WebKit"
WebGLDetector.WEBGL_RENDERER    // -> "WebKit WebGL"
WebGLDetector.WEBGL_SL_VERSION  // -> "WebGL GLSL ES 1.0 (OpenGL ES GLSL ES 1.0 Chromium)"
WebGLDetector.MAX_TEXTURE_SIZE  // -> 16384
</script>

Readme

Keywords

Package Sidebar

Install

npm i uupaa.webgldetector.js

Weekly Downloads

107

Version

0.1.2

License

MIT

Last publish

Collaborators

  • uupaa