Today's smartphones are capable of interacting with applications through gestures. These gestures are made on the surface of the touch-sensitive device screen. When the device senses these gesture inputs, it reports the touch events to the corresponding application handler. The application handler receives these events and filters them out, according to the application's requirement. In this recipe, we will implement the touch events using OpenGL ES 3.0 on iOS and Android platforms. You will learn to receive the events and handle them in a platform-independent way.
GLSurfaceView class in Android and
GLKViewController in iOS provide the necessary APIs to implement touch events. These APIs report the nature ...