aboutsummaryrefslogtreecommitdiff
path: root/NvCloth/samples/external/assimp-4.1.0/port/AndroidJNI/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'NvCloth/samples/external/assimp-4.1.0/port/AndroidJNI/README.md')
-rw-r--r--NvCloth/samples/external/assimp-4.1.0/port/AndroidJNI/README.md25
1 files changed, 25 insertions, 0 deletions
diff --git a/NvCloth/samples/external/assimp-4.1.0/port/AndroidJNI/README.md b/NvCloth/samples/external/assimp-4.1.0/port/AndroidJNI/README.md
new file mode 100644
index 0000000..570ca4f
--- /dev/null
+++ b/NvCloth/samples/external/assimp-4.1.0/port/AndroidJNI/README.md
@@ -0,0 +1,25 @@
+Build Asset Importer Lib for Android
+====================================
+This module provides a fascade 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:
+```cpp
+#include <assimp/port/AndroidJNI/AndroidJNIIOSystem.h>
+
+Assimp::Importer* importer = new Assimp::Importer();
+Assimp::AndroidJNIIOSystem* ioSystem = new Assimp::AndroidJNIIOSystem(app->activity);
+importer->SetIOHandler(ioSystem);
+```