Skip to content
OpenVR bindings for rust.
Rust
Branch: master
Clone or download
schulzch and Ralith Upgrade to OpenVR 1.4.18 (#40)
Cleanup and update to latest openvr-sys
Latest commit 6aaa7d2 Jul 10, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples Upgrade to OpenVR 1.4.18 (#40) Jul 10, 2019
src Upgrade to OpenVR 1.4.18 (#40) Jul 10, 2019
.gitignore Upgrade to OpenVR 1.4.18 (#40) Jul 10, 2019
.travis.yml Draft changes for OpenVR 1.0.7 May 9, 2017
Cargo.toml Upgrade to OpenVR 1.4.18 (#40) Jul 10, 2019
LICENSE.md Draft changes for OpenVR 1.0.7 May 9, 2017
README.md Upgrade to OpenVR 1.4.18 (#40) Jul 10, 2019

README.md

rust-openvr

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

High-level bindings for OpenVR.

API documentation

C/C++ API documentation for reference purposes.

Requirements

openvr-sys requires CMake and C++ to compile and statically link the OpenVR library.

Imporant: OpenVR does not support MinGW on Windows, i.e., you have to use the MSVC Rust toolchain and C++ compiler.

Initializing

extern crate openvr;

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

    // Access subsystem.
    let system = context.system().unwrap();

    // See examples/test.rs for a more detailed example.
}
You can’t perform that action at this time.