[][src]Function openvr::init

pub unsafe fn init(ty: ApplicationType) -> Result<Context, InitError>

Initialize OpenVR

Panics

When the library has already been initialized

Safety

The Context MUST be dropped or shut down with Context::shutdown before shutting down the graphics API. No OpenVR calls may be made on object derived from a Context after the Context has been dropped or explicitly shut down.