
Porting Mobile Apps to We bGL
Ashraf Samy Hegab
4.1 Introduction
WebGL provides direct graphics hardware acceleration hooks into web browsers, al-
lowing for a richer application experience. This experience is now becoming compa-
rable with native applications. However, the development environment for creating
these new types of rich web apps using WebGL is different.
This chapter walks us through the aspects of porting a typical OpenGL mobile
app from Android and iOS to the web, covering steps from setting up your GL
context to drawing a textured button or handling the camera and controls to finally
debugging and maintaining your application.
This ch