From 9f6806ba2e698a5163484004cad829b37e0d71dd Mon Sep 17 00:00:00 2001 From: Tim Neumann Date: Mon, 21 Sep 2015 18:57:35 +0200 Subject: make glutin compile on all iOS targets --- src/platform/ios/mod.rs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/platform') diff --git a/src/platform/ios/mod.rs b/src/platform/ios/mod.rs index 7cbdd84..95fa7e1 100644 --- a/src/platform/ios/mod.rs +++ b/src/platform/ios/mod.rs @@ -1,9 +1,11 @@ #![cfg(target_os = "ios")] use libc::c_void; -use BuilderAttribs; +use GlAttributes; use CreationError; use PixelFormat; +use PixelFormatRequirements; +use ContextError; pub use api::ios::*; @@ -11,16 +13,17 @@ pub struct HeadlessContext(i32); impl HeadlessContext { /// See the docs in the crate root file. - pub fn new(_builder: BuilderAttribs) -> Result { + pub fn new(_: (u32, u32), _: &PixelFormatRequirements, _: &GlAttributes<&HeadlessContext>) + -> Result { unimplemented!() } /// See the docs in the crate root file. - pub unsafe fn make_current(&self) { + pub unsafe fn make_current(&self) -> Result<(), ContextError> { unimplemented!() } - pub fn swap_buffers(&self) { + pub fn swap_buffers(&self) -> Result<(), ContextError> { unimplemented!() } -- cgit v1.2.3