Add JNI bindings for RenderTarget.

New Kotlin sample app is forthcoming.
This commit is contained in:
Philip Rideout
2019-06-11 12:48:30 -07:00
parent 9c4fecb5c6
commit 1139209551
8 changed files with 260 additions and 0 deletions

View File

@@ -94,6 +94,13 @@ Java_com_google_android_filament_View_nSetShadowsEnabled(JNIEnv*, jclass,
view->setShadowsEnabled(enabled);
}
extern "C" JNIEXPORT void JNICALL
Java_com_google_android_filament_View_nSetRenderTarget(JNIEnv*, jclass,
jlong nativeView, jlong nativeTarget) {
View* view = (View*) nativeView;
view->setRenderTarget((RenderTarget*) nativeTarget);
}
extern "C" JNIEXPORT void JNICALL
Java_com_google_android_filament_View_nSetSampleCount(JNIEnv*, jclass,
jlong nativeView, jint count) {