#[repr(C)]pub struct ovrHmdDesc {Show 17 fields
pub _align: [isize; 0],
pub Type: ovrHmdType,
pub ProductName: [c_char; 64],
pub Manufacturer: [c_char; 64],
pub VendorId: c_short,
pub ProductId: c_short,
pub SerialNumber: [c_char; 24],
pub FirmwareMajor: c_short,
pub FirmwareMinor: c_short,
pub AvailableHmdCaps: c_uint,
pub DefaultHmdCaps: c_uint,
pub AvailableTrackingCaps: c_uint,
pub DefaultTrackingCaps: c_uint,
pub DefaultEyeFov: [ovrFovPort; 2],
pub MaxEyeFov: [ovrFovPort; 2],
pub Resolution: ovrSizei,
pub DisplayRefreshRate: f32,
}Expand description
This is a complete descriptor of the HMD.
Fields§
§_align: [isize; 0]§Type: ovrHmdTypeThe type of HMD.
ProductName: [c_char; 64]UTF8-encoded product identification string (e.g. “Oculus Rift DK1”).
Manufacturer: [c_char; 64]UTF8-encoded HMD manufacturer identification string.
VendorId: c_shortHID (USB) vendor identifier of the device.
ProductId: c_shortHID (USB) product identifier of the device.
SerialNumber: [c_char; 24]HMD serial number.
FirmwareMajor: c_shortHMD firmware major version.
FirmwareMinor: c_shortHMD firmware minor version.
AvailableHmdCaps: c_uintCapability bits described by ovrHmdCaps which the HMD currently supports.
DefaultHmdCaps: c_uintCapability bits described by ovrHmdCaps which are default for the current Hmd.
AvailableTrackingCaps: c_uintCapability bits described by ovrTrackingCaps which the system currently supports.
DefaultTrackingCaps: c_uintCapability bits described by ovrTrackingCaps which are default for the current system.
DefaultEyeFov: [ovrFovPort; 2]Defines the recommended FOVs for the HMD.
MaxEyeFov: [ovrFovPort; 2]Defines the maximum FOVs for the HMD.
Resolution: ovrSizeiResolution of the full HMD screen (both eyes) in pixels.
DisplayRefreshRate: f32Nominal refresh rate of the display in cycles per second at the time of HMD creation.
Trait Implementations§
Source§impl Clone for ovrHmdDesc
impl Clone for ovrHmdDesc
Source§fn clone(&self) -> ovrHmdDesc
fn clone(&self) -> ovrHmdDesc
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more