mirror of
https://github.com/mii443/rust-openvr.git
synced 2025-08-22 16:25:36 +00:00
Remove confusing chaperone methods
This commit is contained in:
committed by
Benjamin Saunders
parent
bf27407cc3
commit
b7a3259f42
@ -2,7 +2,7 @@ use std::convert::From;
|
|||||||
|
|
||||||
use openvr_sys as sys;
|
use openvr_sys as sys;
|
||||||
|
|
||||||
use {Chaperone, HmdColor_t};
|
use Chaperone;
|
||||||
|
|
||||||
/// Chaperone warning states
|
/// Chaperone warning states
|
||||||
#[derive(Debug, Copy, Clone, Eq, PartialEq, Hash)]
|
#[derive(Debug, Copy, Clone, Eq, PartialEq, Hash)]
|
||||||
@ -110,18 +110,6 @@ impl Chaperone {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Do not understand what this does
|
|
||||||
/// Reload chaperone info
|
|
||||||
fn reload_info(&mut self) {
|
|
||||||
unsafe { self.0.ReloadInfo.unwrap()() };
|
|
||||||
}
|
|
||||||
|
|
||||||
// Do not understand what this does
|
|
||||||
/// Set scene color
|
|
||||||
fn set_scene_color(&mut self, color: HmdColor_t) {
|
|
||||||
unsafe { self.0.SetSceneColor.unwrap()(color) };
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Are chaperone bounds visible?
|
/// Are chaperone bounds visible?
|
||||||
pub fn are_bounds_visible(&self) -> bool {
|
pub fn are_bounds_visible(&self) -> bool {
|
||||||
unsafe { self.0.AreBoundsVisible.unwrap()() }
|
unsafe { self.0.AreBoundsVisible.unwrap()() }
|
||||||
@ -141,7 +129,7 @@ mod test {
|
|||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn convert_ChaperoneCalibrationState() {
|
fn convert_chaperone_state() {
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
ChaperoneCalibrationState::from(sys::ChaperoneCalibrationState_OK),
|
ChaperoneCalibrationState::from(sys::ChaperoneCalibrationState_OK),
|
||||||
ChaperoneCalibrationState::Ok
|
ChaperoneCalibrationState::Ok
|
||||||
|
@ -23,7 +23,6 @@ pub use sys::VkPhysicalDevice_T;
|
|||||||
pub use sys::VkDevice_T;
|
pub use sys::VkDevice_T;
|
||||||
pub use sys::VkInstance_T;
|
pub use sys::VkInstance_T;
|
||||||
pub use sys::VkQueue_T;
|
pub use sys::VkQueue_T;
|
||||||
pub use sys::HmdColor_t;
|
|
||||||
|
|
||||||
static INITIALIZED: AtomicBool = ATOMIC_BOOL_INIT;
|
static INITIALIZED: AtomicBool = ATOMIC_BOOL_INIT;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user