Skip to content

lucidscape/openvr-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust Bindings for the OpenVR Library

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   

Usage

[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

Roadmap

  • Bind remaining API
  • Cross platform support
  • Docs
  • Expanded example

About

Rust Bindings for the OpenVR Library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages