ESProjection Activity

We have worked our way up to the final piece of the class diagram, the ESProjection Activity.

11 public class ESProjection
12        extends Activity
13 {
14     private GLSurfaceView GLView;
15 
16     @Override
17     public void onCreate(Bundle savedInstanceState)
18     {
19         super.onCreate(savedInstanceState);
20 
21         // Create a GLSurfaceView instance and set it
22         // as the ContentView for this Activity.
23         GLView = new MyGLSurfaceView(this);
24         setContentView(GLView);
25     }

Notes

Since this is an activity, we can deliver an intent to it and cause it to be started. We create the GLSurfaceView and set it as the view for this activity. Remember that GLSurfaceView creates a TriangleRenderer that uses OpenGL to draw to the screen.