mozilla

Compare Revisions

Getting started with WebGL

Change Revisions

Revision 37473:

Revision 37473 by krabsatt on

Revision 37474:

Revision 37474 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 37473
Revision 37474
n14      <a class=" external" href="http://www.khronos.org/webgl/" tn14      <a class="external" href="http://www.khronos.org/webgl/" ti
>itle="http://www.khronos.org/webgl/">WebGL</a> enables web conten>tle="http://www.khronos.org/webgl/">WebGL</a> enables web content
>t to use an API&nbsp;based on <a class=" external" href="http://w> to use an API&nbsp;based on <a class="external" href="http://www
>ww.khronos.org/opengles/" title="http://www.khronos.org/opengles/>.khronos.org/opengles/" title="http://www.khronos.org/opengles/">
>">OpenGL&nbsp;ES</a> 2.0 to perform 3D rendering in an HTML&nbsp;>OpenGL&nbsp;ES</a> 2.0 to perform 3D rendering in an HTML&nbsp;<a
><a href="/en/HTML/Canvas" title="en/HTML/Canvas"><code>canvas</co> href="/en/HTML/Canvas" title="en/HTML/Canvas"><code>canvas</code
>de></a> in browsers that support it.>></a> in browsers that support it.
nn80    //Try to grab the standard context
80    gl = canvas.getContext("experimental-webgl");81    gl = canvas.getContext("webgl");
nn84    //Try to grab the experimental context
85    gl = canvas.getContext("experimental-webgl");
t86  t

Back to History