diff options
author | tomaka <pierre.krieger1708@gmail.com> | 2015-05-01 14:07:10 +0200 |
---|---|---|
committer | tomaka <pierre.krieger1708@gmail.com> | 2015-05-01 14:07:10 +0200 |
commit | 4882a94080636735b8a8ef78203e7d77ff893370 (patch) | |
tree | 5924231baabffe9316d16defe4415b65a6eafd6e /src/window.rs | |
parent | cb9a8043f273b8d76ba0c1d1aa092888383f28d9 (diff) | |
parent | 171986c7e86063862d16208296c011cd5828bcad (diff) | |
download | glutin-4882a94080636735b8a8ef78203e7d77ff893370.tar.gz glutin-4882a94080636735b8a8ef78203e7d77ff893370.zip |
Merge pull request #409 from kvark/core
GL core profile flag
Diffstat (limited to 'src/window.rs')
-rw-r--r-- | src/window.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/window.rs b/src/window.rs index 7508f32..c21b82d 100644 --- a/src/window.rs +++ b/src/window.rs @@ -7,6 +7,7 @@ use CreationError; use CursorState; use Event; use GlContext; +use GlProfile; use GlRequest; use MouseCursor; use PixelFormat; @@ -67,6 +68,12 @@ impl<'a> WindowBuilder<'a> { self } + /// Sets the desired OpenGL context profile. + pub fn with_gl_profile(mut self, profile: GlProfile) -> WindowBuilder<'a> { + self.attribs.gl_profile = Some(profile); + self + } + /// Sets the *debug* flag for the OpenGL context. /// /// The default value for this flag is `cfg!(debug_assertions)`, which means that it's enabled |