Ocean
Loading...
Searching...
No Matches
jni/GLRendererView.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_RENDERER_VIEW_H
9
#define META_OCEAN_PLATFORM_ANDROID_APPLICATION_JNI_GL_RENDERER_VIEW_H
10
11
#include "
ocean/platform/android/application/jni/JNI.h
"
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
*/
23
extern
"C"
jboolean
Java_com_meta_ocean_platform_android_application_GLRendererView_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
*/
35
extern
"C"
jboolean
Java_com_meta_ocean_platform_android_application_GLRendererView_setBackgroundColor
(JNIEnv* env,
jobject
javaThis, jdouble red, jdouble green, jdouble blue);
36
37
/**
38
* Java native interface function to register the instance function for the corresponding native C++ class.
39
* @param env JNI environment
40
* @param javaThis JNI object
41
* @ingroup platformandroidapplicationjni
42
*/
43
extern
"C"
void
Java_com_meta_ocean_platform_android_application_GLRendererView_registerInstance
(JNIEnv* env,
jobject
javaThis);
44
45
#endif
// META_OCEAN_PLATFORM_ANDROID_APPLICATION_JNI_GL_RENDERER_VIEW_H
jobject
Java_com_meta_ocean_platform_android_application_GLRendererView_setFovX
jboolean Java_com_meta_ocean_platform_android_application_GLRendererView_setFovX(JNIEnv *env, jobject javaThis, jdouble angle)
Java native interface function to set or change the view's horizontal field of view.
Java_com_meta_ocean_platform_android_application_GLRendererView_setBackgroundColor
jboolean Java_com_meta_ocean_platform_android_application_GLRendererView_setBackgroundColor(JNIEnv *env, jobject javaThis, jdouble red, jdouble green, jdouble blue)
Java native interface function to set or change the view's background color.
Java_com_meta_ocean_platform_android_application_GLRendererView_registerInstance
void Java_com_meta_ocean_platform_android_application_GLRendererView_registerInstance(JNIEnv *env, jobject javaThis)
Java native interface function to register the instance function for the corresponding native C++ cla...
JNI.h
impl
ocean
platform
android
application
jni
GLRendererView.h
Generated on Thu Aug 21 2025 09:38:34 for Ocean by
1.9.8