Benjamin Saunders 2098bcc257 Update to 1.0.10, fix travis (#31)
* Update to OpenVR 1.0.10

* Typo fix

* Missing doc comment

* Delete dead examples, cleanup

* Delete dead code

* Remove lifetimes from subsystems

OpenVR must be shut down manually, which invalidates outstanding
subsystem handles regardless of lifetimes, rendering the ergonomic
sacrifice pointless.

Future work: make shutdown safe by inserting checks before every
OpenVR call.

* Depend on our own openvr-sys

* Update metadata

* Update readme

* More detailed safety notes

* Depend on released openvr-sys
2017-10-08 14:56:32 -07:00
2017-10-08 14:56:32 -07:00
2016-06-11 10:42:42 +02:00
2017-05-08 21:52:11 -07:00
2017-10-08 14:56:32 -07:00
2017-05-08 21:52:11 -07:00
2017-10-08 14:56:32 -07:00

rust-openvr

Build Status Join the chat at https://gitter.im/rust-openvr/rust-openvr

A high-level binding for OpenVR 1.0.10.

API documentation

High-level documentation can be found at the OpenVR wiki.

Using rust-openvr

Requirements

openvr-sys needs cmake and a C++ compiler so that it can compile and statically link the OpenVR client library.

Windows

Upstream OpenVR does not support MinGW. You must use an MSVC-targeted rust toolchain and C++ compiler.

Initializing


extern crate openvr;

fn main() {
    // Initialize OpenVR
    let context = unsafe { openvr::init(openvr::ApplicationType::Scene) }.unwrap();

    // accessing subsystems
    let system = context.system().unwrap();

    // ..
}

Examples

See examples/test.rs for a more detailed example.

Description
No description provided
Readme 12 MiB
Languages
Rust 100%