# Cardboard SDK types

# Cardboard SDK types

Various types used in the Cardboard SDK.

## Summary

| ### Enumerations ||
|---|---|
| `https://developers.google.com/cardboard/reference/c/group/types#group__types_1gaf7cdc554e461d1ea3f236eefc6a3a59e{ https://developers.google.com/cardboard/reference/c/group/types#group__types_1ggaf7cdc554e461d1ea3f236eefc6a3a59eaa9953673f54fd9f854de23739ebe2f7a = 0, https://developers.google.com/cardboard/reference/c/group/types#group__types_1ggaf7cdc554e461d1ea3f236eefc6a3a59ea28e0f004d9fc43a042d60286f37b6889 = 1 }` | enumEnum to distinguish left and right eyes. |
| `https://developers.google.com/cardboard/reference/c/group/types#group__types_1ga6c0b0ac4b5f33a0b86d6f8c6db2c169f{ https://developers.google.com/cardboard/reference/c/group/types#group__types_1gga6c0b0ac4b5f33a0b86d6f8c6db2c169faf029a73699e6f9d520216abcd52441d7 = 0, https://developers.google.com/cardboard/reference/c/group/types#group__types_1gga6c0b0ac4b5f33a0b86d6f8c6db2c169fad48a9fae581d25197ab6d96c9e875a7b = 1 }` | enumEnum with the supported OpenGL ES textures to be used for the eyes rendering. |
| `https://developers.google.com/cardboard/reference/c/group/types#group__types_1gadeb09fbadf43639d994e2017ff18bcc2{ https://developers.google.com/cardboard/reference/c/group/types#group__types_1ggadeb09fbadf43639d994e2017ff18bcc2a36f56fa08a5f7aa85283928069a070a6 = 0, https://developers.google.com/cardboard/reference/c/group/types#group__types_1ggadeb09fbadf43639d994e2017ff18bcc2ae6c6653c6ba2a006dfa0cb2bb5e90f50 = 1, https://developers.google.com/cardboard/reference/c/group/types#group__types_1ggadeb09fbadf43639d994e2017ff18bcc2a566259ddf2a9a19b7fb514d8b946c151 = 2, https://developers.google.com/cardboard/reference/c/group/types#group__types_1ggadeb09fbadf43639d994e2017ff18bcc2a2394d9fb4154761a1d8eb02ce12a69cf = 3 }` | enumEnum to describe the possible orientations of the viewport. |

