Struct rovr::HmdBuilder
[-] [+]
[src]
pub struct HmdBuilder { // some fields omitted }
Builder to construct an HMD. Allows the configuration of HMD settings and tracking capabilities.
Methods
impl HmdBuilder
fn no_mirror<'f>(&'f mut self) -> &'f mut HmdBuilder
Disables mirroring of HMD output to the attached window. This may improve rendering performance slightly.
fn no_display<'f>(&'f mut self) -> &'f mut HmdBuilder
Turns off HMD screen and output (only if the HMD is not in Direct display mode).
fn no_low_persistence<'f>(&'f mut self) -> &'f mut HmdBuilder
Disable low persistence.
fn no_dynamic_prediction<'f>(&'f mut self) -> &'f mut HmdBuilder
Disable dynamic adjustment of tracking prediction based on internally measured latency.
fn no_vsync<'f>(&'f mut self) -> &'f mut HmdBuilder
Disable VSync.
fn track<'f>(&'f mut self, tracking_options: &TrackingOptions) -> &'f mut HmdBuilder
Enable tracking with the specified tracking options.
fn allow_debug<'f>(&'f mut self) -> &'f mut HmdBuilder
Allow creation of a dummy "debug" HMD if no other HMD is found.
fn build(&self) -> Result<Hmd, OculusError>
Build the HMD instance. This will begin tracking if tracking is enabled.