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.
CardboardSupportedOpenGlEsTextureType{
  kGlTexture2D = 0,
  kGlTextureExternalOes = 1
}
enum
Enum with the supported OpenGL ES textures to be used for the eyes rendering.
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.
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.
CardboardMetalDistortionRendererTargetConfig typedef
Struct to set Metal distortion renderer target configuration.
CardboardOpenGlEsDistortionRendererConfig typedef
Struct to set OpenGL ES distortion renderer configuration.
CardboardSupportedOpenGlEsTextureType typedef
Enum with the supported OpenGL ES textures to be used for the eyes rendering.
CardboardUv typedef
struct CardboardUv
Struct to hold UV coordinates.
CardboardViewportOrientation typedef
Enum to describe the possible orientations of the viewport.
CardboardVulkanDistortionRendererConfig typedef
Struct to set Vulkan distortion renderer configuration.
CardboardVulkanDistortionRendererTarget typedef
Struct to set Vulkan distortion renderer target.

Structs

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.

CardboardMetalDistortionRendererTargetConfig

Struct to set Metal distortion renderer target configuration.

CardboardOpenGlEsDistortionRendererConfig

Struct to set OpenGL ES distortion renderer configuration.

CardboardUv

Struct to hold UV coordinates.

CardboardVulkanDistortionRendererConfig

Struct to set Vulkan distortion renderer configuration.

CardboardVulkanDistortionRendererTarget

Struct to set Vulkan distortion renderer target.

Enumerations

CardboardEye

 CardboardEye

Enum to distinguish left and right eyes.

Properties
kLeft

Left eye.

kRight

Right eye.

CardboardSupportedOpenGlEsTextureType

 CardboardSupportedOpenGlEsTextureType

Enum with the supported OpenGL ES textures to be used for the eyes rendering.

Properties
kGlTexture2D

Maps to GL_TEXTURE_2D.

kGlTextureExternalOes

Maps to GL_TEXTURE_EXTERNAL_OES (only supported on Android).

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.

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.

CardboardMetalDistortionRendererTargetConfig

struct CardboardMetalDistortionRendererTargetConfig CardboardMetalDistortionRendererTargetConfig

Struct to set Metal distortion renderer target configuration.

CardboardOpenGlEsDistortionRendererConfig

struct CardboardOpenGlEsDistortionRendererConfig CardboardOpenGlEsDistortionRendererConfig

Struct to set OpenGL ES distortion renderer configuration.

CardboardSupportedOpenGlEsTextureType

enum CardboardSupportedOpenGlEsTextureType CardboardSupportedOpenGlEsTextureType

Enum with the supported OpenGL ES textures to be used for the eyes rendering.

CardboardUv

struct CardboardUv CardboardUv

Struct to hold UV coordinates.

CardboardViewportOrientation

enum CardboardViewportOrientation CardboardViewportOrientation

Enum to describe the possible orientations of the viewport.

CardboardVulkanDistortionRendererConfig

struct CardboardVulkanDistortionRendererConfig CardboardVulkanDistortionRendererConfig

Struct to set Vulkan distortion renderer configuration.

CardboardVulkanDistortionRendererTarget

struct CardboardVulkanDistortionRendererTarget CardboardVulkanDistortionRendererTarget

Struct to set Vulkan distortion renderer target.