O'Reilly logo

OpenGL Data Visualization Cookbook by William C. Y. Lo, Raymond C. H. Lo

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

Creating your first Android application with OpenGL ES 3.0

In this section, we will complete our implementation with native code in C/C++ to create the first Android application with OpenGL ES 3.0. As illustrated in the simplified class diagram, the Java code only provides the basic interface on the mobile device. Now, on the C/C++ side, we implement all the functionalities previously defined on the Java side and also include all the required libraries from OpenGL ES 3.0 (inside the main_simple.cpp file). The main_simple.cpp file also defines the key interface between the C/C++ and Java side by using the Java Native Interface (JNI):

Creating your first Android application with OpenGL ES 3.0

Getting ready ...

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