interim Android fixes

This commit is contained in:
Nick Fisher
2023-10-01 20:44:23 +08:00
parent 762f9abde0
commit cf5ab5848d
6 changed files with 101 additions and 50 deletions

View File

@@ -3,6 +3,8 @@
extern "C" {
#include "PolyvoxFilamentFFIApi.h"
void* get_native_window_from_surface(
jobject surface,
JNIEnv* env
@@ -12,8 +14,8 @@ extern "C" {
}
// 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;
FilamentRenderCallback make_render_callback_fn_pointer(FilamentRenderCallback callback) {
return callback;
}
}