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

@@ -236,6 +236,14 @@ Java_com_google_android_filament_Engine_nDestroyTexture(JNIEnv*, jclass,
engine->destroy(texture);
}
extern "C" JNIEXPORT void JNICALL
Java_com_google_android_filament_Engine_nDestroyRenderTarget(JNIEnv*, jclass,
jlong nativeEngine, jlong nativeTarget) {
Engine* engine = (Engine*) nativeEngine;
RenderTarget* target = (RenderTarget*) nativeTarget;
engine->destroy(target);
}
extern "C" JNIEXPORT void JNICALL
Java_com_google_android_filament_Engine_nDestroyEntity(JNIEnv*, jclass,
jlong nativeEngine, jint entity_) {