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 libc;
|
|||
use Api;
|
||||
use BuilderAttribs;
|
||||
use GlRequest;
|
||||
use PixelFormat;
|
||||
use native_monitor::NativeMonitorId;
|
||||
|
||||
use objc::runtime::{Class, Object, Sel, BOOL, YES, NO};
|
||||
|
|
@ -616,6 +617,10 @@ impl Window {
|
|||
::Api::OpenGl
|
||||
}
|
||||
|
||||
pub fn get_pixel_format(&self) -> PixelFormat {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
pub fn set_window_resize_callback(&mut self, callback: Option<fn(u32, u32)>) {
|
||||
self.delegate.state.resize_handler = callback;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue