You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-15 13:51:40 +00:00
Add cursor shape support for the Android platform
This commit is contained in:
@@ -38,6 +38,7 @@
|
||||
#include <jni.h>
|
||||
|
||||
#include "core/list.h"
|
||||
#include "java_godot_view_wrapper.h"
|
||||
#include "string_android.h"
|
||||
|
||||
// Class that makes functions in java/src/org/godotengine/godot/Godot.java callable from C++
|
||||
@@ -48,6 +49,8 @@ private:
|
||||
jclass godot_class;
|
||||
jclass activity_class;
|
||||
|
||||
GodotJavaViewWrapper *godot_view = nullptr;
|
||||
|
||||
jmethodID _on_video_init = nullptr;
|
||||
jmethodID _create_offscreen_gl = nullptr;
|
||||
jmethodID _destroy_offscreen_gl = nullptr;
|
||||
@@ -72,6 +75,7 @@ private:
|
||||
jmethodID _on_godot_main_loop_started = nullptr;
|
||||
jmethodID _get_class_loader = nullptr;
|
||||
jmethodID _create_new_godot_instance = nullptr;
|
||||
jmethodID _get_render_view = nullptr;
|
||||
|
||||
public:
|
||||
GodotJavaWrapper(JNIEnv *p_env, jobject p_activity, jobject p_godot_instance);
|
||||
@@ -81,6 +85,7 @@ public:
|
||||
jobject get_member_object(const char *p_name, const char *p_class, JNIEnv *p_env = NULL);
|
||||
|
||||
jobject get_class_loader();
|
||||
GodotJavaViewWrapper *get_godot_view();
|
||||
|
||||
bool create_offscreen_gl(JNIEnv *p_env);
|
||||
void destroy_offscreen_gl(JNIEnv *p_env);
|
||||
|
||||
Reference in New Issue
Block a user