Provides the getContext
method which is a wrapper around the method that returns the native context for a 3D canvas. Also has the code to add PhiloGL.hasWebGL()
that returns a boolean whether the current browser supports WebGL or not.
Returns a WebGL context. Tries to get the context via experimental-webgl
or just plain webgl
if the first one fails.
var gl = PhiloGL.WebGL.getContext(canvas[, options]);
console.log
-ged and errors thrown to the console.