SingularInversions / FaceGenBaseLibrary

A simple cross-platform C++17 library for developing computational 3D graphics applications.
MIT License
46 stars 25 forks source link

Android NDK package and read an assets file from C++ #5

Closed ab-cpp closed 6 years ago

ab-cpp commented 6 years ago

Modify our android example app to load in a file from the asset manager by:

  1. Adding a small text file to the assets folder (eg. "Hello from asset manager")
  2. Adding C++ code to: ~/android/fgbl/app/src/main/cpp/native-lib.cpp To load the file (via an istream from asset manager) and add it's contents to the output in the example. Using the latest version of Android Studio on Windows targeting NDK 21 with C++11, exceptions & RTTI.