aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.rs
diff options
context:
space:
mode:
authorPierre Krieger <pierre.krieger1708@gmail.com>2016-01-07 16:01:18 +0100
committerPierre Krieger <pierre.krieger1708@gmail.com>2016-02-10 17:39:35 +0100
commitec76d991adc3522512f07935f78569dc4a9d089b (patch)
tree6a16b4f7559cfb4504b7993df1a0d55632499c5e /src/window.rs
parent86dd75f7e9b6078919387c356bca7dd1738d5777 (diff)
downloadglutin-ec76d991adc3522512f07935f78569dc4a9d089b.tar.gz
glutin-ec76d991adc3522512f07935f78569dc4a9d089b.zip
Unlocks platform-specific attributes
Diffstat (limited to 'src/window.rs')
-rw-r--r--src/window.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/window.rs b/src/window.rs
index f672ed5..6d2f0d3 100644
--- a/src/window.rs
+++ b/src/window.rs
@@ -31,6 +31,9 @@ pub struct WindowBuilder<'a> {
// Should be made public once it's stabilized.
pf_reqs: PixelFormatRequirements,
+
+ /// Platform-specific configuration.
+ platform_specific: platform::PlatformSpecificWindowBuilderAttributes,
}
impl<'a> WindowBuilder<'a> {
@@ -41,6 +44,7 @@ impl<'a> WindowBuilder<'a> {
pf_reqs: Default::default(),
window: Default::default(),
opengl: Default::default(),
+ platform_specific: Default::default(),
}
}
@@ -227,7 +231,7 @@ impl<'a> WindowBuilder<'a> {
}
// building
- platform::Window::new(&self.window, &self.pf_reqs, &self.opengl)
+ platform::Window::new(&self.window, &self.pf_reqs, &self.opengl, &self.platform_specific)
.map(|w| Window { window: w })
}