资源简介
开源的VR sdk
代码片段和文件信息
/*
* Copyright 2016 Google Inc. All rights reserved.
*
* Licensed under the Apache License Version 2.0 (the “License“);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing software
* distributed under the License is distributed on an “AS IS“ BASIS
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.vr.ndk.samples.controllerpaint;
import com.google.vr.ndk.base.AndroidCompat;
import com.google.vr.ndk.base.GvrLayout;
import android.app.Activity;
import android.content.res.AssetManager;
import android.opengl.GLSurfaceView;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.WindowManager;
import android.widget.TextView;
import javax.microedition.khronos.egl.EGLConfig;
import javax.microedition.khronos.opengles.GL10;
/**
* Main Activity.
*
* This is the main Activity for this demo app. It consists of a GLSurfaceView that is
* responsible for doing the rendering. We forward all of the interesting events to
* native code.
*/
public class MainActivity extends Activity {
private static final String TAG = “MainActivity“;
private static final String VR_MODE_PACKAGE = “com.google.vr.vrcore“;
private static final String VR_MODE_CLASS =
“com.google.vr.vrcore.common.VrCoreListenerService“;
static {
// Load our JNI code.
System.loadLibrary(“app_jni“);
}
private native void nativeOnCreate(AssetManager assetManager long gvrContextPtr);
private native void nativeOnResume();
private native void nativeOnPause();
private native void nativeOnSurfaceCreated();
private native void nativeOnSurfaceChanged(int width int height);
private native void nativeOnDrawframe();
private native void nativeOnDestroy();
private GvrLayout gvrLayout;
private GLSurfaceView surfaceView;
private TextView debugView;
private AssetManager assetManager;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setImmersiveSticky();
getWindow()
.getDecorView()
.setOnSystemUiVisibilityChangeListener(
new View.OnSystemUiVisibilityChangeListener() {
@Override
public void onSystemUiVisibilityChange(int visibility) {
if ((visibility & View.SYSTEM_UI_FLAG_FULLSCREEN) == 0) {
setImmersiveSticky();
}
}
});
// Enable VR mode if the device supports it.
AndroidCompat.setVrModeEnabled(this true);
// Get the GvrLayout.
gvrLayout = new GvrLayout(this);
// Enable scan line racing if possible.
if (gvrLayout.setAsyncReprojectionEnabled(true)) {
Log.d(TAG
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2016-08-08 16:37 gvr-android-sdk-master\
文件 157 2016-08-08 16:37 gvr-android-sdk-master\.gitignore
文件 10669 2016-08-08 16:37 gvr-android-sdk-master\LICENSE
文件 374875 2016-08-08 16:37 gvr-android-sdk-master\NOTICE
文件 199 2016-08-08 16:37 gvr-android-sdk-master\README.md
目录 0 2016-08-08 16:37 gvr-android-sdk-master\apks\
文件 3074591 2016-08-08 16:37 gvr-android-sdk-master\apks\controller_emulator.apk
目录 0 2016-08-08 16:37 gvr-android-sdk-master\assets\
文件 1333 2016-08-08 16:37 gvr-android-sdk-master\assets\README.md
目录 0 2016-08-08 16:37 gvr-android-sdk-master\assets\panoramas\
文件 307720 2016-08-08 16:37 gvr-android-sdk-master\assets\panoramas\testRoom1_2kMono.jpg
文件 474583 2016-08-08 16:37 gvr-android-sdk-master\assets\panoramas\testRoom1_2kStereo.jpg
目录 0 2016-08-08 16:37 gvr-android-sdk-master\assets\videos\
文件 528845 2016-08-08 16:37 gvr-android-sdk-master\assets\videos\testRoom1_1080Stereo.mp4
文件 466796 2016-08-08 16:37 gvr-android-sdk-master\assets\videos\testRoom1_1920Mono.mp4
文件 498 2016-08-08 16:37 gvr-android-sdk-master\build.gradle
目录 0 2016-08-08 16:37 gvr-android-sdk-master\gradle\
目录 0 2016-08-08 16:37 gvr-android-sdk-master\gradle\wrapper\
文件 53636 2016-08-08 16:37 gvr-android-sdk-master\gradle\wrapper\gradle-wrapper.jar
文件 231 2016-08-08 16:37 gvr-android-sdk-master\gradle\wrapper\gradle-wrapper.properties
文件 4971 2016-08-08 16:37 gvr-android-sdk-master\gradlew
文件 2314 2016-08-08 16:37 gvr-android-sdk-master\gradlew.bat
目录 0 2016-08-08 16:37 gvr-android-sdk-master\libraries\
目录 0 2016-08-08 16:37 gvr-android-sdk-master\libraries\audio\
文件 366607 2016-08-08 16:37 gvr-android-sdk-master\libraries\audio\audio.aar
文件 76 2016-08-08 16:37 gvr-android-sdk-master\libraries\audio\build.gradle
目录 0 2016-08-08 16:37 gvr-android-sdk-master\libraries\ba
文件 597001 2016-08-08 16:37 gvr-android-sdk-master\libraries\ba
文件 75 2016-08-08 16:37 gvr-android-sdk-master\libraries\ba
目录 0 2016-08-08 16:37 gvr-android-sdk-master\libraries\common\
文件 77 2016-08-08 16:37 gvr-android-sdk-master\libraries\common\build.gradle
............此处省略280个文件信息
- 上一篇:Volley网络请求封装
- 下一篇:Android手机间使用socket进行文件互传
相关资源
- ArcGIS Android API加载GoogleMap及自动离线
- 适合小米平板4的Google Play服务
- D:\\AndroidWorkplace\\GoogleGeofence.zip
- Google Maps Android API V2版本地图开发
- Google手机开发教程源码(附android开发
- GPS定位: Android 手机端,C#电脑端;G
- Google Android TTS Apk
- 华为P40安装谷歌框架2.3——google sto
- Google Play Billing Library
- com.google.android.maps.jar谷歌地图jar包
- Android Google play billing(Google play 内支
- googleBLEDemo功能进化版
- android增加串口驱动功能
- Google gson
- protobuf-java-2.6.0.jar
- com.google.gson.Gson4个jar包
- Java三种生成条形码的源码barcode4j、
-
eclipse-java-google-st
yle - Android 基于google Zxing实现二维码的生成
- Android googlemap
- google-common.jar
- android 美食天下源码 googlemap
- Google Android手机嵌入式系统的研究与开
- 根据GoogleMapApi给出地名获取经纬度,
- Google 推出的 Java 编码规范
- google地图jar包——maps.jar
- socketio-netty服务器推送jar包
- google common jar包
- java语言实现google的机器翻译模型
- google zxing生成二维码两个必备jar包
评论
共有 条评论