diff options
author | tomaka <pierre.krieger1708@gmail.com> | 2015-09-22 20:22:41 +0200 |
---|---|---|
committer | tomaka <pierre.krieger1708@gmail.com> | 2015-09-22 20:22:41 +0200 |
commit | 0f9693bde4d67e77fa3691a2c9d3ed0151abec71 (patch) | |
tree | fc0fc29cd8d92fbf7d747337320fa81ceeb3dadb | |
parent | 34d2c7517df0b1e8047e1b60dcee6178164d2126 (diff) | |
parent | e466cfb2d680fcbe421047d1f19b1710edecf6b5 (diff) | |
download | glutin-0f9693bde4d67e77fa3691a2c9d3ed0151abec71.tar.gz glutin-0f9693bde4d67e77fa3691a2c9d3ed0151abec71.zip |
Merge pull request #608 from tomaka/pub-attribs
Make some fields in WindowBuilder and HeadlessRendererBuilder public
-rw-r--r-- | src/headless.rs | 9 | ||||
-rw-r--r-- | src/window.rs | 9 |
2 files changed, 14 insertions, 4 deletions
diff --git a/src/headless.rs b/src/headless.rs index 4730eb4..f3ddbf0 100644 --- a/src/headless.rs +++ b/src/headless.rs @@ -16,9 +16,14 @@ use platform; /// Object that allows you to build headless contexts. pub struct HeadlessRendererBuilder<'a> { - dimensions: (u32, u32), + /// The dimensions to use. + pub dimensions: (u32, u32), + + /// The OpenGL attributes to build the context with. + pub opengl: GlAttributes<&'a platform::HeadlessContext>, + + // Should be made public once it's stabilized. pf_reqs: PixelFormatRequirements, - opengl: GlAttributes<&'a platform::HeadlessContext>, } impl<'a> HeadlessRendererBuilder<'a> { 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> { |