Travis Finkenauer bf27407cc3 Add chaperone examples to example
Generalize printing logic
2019-02-09 00:46:34 -08:00
2019-02-09 00:46:34 -08:00
2016-06-11 10:42:42 +02:00
2017-05-08 21:52:11 -07:00
2018-07-08 14:33:18 -07:00
2017-05-08 21:52:11 -07:00
2017-10-08 19:19:14 -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%