O'Reilly logo

Pro Android Games, Second Edition by Vladimir Silva

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

Chapter 3

More Gaming Tricks with OpenGL and JNI

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

In this chapter, you will learn a neat trick to mix OpenGL code in Java and C. This is a key step in reusing large portions of OpenGL C code along with Java code, thus using the best features of each language for maximum savings in time and costs.

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 ...

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