O'Reilly logo

OpenGL ES 3.0 Cookbook by Parminder Singh

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Implementing touch events

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.

Getting ready

The GLSurfaceView class in Android and GLKViewController in iOS provide the necessary APIs to implement touch events. These APIs report the nature ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required