topical media & game development

talk show tell print

mobile-query-three-plugins-test2-index.htm / htm



  <!doctype html>
  <script src='zwhttp://benvanik.github.com/WebGL-Inspector/core/embed.js'></script>
  <body><script>
          // This is from Detector.js
          // see github.com/mrdoob/three.js/blob/master/examples/js/Detector.js#L9
          // It will display 
          //  gotFunction true
          //  gotContext false 
          //
          // So no context, aka WebGL not available... 
          // remove webgl inspector embed.js and webgl is available
  
          var gotFunction        = !! window.WebGLRenderingContext;
          console.log('gotFunction', gotFunction)
  
          var gotContext        = !! document.createElement( 'canvas' ).getContext( 'experimental-webgl' );
          console.log('gotContext', gotContext)
  </script></body>


(C) Æliens 04/09/2009

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.