Ocean
|
The Ocean Android Platform Application Library provides JNI functionalities for applications on Android platforms. More...
Functions | |
jboolean | Java_com_meta_ocean_platform_android_application_GLFrameView_setFovX (JNIEnv *env, jobject javaThis, jdouble angle) |
Java native interface function to set or change the view's horizontal field of view. More... | |
jboolean | Java_com_meta_ocean_platform_android_application_GLFrameView_setBackgroundColor (JNIEnv *env, jobject javaThis, jdouble red, jdouble green, jdouble blue) |
Java native interface function to set or change the view's background color. More... | |
jboolean | Java_com_meta_ocean_platform_android_application_GLFrameView_setFrameMedium (JNIEnv *env, jobject javaThis, jstring url, jstring type, jint preferredWidth, jint preferredHeight, jboolean adjustFov) |
Java native interface function to set or change the view's background media object. More... | |
void | Java_com_meta_ocean_platform_android_application_GLFrameView_registerInstance (JNIEnv *env, jobject javaThis) |
Java native interface function to register the instance function for the corresponding native C++ class. More... | |
jboolean | Java_com_meta_ocean_platform_android_application_GLView_initialize (JNIEnv *env, jobject javaThis) |
Java native interface function to initialize the application view. More... | |
jboolean | Java_com_meta_ocean_platform_android_application_GLView_release (JNIEnv *env, jobject javaThis) |
Java native interface function to release the application view. More... | |
jboolean | Java_com_meta_ocean_platform_android_application_GLView_resize (JNIEnv *env, jobject javaThis, jint width, jint height) |
Java native interface function resizing the framebuffer. More... | |
jboolean | Java_com_meta_ocean_platform_android_application_GLView_render (JNIEnv *env, jobject javaThis) |
Java native interface function rendering the next frame. More... | |
void | Java_com_meta_ocean_platform_android_application_GLView_onTouchDown (JNIEnv *env, jobject javaThis, jfloat x, jfloat y) |
Java native interface function for touch down events. More... | |
void | Java_com_meta_ocean_platform_android_application_GLView_onTouchMove (JNIEnv *env, jobject javaThis, jfloat x, jfloat y) |
Java native interface function for (touch) move events. More... | |
void | Java_com_meta_ocean_platform_android_application_GLView_onTouchUp (JNIEnv *env, jobject javaThis, jfloat x, jfloat y) |
Java native interface function for touch up events. More... | |
void | Java_com_meta_ocean_platform_android_application_GLView_onActivityResume (JNIEnv *env, jobject javaThis) |
Java native interface function for resume events. More... | |
void | Java_com_meta_ocean_platform_android_application_GLView_onActivityPause (JNIEnv *env, jobject javaThis) |
Java native interface function for pause events. More... | |
void | Java_com_meta_ocean_platform_android_application_GLView_onActivityStop (JNIEnv *env, jobject javaThis) |
Java native interface function for stop events. More... | |
void | Java_com_meta_ocean_platform_android_application_GLView_onActivityDestroy (JNIEnv *env, jobject javaThis) |
Java native interface function for destroy events. More... | |
void | Java_com_meta_ocean_platform_android_application_GLView_onPermissionGranted (JNIEnv *env, jobject javaThis, jstring permission) |
Java native interface function for permission granted events. More... | |
void | Java_com_meta_ocean_platform_android_application_GLView_registerInstance (JNIEnv *env, jobject javaThis) |
Java native interface function to register the instance function for the corresponding native C++ class. More... | |
The Ocean Android Platform Application Library provides JNI functionalities for applications on Android platforms.
The library is available on Android platforms only.
void Java_com_meta_ocean_platform_android_application_GLFrameView_registerInstance | ( | JNIEnv * | env, |
jobject | javaThis | ||
) |
Java native interface function to register the instance function for the corresponding native C++ class.
env | JNI environment |
javaThis | JNI object |
jboolean Java_com_meta_ocean_platform_android_application_GLFrameView_setBackgroundColor | ( | JNIEnv * | env, |
jobject | javaThis, | ||
jdouble | red, | ||
jdouble | green, | ||
jdouble | blue | ||
) |
Java native interface function to set or change the view's background color.
env | JNI environment |
javaThis | JNI object |
red | Red color value, with range [0.0, 1.0] |
green | Green color value, with range [0.0, 1.0] |
blue | Blue color value, with range [0.0, 1.0] |
jboolean Java_com_meta_ocean_platform_android_application_GLFrameView_setFovX | ( | JNIEnv * | env, |
jobject | javaThis, | ||
jdouble | angle | ||
) |
Java native interface function to set or change the view's horizontal field of view.
env | JNI environment |
javaThis | JNI object |
angle | New horizontal field of view in radian |
jboolean Java_com_meta_ocean_platform_android_application_GLFrameView_setFrameMedium | ( | JNIEnv * | env, |
jobject | javaThis, | ||
jstring | url, | ||
jstring | type, | ||
jint | preferredWidth, | ||
jint | preferredHeight, | ||
jboolean | adjustFov | ||
) |
Java native interface function to set or change the view's background media object.
env | JNI environment |
javaThis | JNI object |
url | URL of the media object to be used as background medium |
type | Hint defining the media object in more detail, possible values are "LIVE_VIDEO", "IMAGE", "MOVIE", "IMAGE_SEQUENCE" or "FRAME_STREAM", if no hint is given the first possible media object will be created |
preferredWidth | Preferred width of the medium in pixel, use 0 to use the default width |
preferredHeight | Preferred height of the medium in pixel, use 0 to use the default height |
adjustFov | True, to adjust the view's field of view to the field of the background automatically |
jboolean Java_com_meta_ocean_platform_android_application_GLView_initialize | ( | JNIEnv * | env, |
jobject | javaThis | ||
) |
Java native interface function to initialize the application view.
env | JNI environment |
javaThis | JNI object |
void Java_com_meta_ocean_platform_android_application_GLView_onActivityDestroy | ( | JNIEnv * | env, |
jobject | javaThis | ||
) |
Java native interface function for destroy events.
env | JNI environment |
javaThis | JNI object |
void Java_com_meta_ocean_platform_android_application_GLView_onActivityPause | ( | JNIEnv * | env, |
jobject | javaThis | ||
) |
Java native interface function for pause events.
env | JNI environment |
javaThis | JNI object |
void Java_com_meta_ocean_platform_android_application_GLView_onActivityResume | ( | JNIEnv * | env, |
jobject | javaThis | ||
) |
Java native interface function for resume events.
env | JNI environment |
javaThis | JNI object |
void Java_com_meta_ocean_platform_android_application_GLView_onActivityStop | ( | JNIEnv * | env, |
jobject | javaThis | ||
) |
Java native interface function for stop events.
env | JNI environment |
javaThis | JNI object |
void Java_com_meta_ocean_platform_android_application_GLView_onPermissionGranted | ( | JNIEnv * | env, |
jobject | javaThis, | ||
jstring | permission | ||
) |
Java native interface function for permission granted events.
env | JNI environment |
javaThis | JNI object |
permission | The permission which has been granted |
void Java_com_meta_ocean_platform_android_application_GLView_onTouchDown | ( | JNIEnv * | env, |
jobject | javaThis, | ||
jfloat | x, | ||
jfloat | y | ||
) |
Java native interface function for touch down events.
env | JNI environment |
javaThis | JNI object |
x | Horizontal touch position in pixel |
y | Vertical touch position in pixel |
void Java_com_meta_ocean_platform_android_application_GLView_onTouchMove | ( | JNIEnv * | env, |
jobject | javaThis, | ||
jfloat | x, | ||
jfloat | y | ||
) |
Java native interface function for (touch) move events.
env | JNI environment |
javaThis | JNI object |
x | Horizontal (touch) move position in pixel |
y | Vertical (touch) move position in pixel |
void Java_com_meta_ocean_platform_android_application_GLView_onTouchUp | ( | JNIEnv * | env, |
jobject | javaThis, | ||
jfloat | x, | ||
jfloat | y | ||
) |
Java native interface function for touch up events.
env | JNI environment |
javaThis | JNI object |
x | Horizontal touch position in pixel |
y | Vertical touch position in pixel |
void Java_com_meta_ocean_platform_android_application_GLView_registerInstance | ( | JNIEnv * | env, |
jobject | javaThis | ||
) |
Java native interface function to register the instance function for the corresponding native C++ class.
env | JNI environment |
javaThis | JNI object |
jboolean Java_com_meta_ocean_platform_android_application_GLView_release | ( | JNIEnv * | env, |
jobject | javaThis | ||
) |
Java native interface function to release the application view.
env | JNI environment |
javaThis | JNI object |
jboolean Java_com_meta_ocean_platform_android_application_GLView_render | ( | JNIEnv * | env, |
jobject | javaThis | ||
) |
Java native interface function rendering the next frame.
env | JNI environment |
javaThis | JNI object |
jboolean Java_com_meta_ocean_platform_android_application_GLView_resize | ( | JNIEnv * | env, |
jobject | javaThis, | ||
jint | width, | ||
jint | height | ||
) |
Java native interface function resizing the framebuffer.
env | JNI environment |
javaThis | JNI object |
width | Horizontal window size position in pixel |
height | Vertical window size in pixel |