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

Get OpenGL – Build high performance graphics 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.