aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.rs
diff options
context:
space:
mode:
authorPierre Krieger <pierre.krieger1708@gmail.com>2015-04-11 09:06:08 +0200
committerPierre Krieger <pierre.krieger1708@gmail.com>2015-04-11 09:06:08 +0200
commit1e94d85d35eca41e2e54ed4880d62ec7473105f0 (patch)
tree9c167b145bf57b8eb37d4c7e79a8c305773fdb5e /src/window.rs
parent70d36a3d3d6afba3e89faf4d3979118f9c076fe9 (diff)
downloadglutin-1e94d85d35eca41e2e54ed4880d62ec7473105f0.tar.gz
glutin-1e94d85d35eca41e2e54ed4880d62ec7473105f0.zip
Adds get_pixel_format() to Window
Diffstat (limited to 'src/window.rs')
-rw-r--r--src/window.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/window.rs b/src/window.rs
index bf040b0..dee4ce5 100644
--- a/src/window.rs
+++ b/src/window.rs
@@ -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]