Ocean
Loading...
Searching...
No Matches
jni/GLFrameView.h
Go to the documentation of this file.
1/*
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 */
7
8#ifndef META_OCEAN_PLATFORM_ANDROID_APPLICATION_JNI_GL_FRAME_VIEW_H
9#define META_OCEAN_PLATFORM_ANDROID_APPLICATION_JNI_GL_FRAME_VIEW_H
10
12
13#include <jni.h>
14
15/**
16 * Java native interface function to set or change the view's horizontal field of view.
17 * @param env JNI environment
18 * @param javaThis JNI object
19 * @param angle New horizontal field of view in radian
20 * @return True, if succeeded
21 * @ingroup platformandroidapplicationjni
22 */
23extern "C" jboolean Java_com_meta_ocean_platform_android_application_GLFrameView_setFovX(JNIEnv* env, jobject javaThis, jdouble angle);
24
25/**
26 * Java native interface function to set or change the view's background color.
27 * @param env JNI environment
28 * @param javaThis JNI object
29 * @param red Red color value, with range [0.0, 1.0]
30 * @param green Green color value, with range [0.0, 1.0]
31 * @param blue Blue color value, with range [0.0, 1.0]
32 * @return True, if succeeded
33 * @ingroup platformandroidapplicationjni
34 */
35extern "C" jboolean Java_com_meta_ocean_platform_android_application_GLFrameView_setBackgroundColor(JNIEnv* env, jobject javaThis, jdouble red, jdouble green, jdouble blue);
36
37/**
38 * Java native interface function to set or change the view's background media object.
39 * @param env JNI environment
40 * @param javaThis JNI object
41 * @param url URL of the media object to be used as background medium
42 * @param 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
43 * @param preferredWidth Preferred width of the medium in pixel, use 0 to use the default width
44 * @param preferredHeight Preferred height of the medium in pixel, use 0 to use the default height
45 * @param adjustFov True, to adjust the view's field of view to the field of the background automatically
46 * @return True, if succeeded
47 * @ingroup platformandroidapplicationjni
48 */
49extern "C" jboolean Java_com_meta_ocean_platform_android_application_GLFrameView_setFrameMedium(JNIEnv* env, jobject javaThis, jstring url, jstring type, jint preferredWidth, jint preferredHeight, jboolean adjustFov);
50
51/**
52 * Java native interface function to register the instance function for the corresponding native C++ class.
53 * @param env JNI environment
54 * @param javaThis JNI object
55 * @ingroup platformandroidapplicationjni
56 */
58
59#endif // META_OCEAN_PLATFORM_ANDROID_APPLICATION_JNI_GL_FRAME_VIEW_H
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++ cla...
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.
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.
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.