aboutsummaryrefslogtreecommitdiffstats
path: root/src/platform/ios
diff options
context:
space:
mode:
authorEvgeny Rozaliev <rozaliev@gmail.com>2015-06-05 16:38:21 +0300
committerEvgeny Rozaliev <rozaliev@gmail.com>2015-06-05 16:38:35 +0300
commit84703027d63e22361197a1fc74a4949becf5fccb (patch)
tree72c985a88bb03438888c910b55c17fabb36e1048 /src/platform/ios
parent76e7a90752ef60a3b48fd20ad3e551945336479d (diff)
downloadglutin-84703027d63e22361197a1fc74a4949becf5fccb.tar.gz
glutin-84703027d63e22361197a1fc74a4949becf5fccb.zip
[add] ios support
Diffstat (limited to 'src/platform/ios')
-rw-r--r--src/platform/ios/mod.rs47
1 files changed, 47 insertions, 0 deletions
diff --git a/src/platform/ios/mod.rs b/src/platform/ios/mod.rs
new file mode 100644
index 0000000..7cbdd84
--- /dev/null
+++ b/src/platform/ios/mod.rs
@@ -0,0 +1,47 @@
+#![cfg(target_os = "ios")]
+use libc::c_void;
+
+use BuilderAttribs;
+use CreationError;
+use PixelFormat;
+
+pub use api::ios::*;
+
+pub struct HeadlessContext(i32);
+
+impl HeadlessContext {
+ /// See the docs in the crate root file.
+ pub fn new(_builder: BuilderAttribs) -> Result<HeadlessContext, CreationError> {
+ unimplemented!()
+ }
+
+ /// See the docs in the crate root file.
+ pub unsafe fn make_current(&self) {
+ unimplemented!()
+ }
+
+ pub fn swap_buffers(&self) {
+ unimplemented!()
+ }
+
+ /// See the docs in the crate root file.
+ pub fn is_current(&self) -> bool {
+ unimplemented!()
+ }
+
+ /// See the docs in the crate root file.
+ pub fn get_proc_address(&self, _addr: &str) -> *const c_void {
+ unimplemented!()
+ }
+
+ pub fn get_api(&self) -> ::Api {
+ ::Api::OpenGlEs
+ }
+
+ pub fn get_pixel_format(&self) -> PixelFormat {
+ unimplemented!();
+ }
+}
+
+unsafe impl Send for HeadlessContext {}
+unsafe impl Sync for HeadlessContext {}