com.google.vr.sdk.base
名叫base的包,说明这是Google VR API的基础
接口
GvrView.Renderer
Interface for renderers who need to handle all the stereo rendering details by themselves.
(用于自己处理立体渲染操作细节的类的接口)
GvrView.StereoRenderer
Interface for renderers that delegate all stereoscopic rendering details to the view.
(用于把立体渲染操作细节交给VIEW代为处理的类的接口)
类
GvrActivity
Base activity that provides easy integration with GVR headsets.
(基础的Activity,用来与GVR眼镜盒子简单集成)
GvrView
A View that supports VR rendering.
(支持VR渲染的View类)
AndroidCompat
Utility class for using VR-related features that may not be available with all Android versions.
(用于使用VR相关功能的实用程序类,可能不适用于所有Android版本。)
Distortion(失真)
Defines all required parameters to correct the distortion caused by the lenses.
(定义所有必需的参数,以校正由镜头引起的失真。)
Eye
Describes the stereoscopic rendering details of an eye.
(描述双目立体渲染中,为一只眼睛而做的一些细节设置。)
Eye.Type
Defines the constants identifying the current eye type.
(标示Eye类型的常量。0为单眼克隆,1为左眼,2为右眼)
FieldOfView
Encapsulates a field of view composed of 4 half angles (left, right, bottom, top) as would be passed to glFrustum.
(定义一个视觉区域,由四个角块组成(上下左右),用来传递给glFrustum*)
(*glFrustum是opengl类库中的函数,用来把当前矩阵转换成透视矩阵)
HeadTransform
Describes the head transform independently of any eye parameters.
(描述头部的姿态变化,比如获取欧拉角、四元数、旋转向量)
GvrViewerParams
Defines the physical parameters of a Google VR viewer.
(用来自定义一些Google VR viewer的物理参数)
ScreenParams
Defines the physical parameters of a screen to be used with a GVR-compatible viewer.
(描述GRV兼容设备屏幕的物理参数)
Viewport
Defines a viewport rectangle.
(定义视窗矩形)
HeadMountedDisplay
Encapsulates the parameters describing a head mounted stereoscopic display composed of a screen and a GVR-compatible viewer holding it.
(封装参数,用来描述某一品牌VR眼镜盒子)
HeadMountedDisplayManager
Manages the initialization, updates and access to aHeadMountedDisplay.
(管理头戴式显示器的初始化,更新和访问。)
Constants
Static class containing useful constants.
(静态类……看起来主要跟启动器有关,比如,manifest.xml里可以设置用cardboard启动,或者daydream启动)
枚举类型
GvrViewerParams.VerticalAlignmentType
Enum indicating the strategy for aligning the phone display vertically with respect to center of the lenses.
(该枚举用于选择对齐手机与镜头的方式,它属于GvrViewerParams,只有3种:BOTTOM、CENTER、TOP)