I'm trying to call OpenGL ES 2 functions in some native C++ code for an Android app, built through Android Studio with Gradle.
However, I get linker errors when calling any single OpenGL function, and haven't had much luck figuring out why.
It feels like it should be something as simple as configuring Gradle in some way, but its just not clear how to do so (especially since I have near to no experience with Gradle).
I've created an incredibly simple test case for my problem at the following Github location: https://github.com/NeoSouldier/GLESTest.
Open the project with Android Studio and you will see the code which is failing to link in the "native-lib.cpp" file.
If anyone is able to get this building/linking correctly then please let me know what I'm missing!
Thanks!