Add JNI bindings for gltfio camera (#2693)

This commit is contained in:
Ben Doherty
2020-06-16 15:24:24 -07:00
committed by GitHub
parent f462eafed0
commit 94776a01b3
8 changed files with 142 additions and 1 deletions

View File

@@ -135,6 +135,14 @@ Java_com_google_android_filament_Engine_nCreateCameraWithEntity(JNIEnv*, jclass,
return (jlong) engine->createCamera(entity);
}
extern "C" JNIEXPORT jlong JNICALL
Java_com_google_android_filament_Engine_nGetCameraComponent(JNIEnv*, jclass,
jlong nativeEngine, jint entity_) {
Engine* engine = (Engine*) nativeEngine;
Entity& entity = *reinterpret_cast<Entity*>(&entity_);
return (jlong) engine->getCameraComponent(entity);
}
extern "C" JNIEXPORT void JNICALL
Java_com_google_android_filament_Engine_nDestroyCamera(JNIEnv*, jclass,
jlong nativeEngine, jlong nativeCamera) {