Update README.md

Update doc.
This commit is contained in:
Kim Kulling 2019-01-27 21:11:52 +01:00 committed by GitHub
parent 6295e4dbc4
commit 2432abacc7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 4 deletions

View File

@ -1,7 +1,7 @@
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.
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.
@ -20,6 +20,8 @@ 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);
Assimp::AndroidJNIIOSystem *ioSystem = new Assimp::AndroidJNIIOSystem(app->activity);
if ( nullptr != iosSystem ) {
importer->SetIOHandler(ioSystem);
}
```