diff options
author | tomaka <pierre.krieger1708@gmail.com> | 2015-05-04 09:34:39 +0200 |
---|---|---|
committer | tomaka <pierre.krieger1708@gmail.com> | 2015-05-04 09:34:39 +0200 |
commit | f0309cb16588da65268fdfe959ad70fe28702054 (patch) | |
tree | 3bccb0186ee06b5d0e778a6352ab62543ba00bf0 /examples | |
parent | e953e3d4ead7931bc32c49bcd9f4a637ef6d5fa7 (diff) | |
parent | 05c24b39cc993572c5ecebf4be35e8b0a66ee86e (diff) | |
download | glutin-f0309cb16588da65268fdfe959ad70fe28702054.tar.gz glutin-f0309cb16588da65268fdfe959ad70fe28702054.zip |
Merge pull request #372 from tomaka/get-format-examples
Print the pixel format in the `window` example
Diffstat (limited to 'examples')
-rw-r--r-- | examples/window.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/window.rs b/examples/window.rs index 1d3b615..4077399 100644 --- a/examples/window.rs +++ b/examples/window.rs @@ -24,6 +24,8 @@ fn main() { window.set_window_resize_callback(Some(resize_callback as fn(u32, u32))); unsafe { window.make_current() }; + println!("Pixel format of the window: {:?}", window.get_pixel_format()); + let context = support::load(&window); while !window.is_closed() { |