Google VR Types
Various types used in the Google VR NDK.
Summary
Typedefs |
|
---|---|
gvr_audio_source_id
|
typedefint32_t
Sound object and sound field identifier. |
gvr_context
|
typedefstruct gvr_context_
Primary context for invoking Google VR APIs. |
gvr_user_prefs
|
typedefstruct gvr_user_prefs_
|
Enumerations
Anonymous Enum 0
Anonymous Enum 0
Flags indicating the current status of the tracker.
See also GVR_PROPERTY_TRACKING_STATUS.
Anonymous Enum 1
Anonymous Enum 1
Controller API options (bit flags).
Anonymous Enum 2
Anonymous Enum 2
Properties | |
---|---|
GVR_AUDIO_INVALID_SOURCE_ID
|
Invalid source id that can be used to initialize source id variables during construction. |
GVR_BUFFER_INDEX_EXTERNAL_SURFACE
|
Special index for a source buffer that has the same contents as the external surface attached to the given viewport. Pass this to gvr_buffer_viewport_set_source_buffer_index() to use the external surface as the buffer contents. |
GVR_EXTERNAL_SURFACE_ID_NONE
|
Constant that represents a nonexistent external surface. Pass to gvr_buffer_viewport_set_external_surface_id() to disable sampling from an external surface. |
gvr_arm_model_behavior
gvr_arm_model_behavior
Types of gaze behaviors used for arm model.
gvr_audio_distance_rolloff_type
gvr_audio_distance_rolloff_type
gvr_audio_material_type
gvr_audio_material_type
Room surface material names, used to set room properties.
gvr_audio_rendering_mode
gvr_audio_rendering_mode
Rendering modes define CPU load / rendering quality balances.
gvr_audio_surround_format_type
gvr_audio_surround_format_type
Supported surround sound formats.
gvr_color_format_type
gvr_color_format_type
gvr_controller_api_status
gvr_controller_api_status
Constants that represent the status of the controller API.
gvr_controller_battery_level
gvr_controller_battery_level
gvr_controller_button
gvr_controller_button
gvr_controller_connection_state
gvr_controller_connection_state
gvr_controller_handedness
gvr_controller_handedness
gvr_depth_stencil_format_type
gvr_depth_stencil_format_type
gvr_error
gvr_error
Constants that represent GVR error codes.
Properties | |
---|---|
GVR_ERROR_NO_EVENT_AVAILABLE
|
Error code indicating that no events are currently available. See also gvr_poll_event() |
GVR_ERROR_NO_PROPERTY_AVAILABLE
|
Error code indicating that the given property is not available. See also gvr_properties_get(). |
gvr_event_type
gvr_event_type
The type of gvr_event.
Properties | |
---|---|
GVR_EVENT_HEAD_TRACKING_PAUSED
|
Notification that head tracking was paused. Event data type: none |
GVR_EVENT_HEAD_TRACKING_RESUMED
|
Notification that head tracking was resumed (or started for the first time). Before this event is sent, head tracking will always return the identity pose. This event is usually preceded in the same frame by a GVR_EVENT_RECENTER of recenter_type GVR_RECENTER_EVENT_RESTART. Event data type: none |
GVR_EVENT_RECENTER
|
Notification that head tracking has been recentered. (Note that controller recentering is signaled separately through gvr_controller_state_get_recentered().) Event data type: gvr_recenter_event_data |
GVR_EVENT_SAFETY_REGION_ENTER
|
Notification that the user has re-entered the safety region, as defined by the gvr_safety_region_type. Event data type: none |
GVR_EVENT_SAFETY_REGION_EXIT
|
Notification that the user has exited the safety region, as defined by the gvr_safety_region_type. Event data type: none |
gvr_eye
gvr_eye
An enum for the left and right eye.
gvr_feature
gvr_feature
Types of VR-specific features which may or may not be supported on the underlying platform.
gvr_property_type
gvr_property_type
Property types exposed by the gvr_properties_get() API.
Properties | |
---|---|
GVR_PROPERTY_RECENTER_TRANSFORM
|
The current transform that maps from headset's "sensor" space to the recentered "start" space. Apps can optionally undo or extend this transform to perform custom recentering logic with the SDK-provided poses, but the SDK assumes poses supplied during frame submission are in start space. This transform matches the one reported in the most recent gvr_recenter_event_data. Type: gvr_mat4f |
GVR_PROPERTY_SAFETY_CYLINDER_ENTER_RADIUS
|
Distance from safety cylinder axis at which the user's state transitions from outside to inside, generating a GVR_EVENT_SAFETY_REGION_ENTER event. This value is guaranteed to be less than GVR_PROPERTY_SAFETY_CYLINDER_EXIT_RADIUS. Type: float |
GVR_PROPERTY_SAFETY_CYLINDER_EXIT_RADIUS
|
Distance from safety cylinder axis at which the user's state transitions from inside to outside, generating a GVR_EVENT_SAFETY_REGION_EXIT event. This value is guaranteed to be greater than GVR_PROPERTY_SAFETY_CYLINDER_ENTER_RADIUS. Type: float |
GVR_PROPERTY_SAFETY_REGION
|
The type of safety region, if any, currently employed by the headset's tracker. Type: int (gvr_safety_region_type) |
GVR_PROPERTY_TRACKING_FLOOR_HEIGHT
|
The height of the floor, if available, relative to the current start space origin. In general, for tracking systems with an eye level origin, this value will be negative. Type: float |
GVR_PROPERTY_TRACKING_STATUS
|
The current status of the head tracker, if available. Type: gvr_flags |
gvr_recenter_event_type
gvr_recenter_event_type
The type of a recentering associated with a GVR_EVENT_RECENTER event.
gvr_reprojection
gvr_reprojection
gvr_safety_region_type
gvr_safety_region_type
Safety region types exposed from the GVR_PROPERTY_SAFETY_REGION property.
gvr_viewer_type
gvr_viewer_type
The type of VR viewer.
Typedefs
gvr_audio_source_id
int32_t gvr_audio_source_id
Sound object and sound field identifier.
gvr_context
struct gvr_context_ gvr_context
Primary context for invoking Google VR APIs.
gvr_user_prefs
struct gvr_user_prefs_ gvr_user_prefs