Compare Revisions

Getting started with WebGL

Revision 37474:

Revision 37474 by arnaudbrousseau on

Revision 37475:

Revision 37475 by arnaudbrousseau on

Title:
Getting started with WebGL
Getting started with WebGL
Slug:
WebGL/Getting_started_with_WebGL
WebGL/Getting_started_with_WebGL
Tags:
Canvas, WebGL
Canvas, WebGL
Content:

Revision 37474
Revision 37475
n80    //Try to grab the standard contextn80    //Try to grab the standard context. If it fails, fallback to 
 >experimental.
nn82    if(!gl) {
83      gl = canvas.getContext("experimental-webgl");
84    }
t83  catch(e) {t86  catch(e) {}
84    //Try to grab the experimental context
85    gl = canvas.getContext("experimental-webgl");
86  }

Back to History