aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.rs
diff options
context:
space:
mode:
authorPierre Krieger <pierre.krieger1708@gmail.com>2015-09-21 15:42:24 +0200
committerPierre Krieger <pierre.krieger1708@gmail.com>2015-09-21 15:42:24 +0200
commite466cfb2d680fcbe421047d1f19b1710edecf6b5 (patch)
tree760f7ab454a6e3977f7cbe585a8a8bf436b1ec5d /src/window.rs
parent1b28e32e3130f58db62da6d6f6fa5e7c31043798 (diff)
downloadglutin-e466cfb2d680fcbe421047d1f19b1710edecf6b5.tar.gz
glutin-e466cfb2d680fcbe421047d1f19b1710edecf6b5.zip
Make some fields in WindowBuilder and HeadlessRendererBuilder public
Diffstat (limited to 'src/window.rs')
-rw-r--r--src/window.rs9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/window.rs b/src/window.rs
index 246f5c9..e69f525 100644
--- a/src/window.rs
+++ b/src/window.rs
@@ -24,9 +24,14 @@ use platform;
/// Object that allows you to build windows.
pub struct WindowBuilder<'a> {
+ /// The attributes to use to create the window.
+ pub window: WindowAttributes,
+
+ /// The attributes to use to create the context.
+ pub opengl: GlAttributes<&'a platform::Window>,
+
+ // Should be made public once it's stabilized.
pf_reqs: PixelFormatRequirements,
- window: WindowAttributes,
- opengl: GlAttributes<&'a platform::Window>,
}
impl<'a> WindowBuilder<'a> {