Skip to content

Latest commit

History

206 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

rust-openvr

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

A high-level binding for OpenVR 1.0.10.

API documentation

High-level documentation can be found at the OpenVR wiki.

Using rust-openvr

Requirements

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

Windows

Upstream OpenVR does not support MinGW. You must use an MSVC-targeted rust toolchain and C++ compiler.

Initializing

externcrate openvr;fnmain(){// Initialize OpenVRlet context = unsafe{ openvr::init(openvr::ApplicationType::Scene)}.unwrap();// accessing subsystemslet system = context.system().unwrap();// ..}

Examples

See examples/test.rs for a more detailed example.

About

OpenVR bindings for rust.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages