Struct ovr_sys::ovrHmdDesc
source · #[repr(C)]pub struct ovrHmdDesc {Show 19 fields
pub _align: [isize; 0],
pub Type: ovrHmdType,
pub _pad0: [u8; 4],
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,
pub _pad1: [u8; 4],
}
Expand description
This is a complete descriptor of the HMD.
Fields§
§_align: [isize; 0]
§Type: ovrHmdType
The type of HMD.
_pad0: [u8; 4]
\internal struct paddding.
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_short
HID (USB) vendor identifier of the device.
ProductId: c_short
HID (USB) product identifier of the device.
SerialNumber: [c_char; 24]
HMD serial number.
FirmwareMajor: c_short
HMD firmware major version.
FirmwareMinor: c_short
HMD firmware minor version.
AvailableHmdCaps: c_uint
Capability bits described by ovrHmdCaps
which the HMD currently supports.
DefaultHmdCaps: c_uint
Capability bits described by ovrHmdCaps
which are default for the current Hmd.
AvailableTrackingCaps: c_uint
Capability bits described by ovrTrackingCaps
which the system currently supports.
DefaultTrackingCaps: c_uint
Capability 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: ovrSizei
Resolution of the full HMD screen (both eyes) in pixels.
DisplayRefreshRate: f32
Nominal refresh rate of the display in cycles per second at the time of HMD creation.
_pad1: [u8; 4]
\internal struct paddding.
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