Adds get_pixel_format() to Window
This commit is contained in:
parent
70d36a3d3d
commit
1e94d85d35
6 changed files with 34 additions and 3 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue