Android build doc: reformatting.
parent
219bf32efe
commit
b77228c7ea
|
@ -6,16 +6,15 @@ android-asset-management within an Android native application.
|
|||
- 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>
|
||||
|
@ -23,5 +22,4 @@ A small example how to wrap assimp for Android:
|
|||
Assimp::Importer* importer = new Assimp::Importer();
|
||||
Assimp::AndroidJNIIOSystem* ioSystem = new Assimp::AndroidJNIIOSystem(app->activity);
|
||||
importer->SetIOHandler(ioSystem);
|
||||
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue