Crates.io | openvr_bindings |
lib.rs | openvr_bindings |
version | 2.1.1 |
source | src |
created_at | 2024-03-12 13:28:55.1306 |
updated_at | 2024-03-13 15:22:12.727857 |
description | Unsafe bindings for the OpenVR API. Forked version of https://github.com/rust-openvr/rust-openvr with updated support for newer OpenVR API. |
homepage | |
repository | https://github.com/kaitlynkittyy/openvr-bindings-rs |
max_upload_size | |
id | 1170633 |
size | 2,437,159 |
Contains function definitions for the OpenVR library. Use the openvr-rs
(not yet created) crate, unless you know what you are doing.
git submodule update --init --recursive
(initial checkout only)git submodule foreach git pull origin master
to update the submodulecargo build --features "buildtime_bindgen"
to update the bindingsSearch for packed structs in headers/openvr.h
, i.e., #pragma pack( push, 4 )
. Currently, that is:
VRControllerState_t
RenderModel_TextureMap_t
RenderModel_t
VREvent_t
Depending on what bindgen did parse, you have to replace a bunch of #[repr(C)]
and #[repr(C, packed(4))]
precending those structs in bindings.rs
with:
#[repr(C)]
#[cfg_attr(unix, repr(packed(4)))]