mirror of
https://github.com/mii443/rust-openvr.git
synced 2025-08-28 19:19:33 +00:00
inital
This commit is contained in:
26
lib.rs
Normal file
26
lib.rs
Normal file
@ -0,0 +1,26 @@
|
||||
#[crate_id = "ovr-rs#0.1"];
|
||||
#[crate_type = "lib"];
|
||||
#[feature(link_args)];
|
||||
|
||||
pub enum DeviceManager {}
|
||||
pub enum HMDInfo {}
|
||||
pub enum HMDDevice {}
|
||||
pub enum SensorDevice {}
|
||||
pub enum SensorFusion {}
|
||||
|
||||
|
||||
#[link(name="ovr_wrapper")]
|
||||
extern {}
|
||||
|
||||
#[link(name="ovr")]
|
||||
extern {}
|
||||
|
||||
extern "C" {
|
||||
pub fn OVR_system_init();
|
||||
pub fn OVR_DeviceManager_Create() -> *DeviceManager;
|
||||
pub fn OVR_DeviceManager_EnumerateDevices(dm :*DeviceManager) -> *HMDDevice;
|
||||
pub fn OVR_HDMDevice_GetDeviceInfo(hmd: *HMDDevice) -> *HMDInfo;
|
||||
pub fn OVR_HDMDevice_GetSensor(hmd: *HMDDevice) -> *SensorDevice;
|
||||
pub fn OVR_SensorFusion() -> *SensorFusion;
|
||||
pub fn OVR_SensorFusion_AttachToSensor(sf: *SensorFusion, sd: *SensorDevice) -> bool;
|
||||
}
|
Reference in New Issue
Block a user