Adds get_pixel_format() to Window

This commit is contained in:
Pierre Krieger 2015-04-11 09:06:08 +02:00
parent 70d36a3d3d
commit 1e94d85d35
6 changed files with 34 additions and 3 deletions

View file

@ -8,6 +8,7 @@ use CursorState;
use Event;
use GlRequest;
use MouseCursor;
use PixelFormat;
use native_monitor::NativeMonitorId;
use gl_common;
@ -388,6 +389,11 @@ impl Window {
self.window.get_api()
}
/// Returns the pixel format of this window.
pub fn get_pixel_format(&self) -> PixelFormat {
self.window.get_pixel_format()
}
/// Create a window proxy for this window, that can be freely
/// passed to different threads.
#[inline]