topical media & game development
mobile-query-three-plugins-statsplus-examples-testwebglinspector.htm / htm
<!doctype html>
<script src='http://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
//
// 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.