Creating an interactive 3D custom view

In Chapter 5, Introducing 3D Custom Views, we saw how to create a very simple rotating cube using OpenGL ES. Starting from that example and by just adding a way to react to user interactions, we can create the foundations of a more complex and interactive custom view.