rust-webvr 0.19.0

Safe rust API that provides a way to interact with Virtual Reality headsets and integration with vendor specific SDKs like OpenVR and Oculus. The API is inspired on the easy to use WebVR API but adapted to Rust design patterns
Documentation
#![cfg(feature = "googlevr")]

mod display;
mod gamepad;
mod service;

use {VRService, VRServiceCreator};

pub struct GoogleVRServiceCreator;

impl GoogleVRServiceCreator {
    pub fn new() -> Box<GoogleVRServiceCreator> {
        Box::new(GoogleVRServiceCreator)
    }
}

impl VRServiceCreator for GoogleVRServiceCreator {
     fn new_service(&self) -> Box<VRService> {
         Box::new(service::GoogleVRService::new())
     }
}

// Export functions called from Java
#[cfg(target_os="android")]
pub mod jni {
    pub use super::service::Java_com_rust_webvr_GVRService_nativeOnPause;
    pub use super::service::Java_com_rust_webvr_GVRService_nativeOnResume;
}