mirror of
https://github.com/mii443/rust-openvr.git
synced 2025-08-22 16:25:36 +00:00
1.1 KiB
1.1 KiB
rust-openvr
High-level bindings for OpenVR.
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.
}