Cardboard SDK types

Various types used in the Cardboard SDK.

Summary

Enumerations

CardboardEye{
  kLeft = 0,
  kRight = 1
}
enum
Enum to distinguish left and right eyes.
CardboardViewportOrientation{
  kLandscapeLeft = 0,
  kLandscapeRight = 1,
  kPortrait = 2,
  kPortraitUpsideDown = 3
}
enum
Enum to describe the possible orientations of the viewport.

Typedefs

CardboardDistortionRenderer typedef
An opaque Distortion Renderer object.
CardboardDistortionRendererTargetConfig typedef
Struct to set Metal distortion renderer target configuration.
CardboardEye typedef
Enum to distinguish left and right eyes.
CardboardEyeTextureDescription typedef
Struct to hold information about an eye texture.
CardboardHeadTracker typedef
An opaque Head Tracker object.
CardboardLensDistortion typedef
An opaque Lens Distortion object.
CardboardMesh typedef
struct CardboardMesh
Struct representing a 3D mesh with 3D vertices and corresponding UV coordinates.
CardboardMetalDistortionRendererConfig typedef
Struct to set Metal distortion renderer configuration.
CardboardUv typedef
struct CardboardUv
Struct to hold UV coordinates.
CardboardViewportOrientation typedef
Enum to describe the possible orientations of the viewport.

Structs

CardboardDistortionRendererTargetConfig

Struct to set Metal distortion renderer target configuration.

CardboardEyeTextureDescription

Struct to hold information about an eye texture.

CardboardMesh

Struct representing a 3D mesh with 3D vertices and corresponding UV coordinates.

CardboardMetalDistortionRendererConfig

Struct to set Metal distortion renderer configuration.

CardboardUv

Struct to hold UV coordinates.

Enumerations

CardboardEye

 CardboardEye

Enum to distinguish left and right eyes.

Properties
kLeft

Left eye.

kRight

Right eye.

CardboardViewportOrientation

 CardboardViewportOrientation

Enum to describe the possible orientations of the viewport.

Properties
kLandscapeLeft

Landscape left orientation, which maps to:

  • Android: landscape.
  • IOS: UIDeviceOrientationLandscapeLeft.
  • Unity: ScreenOrientation.LandscapeLeft.

kLandscapeRight

Landscape right orientation, which maps to:

  • Android: reverseLandscape.
  • IOS: UIDeviceOrientationLandscapeRight.
  • Unity: ScreenOrientation.LandscapeRight.

kPortrait

Portrait orientation, which maps to:

  • Android: portrait.
  • IOS: UIDeviceOrientationPortrait.
  • Unity: ScreenOrientation.Portrait.

kPortraitUpsideDown

Portrait upside down orientation, which maps to:

  • Android: reversePortrait.
  • IOS: UIDeviceOrientationPortraitUpsideDown.
  • Unity: ScreenOrientation.PortraitUpsideDown.

Typedefs

CardboardDistortionRenderer

struct CardboardDistortionRenderer CardboardDistortionRenderer

An opaque Distortion Renderer object.

CardboardDistortionRendererTargetConfig

struct CardboardDistortionRendererTargetConfig CardboardDistortionRendererTargetConfig

Struct to set Metal distortion renderer target configuration.

CardboardEye

enum CardboardEye CardboardEye

Enum to distinguish left and right eyes.

CardboardEyeTextureDescription

struct CardboardEyeTextureDescription CardboardEyeTextureDescription

Struct to hold information about an eye texture.

CardboardHeadTracker

struct CardboardHeadTracker CardboardHeadTracker

An opaque Head Tracker object.

CardboardLensDistortion

struct CardboardLensDistortion CardboardLensDistortion

An opaque Lens Distortion object.

CardboardMesh

struct CardboardMesh CardboardMesh

Struct representing a 3D mesh with 3D vertices and corresponding UV coordinates.

CardboardMetalDistortionRendererConfig

struct CardboardMetalDistortionRendererConfig CardboardMetalDistortionRendererConfig

Struct to set Metal distortion renderer configuration.

CardboardUv

struct CardboardUv CardboardUv

Struct to hold UV coordinates.

CardboardViewportOrientation

enum CardboardViewportOrientation CardboardViewportOrientation

Enum to describe the possible orientations of the viewport.