Unlocks platform-specific attributes

This commit is contained in:
Pierre Krieger 2016-01-07 16:01:18 +01:00
parent 86dd75f7e9
commit ec76d991ad
13 changed files with 92 additions and 17 deletions

View file

@ -177,10 +177,14 @@ impl MonitorId {
}
}
#[derive(Default)]
pub struct PlatformSpecificWindowBuilderAttributes;
impl Window {
pub fn new(builder: &WindowAttributes, _: &PixelFormatRequirements, _: &GlAttributes<&Window>) -> Result<Window, CreationError> {
pub fn new(builder: &WindowAttributes, _: &PixelFormatRequirements, _: &GlAttributes<&Window>,
_: &PlatformSpecificWindowBuilderAttributes) -> Result<Window, CreationError>
{
unsafe {
if setjmp(mem::transmute(&mut jmpbuf)) != 0 {
let app: id = msg_send![Class::get("UIApplication").unwrap(), sharedApplication];