Crates.io | openvr |
lib.rs | openvr |
version | 0.8.1 |
created_at | 2016-04-19 15:42:06.385389+00 |
updated_at | 2025-08-27 15:45:00.922899+00 |
description | A high-level binding for OpenVR. |
homepage | https://github.com/rust-openvr/rust-openvr |
repository | https://github.com/rust-openvr/rust-openvr |
max_upload_size | |
id | 4791 |
size | 134,115 |
High-level bindings for OpenVR.
C/C++ API documentation for reference purposes.
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.
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.
}