assimp/port/AndroidJNI
Brian Schwind bcb0ca3efa Include correct headers, fix string length bug
- AssimpPCH.h appears to have been removed in #536
- There was a bug where if your model data had a null terminator, AndroidJNIIOSystem would incorrectly calculate the number of bytes it needed to write to the file (since it reads a compressed file from the Android assets, and then writes it to the internalDataPath directory for later importing)
2015-07-20 22:21:17 -04:00
..
AndroidJNIIOSystem.cpp Include correct headers, fix string length bug 2015-07-20 22:21:17 -04:00
CMakeLists.txt Android JNI asset extraction support (API 9+) 2014-10-07 16:33:43 +02:00
README.txt Android JNI asset extraction support (API 9+) 2014-10-07 16:33:43 +02:00

README.txt

--- Description ---

This module provides a facade to io stream access to files
behind android asset manager within 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 ---

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

...

Assimp::Importer* importer = new Assimp::Importer();
Assimp::AndroidJNIIOSystem* ioSystem = new Assimp::AndroidJNIIOSystem(app->activity);
importer->SetIOHandler(ioSystem);

...