Skip to content

Guvante/rust-openvr

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.
}

About

OpenVR bindings for rust.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 100.0%