Add Engine::getBackend, fix gltf_viewer + Vulkan.

This commit is contained in:
Philip Rideout
2019-03-14 09:40:04 -07:00
parent e3e7073f74
commit 06850cf934
5 changed files with 35 additions and 0 deletions

View File

@@ -44,6 +44,13 @@ extern "C" {
extern void *getNativeWindow(JNIEnv *env, jclass, jobject surface);
}
extern "C" JNIEXPORT jlong JNICALL
Java_com_google_android_filament_Engine_nGetBackend(JNIEnv* env,
jclass klass, jlong nativeEngine) {
Engine* engine = (Engine*) nativeEngine;
return (jlong) engine->getBackend();
}
extern "C" JNIEXPORT jlong JNICALL
Java_com_google_android_filament_Engine_nCreateSwapChain(JNIEnv* env,
jclass klass, jlong nativeEngine, jobject surface, jlong flags) {