Struct rovr::Hmd [-] [+] [src]

pub struct Hmd {
    // some fields omitted
}

An initialized HMD.

Methods

impl Hmd

fn render_to<'a>(&'a self, target: &'a RenderTarget) -> Result<RenderContext, OculusError>

Create a RenderContext for this headset.

fn resolution(&self) -> (u32, u32)

Returns a (width, height) pair representing the native resolution of the HMD.

fn get_display(&self) -> HmdDisplay

Return details about the display representing this headset.