|
|
il y a 8 ans | |
|---|---|---|
| .. | ||
| AndroidJNIIOSystem.cpp | il y a 8 ans | |
| CMakeLists.txt | il y a 11 ans | |
| README.md | il y a 10 ans | |
This module provides a fascade for the io-stream-access to files behind the android-asset-management within an Android native application.
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.
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);
importer->SetIOHandler(ioSystem);