diff options
author | Tim Neumann <mail@timnn.me> | 2015-09-21 18:57:35 +0200 |
---|---|---|
committer | Tim Neumann <mail@timnn.me> | 2015-09-21 18:57:35 +0200 |
commit | 9f6806ba2e698a5163484004cad829b37e0d71dd (patch) | |
tree | 27f94e8c2158572fb79ebf998d1e98b049ba6ade /src/platform/ios | |
parent | 1b28e32e3130f58db62da6d6f6fa5e7c31043798 (diff) | |
download | glutin-9f6806ba2e698a5163484004cad829b37e0d71dd.tar.gz glutin-9f6806ba2e698a5163484004cad829b37e0d71dd.zip |
make glutin compile on all iOS targets
Diffstat (limited to 'src/platform/ios')
-rw-r--r-- | src/platform/ios/mod.rs | 11 |
1 files changed, 7 insertions, 4 deletions
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<HeadlessContext, CreationError> { + pub fn new(_: (u32, u32), _: &PixelFormatRequirements, _: &GlAttributes<&HeadlessContext>) + -> Result<HeadlessContext, CreationError> { 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!() } |