Stay organized with collections
Save and categorize content based on your preferences.
C API Reference for Cardboard SDK
C API reference pages for the Cardboard SDK.
Modules
|
Cardboard SDK types
|
Various types used in the Cardboard SDK. |
Initialization (Android only)
|
This module initializes the JavaVM and Android context. |
Lens Distortion
|
This module calculates the projection and eyes distortion matrices, based on the device (Cardboard viewer) and screen parameters. |
Distortion Renderer
|
This module renders the eyes textures into the display. |
Head Tracker
|
This module calculates the predicted head's pose for a given timestamp. |
QR Code Scanner
|
This module manages the entire process of capturing, decoding and getting the device parameters from a QR code. |
All rights reserved. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-08-06 UTC.
[null,null,["Last updated 2024-08-06 UTC."],[[["\u003cp\u003eThis C API reference provides documentation for the Cardboard SDK, enabling developers to integrate VR features into their applications.\u003c/p\u003e\n"],["\u003cp\u003eThe API includes modules for head tracking, lens distortion correction, distortion rendering, and QR code scanning.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can utilize various structs to manage eye textures, 3D meshes, and distortion renderer configurations.\u003c/p\u003e\n"],["\u003cp\u003eIt provides tools for initialization (Android only) and calculating head pose, projections, and distortion matrices.\u003c/p\u003e\n"]]],[],null,["# C API Reference for Cardboard SDK\n=================================\n\nC API reference pages for the Cardboard SDK.\n\n| Modules ------- ||\n|------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------|\n| [Cardboard SDK types](/cardboard/reference/c/group/types) | Various types used in the Cardboard SDK. |\n| [Initialization (Android only)](/cardboard/reference/c/group/initialization) | This module initializes the JavaVM and Android context. |\n| [Lens Distortion](/cardboard/reference/c/group/lens-distortion) | This module calculates the projection and eyes distortion matrices, based on the device (Cardboard viewer) and screen parameters. |\n| [Distortion Renderer](/cardboard/reference/c/group/distortion-renderer) | This module renders the eyes textures into the display. |\n| [Head Tracker](/cardboard/reference/c/group/head-tracker) | This module calculates the predicted head's pose for a given timestamp. |\n| [QR Code Scanner](/cardboard/reference/c/group/qrcode-scanner) | This module manages the entire process of capturing, decoding and getting the device parameters from a QR code. |\n\n| Structs ------- ||\n|---------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------|\n| [CardboardEyeTextureDescription](/cardboard/reference/c/struct/cardboard-eye-texture-description) | Struct to hold information about an eye texture. |\n| [CardboardMesh](/cardboard/reference/c/struct/cardboard-mesh) | Struct representing a 3D mesh with 3D vertices and corresponding UV coordinates. |\n| [CardboardMetalDistortionRendererConfig](/cardboard/reference/c/struct/cardboard-metal-distortion-renderer-config) | Struct to set Metal distortion renderer configuration. |\n| [CardboardMetalDistortionRendererTargetConfig](/cardboard/reference/c/struct/cardboard-metal-distortion-renderer-target-config) | Struct to set Metal distortion renderer target configuration. |\n| [CardboardOpenGlEsDistortionRendererConfig](/cardboard/reference/c/struct/cardboard-open-gl-es-distortion-renderer-config) | Struct to set OpenGL ES distortion renderer configuration. |\n| [CardboardUv](/cardboard/reference/c/struct/cardboard-uv) | Struct to hold UV coordinates. |\n| [CardboardVulkanDistortionRendererConfig](/cardboard/reference/c/struct/cardboard-vulkan-distortion-renderer-config) | Struct to set Vulkan distortion renderer configuration. |\n| [CardboardVulkanDistortionRendererTarget](/cardboard/reference/c/struct/cardboard-vulkan-distortion-renderer-target) | Struct to set Vulkan distortion renderer target. |"]]