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§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.