Chapter 9

Using WebGL

WebGL is a very promising initiative that has already conquered most of the desktop browser world. WebGL is an API that exposes the resources of the graphics card to your JavaScript application. With WebGL, you can create a 3D game and run it in the browser without having to implement all the 3D math yourself, as we did in Chapter 8. WebGL is based on OpenGL ES 2.0 (OpenGL for Embedded Systems, a subset of the OpenGL API suitable for mobile devices).

WebGL is only making its first steps in mobile web. It is not yet widely supported by Android devices. In fact, only Firefox Mobile supports this important API for game developers. The other early birds are Sony Ericsson Xperia phones—they also support WebGL in the native browser. ...

Get Pro Android Web Game Apps: Using HTML5, CSS3 and JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.