1#[cfg(all(feature = "vrexternal", target_os= "android"))]
2extern crate libc;
3extern crate rust_webvr_api;
4#[cfg(all(feature = "googlevr", target_os= "android"))]
5extern crate gvr_sys;
6#[cfg(all(target_os="windows", feature = "openvr"))]
7extern crate libloading;
8#[macro_use]
9extern crate log;
10#[cfg(all(feature = "oculusvr", target_os= "android"))]
11extern crate ovr_mobile_sys;
12#[cfg(any(feature = "magicleap", feature = "glwindow"))]
13extern crate euclid;
14#[cfg(any(feature = "magicleap", feature = "glwindow"))]
15extern crate gleam;
16#[cfg(feature = "glwindow")]
17extern crate glutin;
18#[cfg(feature = "serde-serialization")]
19#[macro_use] extern crate serde_derive;
20#[cfg(any(feature = "magicleap", feature = "glwindow"))]
21extern crate sparkle;
22
23#[cfg(any(feature = "googlevr", feature= "oculusvr"))]
24mod gl {
25 include!(concat!(env!("OUT_DIR"), "/gles_bindings.rs"));
26}
27
28#[cfg(any(feature = "magicleap", feature = "oculusvr"))]
29mod egl {
30 #![allow(non_camel_case_types, non_snake_case)]
31 use std::os::raw::{c_long, c_void};
32 pub type khronos_utime_nanoseconds_t = khronos_uint64_t;
33 pub type khronos_uint64_t = u64;
34 pub type khronos_ssize_t = c_long;
35 pub type EGLint = i32;
36 pub type EGLNativeDisplayType = *const c_void;
37 pub type EGLNativePixmapType = *const c_void;
38 pub type EGLNativeWindowType = *const c_void;
39 pub type NativeDisplayType = EGLNativeDisplayType;
40 pub type NativePixmapType = EGLNativePixmapType;
41 pub type NativeWindowType = EGLNativeWindowType;
42 include!(concat!(env!("OUT_DIR"), "/egl_bindings.rs"));
43}
44
45#[cfg(feature= "glwindow")]
46pub use api::GlWindowVRService;
47
48pub mod api;
49mod vr_manager;
50
51pub use rust_webvr_api::*;
52pub use vr_manager::VRServiceManager;