This site has been permanently archived. The content on this site was last updated in 2019.
com.google.vr.sdk.base
Code for the foundation of the Google VR API.
Interfaces
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. |
Classes
AndroidCompat |
Utility class for using VR-related features that may not be available with all Android versions. |
Constants |
Static class containing useful constants. |
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. |
FieldOfView |
Encapsulates a field of view composed of 4 half angles (left, right, bottom, top)
as would be passed to glFrustum. |
GvrActivity |
Base activity that provides easy integration with GVR headsets. |
GvrView |
A View that supports VR rendering. |
GvrViewerParams |
Defines the physical parameters of a Google VR viewer. |
HeadMountedDisplay |
Encapsulates the parameters describing a head mounted stereoscopic display
composed of a screen and a GVR-compatible viewer holding it. |
HeadTransform |
Describes the head transform independently of any eye parameters. |
ScreenParams |
Defines the physical parameters of a screen to be used with a GVR-compatible viewer. |
Viewport |
Defines a viewport rectangle. |
Enums
All rights reserved. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-09 UTC.
[null,null,["Last updated 2024-10-09 UTC."],[[["This page provides the fundamental code for the Google VR API on Android."],["Developers can utilize interfaces like `GvrView.Renderer` and `GvrView.StereoRenderer` for custom or delegated stereo rendering."],["Numerous classes are included, such as `GvrActivity` for easy headset integration and `GvrViewerParams` to define viewer parameters."],["Essential building blocks for VR development like `Distortion`, `Eye`, `FieldOfView`, and `HeadTransform` are available as classes."],["The API also includes utility classes and enums, such as `AndroidCompat` for compatibility and `GvrViewerParams.VerticalAlignmentType` for display alignment."]]],["The code defines the Google VR API foundation, featuring interfaces, classes, and enums for VR development. Key components include `GvrView.Renderer` and `GvrView.StereoRenderer` for rendering, along with `GvrView` and `GvrActivity` for VR view and activity integration. Classes like `Distortion`, `Eye`, `FieldOfView`, `HeadMountedDisplay`, `HeadTransform`, `ScreenParams`, and `Viewport` manage parameters for stereoscopic display and distortion correction. `GvrViewerParams` and `GvrViewerParams.VerticalAlignmentType` describe viewer settings. `AndroidCompat` provides compatibility, and `Constants` offers useful static values.\n"]]