Chapter    3

More Gaming Tricks with OpenGL and JNI

Chapter 2 provided a solid introduction to some basic gaming techniques for Android, including handling audio/video and I/O events Now it’s time to ramp things up..

In this chapter, you will learn a neat trick using OpenGL code in Java. Any game developer knows that OpenGL is the Holy Grail of advanced game development. You won’t find any powerful games that are not written with this API, because it takes advantage of hardware acceleration, which is infinitely superior to any kind of software renderer.

OpenGL can be a scary subject to the newcomer due to its complexity. But you don’t have to be an OpenGL guru to understand what it does and how to draw elements with this API. All you need is ...

Get Pro Android Games, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.