diff options
author | tomaka <pierre.krieger1708@gmail.com> | 2016-02-10 18:33:13 +0100 |
---|---|---|
committer | tomaka <pierre.krieger1708@gmail.com> | 2016-02-10 18:33:13 +0100 |
commit | c6c9ef4fca1e235572e34a6976df2482a14aae87 (patch) | |
tree | 6a16b4f7559cfb4504b7993df1a0d55632499c5e /src/api/android | |
parent | 86dd75f7e9b6078919387c356bca7dd1738d5777 (diff) | |
parent | ec76d991adc3522512f07935f78569dc4a9d089b (diff) | |
download | glutin-c6c9ef4fca1e235572e34a6976df2482a14aae87.tar.gz glutin-c6c9ef4fca1e235572e34a6976df2482a14aae87.zip |
Merge pull request #702 from tomaka/platform-specific
Unlocks platform-specific attributes
Diffstat (limited to 'src/api/android')
-rw-r--r-- | src/api/android/mod.rs | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/api/android/mod.rs b/src/api/android/mod.rs index f42caeb..433472c 100644 --- a/src/api/android/mod.rs +++ b/src/api/android/mod.rs @@ -65,6 +65,11 @@ impl MonitorId { } } +#[derive(Default)] +pub struct PlatformSpecificWindowBuilderAttributes; +#[derive(Default)] +pub struct PlatformSpecificHeadlessBuilderAttributes; + pub struct PollEventsIterator<'a> { window: &'a Window, } @@ -116,7 +121,8 @@ impl<'a> Iterator for WaitEventsIterator<'a> { impl Window { pub fn new(win_attribs: &WindowAttributes, pf_reqs: &PixelFormatRequirements, - opengl: &GlAttributes<&Window>) -> Result<Window, CreationError> + opengl: &GlAttributes<&Window>, _: &PlatformSpecificWindowBuilderAttributes) + -> Result<Window, CreationError> { use std::{mem, ptr}; @@ -302,7 +308,9 @@ pub struct HeadlessContext(EglContext); impl HeadlessContext { /// See the docs in the crate root file. pub fn new(dimensions: (u32, u32), pf_reqs: &PixelFormatRequirements, - opengl: &GlAttributes<&HeadlessContext>) -> Result<HeadlessContext, CreationError> + opengl: &GlAttributes<&HeadlessContext>, + _: &PlatformSpecificHeadlessBuilderAttributes) + -> Result<HeadlessContext, CreationError> { let opengl = opengl.clone().map_sharing(|c| &c.0); let context = try!(EglContext::new(egl::ffi::egl::Egl, pf_reqs, &opengl, |