integrate RMLUI library
This commit is contained in:
@@ -6,9 +6,11 @@
|
||||
#include <aidl/com/omixlab/mosis/BnMosisListener.h>
|
||||
#include "logger.h"
|
||||
#include "kernel.h"
|
||||
#include "assets_manager.h"
|
||||
#include <glad/egl.h>
|
||||
#include <glad/gles2.h>
|
||||
#include <thread>
|
||||
#include <android/asset_manager_jni.h>
|
||||
|
||||
using namespace aidl::com::omixlab::mosis;
|
||||
using namespace aidl::android::hardware;
|
||||
@@ -58,3 +60,11 @@ Java_com_omixlab_mosis_NativeService_getBinderNative(JNIEnv *env, jobject thiz)
|
||||
static std::shared_ptr<NativeService> g_service = ndk::SharedRefBase::make<NativeService>();
|
||||
return AIBinder_toJavaBinder(env, g_service->asBinder().get());
|
||||
}
|
||||
|
||||
extern "C"
|
||||
JNIEXPORT void JNICALL
|
||||
Java_com_omixlab_mosis_NativeService_setAssetManager(JNIEnv *env, jobject thiz,
|
||||
jobject asset_manager)
|
||||
{
|
||||
AssetsManager::Init(AAssetManager_fromJava(env, asset_manager));
|
||||
}
|
||||
Reference in New Issue
Block a user