add make_render_callback_fn to FilamentAndroid

This commit is contained in:
Nick Fisher
2023-10-01 16:19:04 +08:00
parent 0be2bce764
commit 47dfb3cec9

View File

@@ -7,7 +7,13 @@ extern "C" {
jobject surface,
JNIEnv* env
) {
return ANativeWindow_fromSurface(env, surface);
void* window = ANativeWindow_fromSurface(env, surface);
return window;
}
// this does nothing, but we need it for JNA to return the correct pointer
void* const make_render_callback_fn_pointer(void (*callback)(void*)) {
return (void* const)callback;
}
}