Class Diagram For Our Android Application

Notes

Java allows, indeed requires, a more advanced structure to the code. Here we see the class structure for the example we are working through.

ESProjection extends Activity, so execution starts with its onCreate method, which we will look at in detail later.

Things get really interesting with the MyGLSurfaceView class. This extends SurfaceView, so we know it provides a surface we can draw on. This is a similar role to the canvas in WebGL. Further GLSurfaceView has its own inner interface, Renderer. As you can tell from the name, the renderer does all of the actual drawing to the GLSurfaceView.