diff options
author | Pierre Krieger <pierre.krieger1708@gmail.com> | 2015-05-01 09:44:35 +0200 |
---|---|---|
committer | Pierre Krieger <pierre.krieger1708@gmail.com> | 2015-05-01 09:44:35 +0200 |
commit | 0eaa8fd9eb4b38169701804b0c0de273c1e73b50 (patch) | |
tree | 24e5782b67164ee32519af599af759596334917c /src/platform/android | |
parent | c755e10089613f95604f7867e13dbc0eb9af549b (diff) | |
download | glutin-0eaa8fd9eb4b38169701804b0c0de273c1e73b50.tar.gz glutin-0eaa8fd9eb4b38169701804b0c0de273c1e73b50.zip |
Use the EGL API with Android
Diffstat (limited to 'src/platform/android')
-rw-r--r-- | src/platform/android/mod.rs | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/platform/android/mod.rs b/src/platform/android/mod.rs index c90d8ce..082608f 100644 --- a/src/platform/android/mod.rs +++ b/src/platform/android/mod.rs @@ -1,3 +1,38 @@ #![cfg(target_os = "android")] pub use api::android::*; + +#[cfg(feature = "headless")] +pub struct HeadlessContext(i32); + +#[cfg(feature = "headless")] +impl HeadlessContext { + /// See the docs in the crate root file. + pub fn new(_builder: BuilderAttribs) -> Result<HeadlessContext, CreationError> { + unimplemented!() + } + + /// See the docs in the crate root file. + pub unsafe fn make_current(&self) { + unimplemented!() + } + + /// See the docs in the crate root file. + pub fn is_current(&self) -> bool { + unimplemented!() + } + + /// See the docs in the crate root file. + pub fn get_proc_address(&self, _addr: &str) -> *const () { + unimplemented!() + } + + pub fn get_api(&self) -> ::Api { + ::Api::OpenGlEs + } +} + +#[cfg(feature = "headless")] +unsafe impl Send for HeadlessContext {} +#[cfg(feature = "headless")] +unsafe impl Sync for HeadlessContext {} |