Struct openvr::Context
[−]
[src]
pub struct Context { /* fields omitted */ }
Entry points into OpenVR.
At most one of this object may exist at a time.
See safety notes in init
.
Methods
impl Context
[src]
pub fn system(&self) -> Result<System, InitError>
[src]
pub fn compositor(&self) -> Result<Compositor, InitError>
[src]
pub fn render_models(&self) -> Result<RenderModels, InitError>
[src]
impl Context
[src]
pub unsafe fn shutdown(&self)
[src]
Shut down OpenVR. Repeated calls are safe.
Called implicitly by Context::drop
.
Safety
This must be called before shutting down the graphics API, or OpenVR may invoke undefined behavior by attempting to free graphics resources.
No calls to other OpenVR methods may be made after this has been called unless a new Context
is first
constructed.