Doc: use markup format for android build instructions.
parent
59ece7b9fa
commit
72d720ecfb
|
@ -1,11 +1,11 @@
|
|||
--- Description ---
|
||||
|
||||
This module provides a facade to io stream access to files
|
||||
behind android asset manager within Android native application.
|
||||
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 ---
|
||||
### Building ###
|
||||
|
||||
To use this module please provide following cmake defines:
|
||||
|
||||
|
@ -14,14 +14,14 @@ To use this module please provide following cmake defines:
|
|||
|
||||
"SOME_PATH" is a path to your cmake android toolchain script.
|
||||
|
||||
--- Code ---
|
||||
### 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);
|
||||
|
||||
...
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue