This library is a work in progress
/bindgen - generates the ffi interface
/example - minimal example of using the lib
/openvr - submodule containing the api definition and binaries
[dependencies]
openvr = "*"
extern crate openvr;
use openvr::ffi;
...
// Initialize the library
let mut context = openvr::initialize().expect("OpenVR init");
// Get the current sensor state
let poses = context.compositor.wait_get_poses();
// Submit eye textures
context.compositor.submit(...);
- Copy openvr_api.dll to your application's target directory
- Bind remaining API
- Cross platform support
- Docs
- Expanded example