#[repr(C)]pub struct QarAppVolumeInit {
pub header: QarStructureHeader,
pub common_name: *const c_char,
pub display_name: *const c_char,
pub pose: QarPose,
pub size: QarAppVolumeSize,
pub initial_peers: *mut *const QarPeerId,
pub initial_peer_count: usize,
pub app_pose: QarPose,
pub app_scale: f32,
pub has_app_world_anchor: bool,
pub app_world_anchor: QarGeoAnchorFrame,
pub gesture_configuration: *const QarAppVolumeGestureConfiguration,
}Fields§
§header: QarStructureHeader§common_name: *const c_charRequired stable identity key used by app_volumes_get_or_create() to derive the volume’s id. Must not be NULL or empty, and must be ASCII.
display_name: *const c_charUTF-8 label shown to users; any characters, emoji included.
pose: QarPosePlacement of the cuboid’s centre in room space, and the rotation taking app volume space into room space. See the QarAppVolumeSize documentation.
size: QarAppVolumeSizeCuboid extents, in metres, along app-volume-space X/Z/Y.
initial_peers: *mut *const QarPeerId§initial_peer_count: usize§app_pose: QarPoseOrigin of the rendering application inside app volume space, in volume
metres, relative to the cuboid centre. Unlike pose this is not a room
-space pose, and app_scale does not scale it.
app_scale: f32Room-metres per app-metre: the factor between app content space and app volume space. 1.0 means 1 m in app coordinates renders as 1 m in the app volume. 0.5 means 1 m in app coordinates renders as 0.5 m in the app volume, so the app appears smaller. 10.0 means 1 m in app coordinates renders as 10 m in the app volume, so the app appears bigger. App pose remains in app-volume meters and is not scaled.
has_app_world_anchor: bool§app_world_anchor: QarGeoAnchorFrameRead only when has_app_world_anchor is set. Its handedness must then be QAR_HANDEDNESS_LEFT or QAR_HANDEDNESS_RIGHT.
gesture_configuration: *const QarAppVolumeGestureConfigurationOptional gesture configuration