assimp/port/AndroidJNI
Marc-Antoine Lortie 4e7e47bd43 Updated copyright dates.
Changed copyright end year to 2020 in every reference "Copyright (c) 2006-XXXX, assimp team".

Changed copyright end year to 2020 in every reference "Copyright (c) 2006-XXXX, ASSIMP Development Team".

Changed copyright end year to 2020 in LICENCE.rtf.

Changed copyright end year in CMakeFiles.txt files and any other places referencing Assimp with a copyright start and end year.
2020-01-20 08:53:12 -05:00
..
AndroidJNIIOSystem.cpp Updated copyright dates. 2020-01-20 08:53:12 -05:00
CMakeLists.txt Android JNI asset extraction support (API 9+) 2014-10-07 16:33:43 +02:00
README.md Fix typo on README.md 2019-04-14 10:13:32 -07:00

README.md

Build Asset Importer Lib for Android

This module provides a facade for the io-stream-access to files behind the android-asset-management within an Android-native application.

  • It is built as a static library
  • It requires Android NDK with android API > 9 support.

Building

To use this module please provide following cmake defines:

-DASSIMP_ANDROID_JNIIOSYSTEM=ON
-DCMAKE_TOOLCHAIN_FILE=$SOME_PATH/android.toolchain.cmake

"SOME_PATH" is a path to your cmake android toolchain script.

Code

A small example how to wrap assimp for Android:

#include <assimp/port/AndroidJNI/AndroidJNIIOSystem.h>

Assimp::Importer* importer = new Assimp::Importer();
Assimp::AndroidJNIIOSystem *ioSystem = new Assimp::AndroidJNIIOSystem(app->activity);
if ( nullptr != iosSystem ) {
  importer->SetIOHandler(ioSystem);
}