diff options
author | Pierre Krieger <pierre.krieger1708@gmail.com> | 2015-07-27 10:18:45 +0200 |
---|---|---|
committer | Pierre Krieger <pierre.krieger1708@gmail.com> | 2015-07-27 10:18:45 +0200 |
commit | 1f6c4d65a61b399d1a476dc19ca3d6a152856286 (patch) | |
tree | ca9705dc5d60fd720c769e24fb690d2a00dc8a86 /src/platform | |
parent | 991b15df873136d4e7e41590cf2ffc54619b14dd (diff) | |
download | glutin-1f6c4d65a61b399d1a476dc19ca3d6a152856286.tar.gz glutin-1f6c4d65a61b399d1a476dc19ca3d6a152856286.zip |
Implement headless contexts on android
Diffstat (limited to 'src/platform')
-rw-r--r-- | src/platform/android/mod.rs | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/src/platform/android/mod.rs b/src/platform/android/mod.rs index 50f554b..c90d8ce 100644 --- a/src/platform/android/mod.rs +++ b/src/platform/android/mod.rs @@ -1,36 +1,3 @@ #![cfg(target_os = "android")] pub use api::android::*; - -use ContextError; - -pub struct HeadlessContext(i32); - -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) -> Result<(), ContextError> { - 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 - } -} - -unsafe impl Send for HeadlessContext {} -unsafe impl Sync for HeadlessContext {} |