diff --git a/src/chaperone.rs b/src/chaperone.rs index f9e870b..db1b125 100644 --- a/src/chaperone.rs +++ b/src/chaperone.rs @@ -2,7 +2,7 @@ use std::convert::From; use openvr_sys as sys; -use {Chaperone, HmdColor_t}; +use Chaperone; /// Chaperone warning states #[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? pub fn are_bounds_visible(&self) -> bool { unsafe { self.0.AreBoundsVisible.unwrap()() } @@ -141,7 +129,7 @@ mod test { use super::*; #[test] - fn convert_ChaperoneCalibrationState() { + fn convert_chaperone_state() { assert_eq!( ChaperoneCalibrationState::from(sys::ChaperoneCalibrationState_OK), ChaperoneCalibrationState::Ok diff --git a/src/lib.rs b/src/lib.rs index 84f3bf5..34f29c1 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -23,7 +23,6 @@ pub use sys::VkPhysicalDevice_T; pub use sys::VkDevice_T; pub use sys::VkInstance_T; pub use sys::VkQueue_T; -pub use sys::HmdColor_t; static INITIALIZED: AtomicBool = ATOMIC_BOOL_INIT;