Merge pull request #372 from tomaka/get-format-examples

Print the pixel format in the `window` example
This commit is contained in:
tomaka 2015-05-04 09:34:39 +02:00
commit f0309cb165

View file

@ -24,6 +24,8 @@ fn main() {
window.set_window_resize_callback(Some(resize_callback as fn(u32, u32))); window.set_window_resize_callback(Some(resize_callback as fn(u32, u32)));
unsafe { window.make_current() }; unsafe { window.make_current() };
println!("Pixel format of the window: {:?}", window.get_pixel_format());
let context = support::load(&window); let context = support::load(&window);
while !window.is_closed() { while !window.is_closed() {