Remove confusing chaperone methods

This commit is contained in:
Travis Finkenauer
2019-02-09 02:49:13 -05:00
committed by Benjamin Saunders
parent bf27407cc3
commit b7a3259f42
2 changed files with 2 additions and 15 deletions

View File

@ -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

View File

@ -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;