| ### Typedefs ||
|---|---|
| `https://developers.google.com/cardboard/reference/c/group/types#group__types_1ga5bb7a871f5b615e560d7a094752f98c8` | typedef `struct https://developers.google.com/cardboard/reference/c/group/types#group__types_1ga5bb7a871f5b615e560d7a094752f98c8` An opaque Distortion Renderer object. |
| `https://developers.google.com/cardboard/reference/c/group/types#group__types_1ga71a71c8d6447acf7940c05a2067805a9` | typedef `enum https://developers.google.com/cardboard/reference/c/group/types#group__types_1gaf7cdc554e461d1ea3f236eefc6a3a59e` Enum to distinguish left and right eyes. |
| `https://developers.google.com/cardboard/reference/c/group/types#group__types_1gaff3beb914e775b54b8b830f64989566e` | typedef `struct https://developers.google.com/cardboard/reference/c/struct/cardboard-eye-texture-description#struct_cardboard_eye_texture_description` Struct to hold information about an eye texture. |
| `https://developers.google.com/cardboard/reference/c/group/types#group__types_1ga01dccfd54f3e8edb5422029c8a389ea8` | typedef `struct https://developers.google.com/cardboard/reference/c/group/types#group__types_1ga01dccfd54f3e8edb5422029c8a389ea8` An opaque Head Tracker object. |
| `https://developers.google.com/cardboard/reference/c/group/types#group__types_1ga37184253f5103496a6033beebee99455` | typedef `struct https://developers.google.com/cardboard/reference/c/group/types#group__types_1ga37184253f5103496a6033beebee99455` An opaque Lens Distortion object. |
| `https://developers.google.com/cardboard/reference/c/group/types#group__types_1ga8824f9adbdb11bb12f5381b70261db53` | typedef `struct https://developers.google.com/cardboard/reference/c/struct/cardboard-mesh#struct_cardboard_mesh` Struct representing a 3D mesh with 3D vertices and corresponding UV coordinates. |
| `https://developers.google.com/cardboard/reference/c/group/types#group__types_1gac9f09bdea7efdbf38ccb0d8f9dfdeb4a` | typedef `struct https://developers.google.com/cardboard/reference/c/struct/cardboard-metal-distortion-renderer-config#struct_cardboard_metal_distortion_renderer_config` Struct to set Metal distortion renderer configuration. |
| `https://developers.google.com/cardboard/reference/c/group/types#group__types_1ga08300996c8810067e6b10509b7ad963a` | typedef `struct https://developers.google.com/cardboard/reference/c/struct/cardboard-metal-distortion-renderer-target-config#struct_cardboard_metal_distortion_renderer_target_config` Struct to set Metal distortion renderer target configuration. |
| `https://developers.google.com/cardboard/reference/c/group/types#group__types_1ga56980431938244f07aa7d8fd0874d597` | typedef `struct https://developers.google.com/cardboard/reference/c/struct/cardboard-open-gl-es-distortion-renderer-config#struct_cardboard_open_gl_es_distortion_renderer_config` Struct to set OpenGL ES distortion renderer configuration. |
| `https://developers.google.com/cardboard/reference/c/group/types#group__types_1ga0cb7c0c621b05a45d56c7382aebaea1d` | typedef `enum https://developers.google.com/cardboard/reference/c/group/types#group__types_1ga6c0b0ac4b5f33a0b86d6f8c6db2c169f` Enum with the supported OpenGL ES textures to be used for the eyes rendering. |
| `https://developers.google.com/cardboard/reference/c/group/types#group__types_1gaa6061b6390fd920eff30317a69a3a5c9` | typedef `struct https://developers.google.com/cardboard/reference/c/struct/cardboard-uv#struct_cardboard_uv` Struct to hold UV coordinates. |
| `https://developers.google.com/cardboard/reference/c/group/types#group__types_1ga7a70fbd6a4964b0d57c343eccc26ad06` | typedef `enum https://developers.google.com/cardboard/reference/c/group/types#group__types_1gadeb09fbadf43639d994e2017ff18bcc2` Enum to describe the possible orientations of the viewport. |
| `https://developers.google.com/cardboard/reference/c/group/types#group__types_1ga0809e9a52500c912664a8492a6fd014e` | typedef `struct https://developers.google.com/cardboard/reference/c/struct/cardboard-vulkan-distortion-renderer-config#struct_cardboard_vulkan_distortion_renderer_config` Struct to set Vulkan distortion renderer configuration. |
| `https://developers.google.com/cardboard/reference/c/group/types#group__types_1gac2e6c4c0ed0757bf934f9f10da9c5879` | typedef `struct https://developers.google.com/cardboard/reference/c/struct/cardboard-vulkan-distortion-renderer-target#struct_cardboard_vulkan_distortion_renderer_target` Struct to set Vulkan distortion renderer target. |

| ### Structs ||
|---|---|
| [CardboardEyeTextureDescription](https://developers.google.com/cardboard/reference/c/struct/cardboard-eye-texture-description) | Struct to hold information about an eye texture. |
| [CardboardMesh](https://developers.google.com/cardboard/reference/c/struct/cardboard-mesh) | Struct representing a 3D mesh with 3D vertices and corresponding UV coordinates. |
| [CardboardMetalDistortionRendererConfig](https://developers.google.com/cardboard/reference/c/struct/cardboard-metal-distortion-renderer-config) | Struct to set Metal distortion renderer configuration. |
| [CardboardMetalDistortionRendererTargetConfig](https://developers.google.com/cardboard/reference/c/struct/cardboard-metal-distortion-renderer-target-config) | Struct to set Metal distortion renderer target configuration. |
| [CardboardOpenGlEsDistortionRendererConfig](https://developers.google.com/cardboard/reference/c/struct/cardboard-open-gl-es-distortion-renderer-config) | Struct to set OpenGL ES distortion renderer configuration. |
| [CardboardUv](https://developers.google.com/cardboard/reference/c/struct/cardboard-uv) | Struct to hold UV coordinates. |
| [CardboardVulkanDistortionRendererConfig](https://developers.google.com/cardboard/reference/c/struct/cardboard-vulkan-distortion-renderer-config) | Struct to set Vulkan distortion renderer configuration. |
| [CardboardVulkanDistortionRendererTarget](https://developers.google.com/cardboard/reference/c/struct/cardboard-vulkan-distortion-renderer-target) | 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. <br /> |
| `kLandscapeRight` | Landscape right orientation, which maps to: - Android: reverseLandscape. - IOS: UIDeviceOrientationLandscapeRight. - Unity: ScreenOrientation.LandscapeRight. <br /> |
| `kPortrait` | Portrait orientation, which maps to: - Android: portrait. - IOS: UIDeviceOrientationPortrait. - Unity: ScreenOrientation.Portrait. <br /> |
| `kPortraitUpsideDown` | Portrait upside down orientation, which maps to: - Android: reversePortrait. - IOS: UIDeviceOrientationPortraitUpsideDown. - Unity: ScreenOrientation.PortraitUpsideDown. <br /> |

## 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.