Benjamin Saunders cfa525eee6 Cleanup
2017-07-06 21:46:17 -07:00
2017-07-06 21:46:17 -07:00
2016-06-11 10:42:42 +02:00
2017-05-08 21:52:11 -07:00
2017-05-14 11:52:42 -07:00
2017-05-08 21:52:11 -07:00
2017-05-14 12:02:44 -07:00

rust-openvr

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

rust-openvr is a binding for openvr.

Current sdk version: OpenVR SDK 1.0.1

Using rust-openvr

Requirements

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

Building on Windows

Rust provides 2 pre-compiled version for windows. MSVC ABI and GNU ABI. The proprietary OpenVR library which is loaded behind the scenes by the client library is MSVC only, and therefore MSVC is required! For more informations about the ABI in Rust see https://www.rust-lang.org/en-US/downloads.html#win-foot

Initializing


extern crate openvr;

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

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

    // ..
}

Examples

For data collection examples/test.rs can be used. For an actual opengl implementation see examples/opengl.rs (WIP)

Description
No description provided
Readme 12 MiB
Languages
Rust 100%