aboutsummaryrefslogtreecommitdiffstats
path: root/src/cocoa
diff options
context:
space:
mode:
authorPierre Krieger <pierre.krieger1708@gmail.com>2015-03-04 07:38:55 +0100
committerPierre Krieger <pierre.krieger1708@gmail.com>2015-03-04 07:43:55 +0100
commit689ace8b251ceb2446fc460aad3dd19a1692f3f8 (patch)
tree2035d5b289c4838e477cbea653c6e9e4b05a0afa /src/cocoa
parent41e3328ca7d271b1291996dec9e59830d917ee2c (diff)
downloadglutin-689ace8b251ceb2446fc460aad3dd19a1692f3f8.tar.gz
glutin-689ace8b251ceb2446fc460aad3dd19a1692f3f8.zip
Add is_current function
Diffstat (limited to 'src/cocoa')
-rw-r--r--src/cocoa/headless.rs4
-rw-r--r--src/cocoa/mod.rs4
2 files changed, 8 insertions, 0 deletions
diff --git a/src/cocoa/headless.rs b/src/cocoa/headless.rs
index fb91a0a..298027f 100644
--- a/src/cocoa/headless.rs
+++ b/src/cocoa/headless.rs
@@ -76,6 +76,10 @@ impl HeadlessContext {
}
}
+ pub fn is_current(&self) -> bool {
+ unimplemented!()
+ }
+
pub fn get_proc_address(&self, _addr: &str) -> *const () {
let symbol_name: CFString = _addr.parse().unwrap();
let framework_name: CFString = "com.apple.opengl".parse().unwrap();
diff --git a/src/cocoa/mod.rs b/src/cocoa/mod.rs
index e39df9f..9819319 100644
--- a/src/cocoa/mod.rs
+++ b/src/cocoa/mod.rs
@@ -587,6 +587,10 @@ impl Window {
self.context.makeCurrentContext();
}
+ pub fn is_current(&self) -> bool {
+ unimplemented!()
+ }
+
pub fn get_proc_address(&self, _addr: &str) -> *const () {
let symbol_name: CFString = FromStr::from_str(_addr).unwrap();
let framework_name: CFString = FromStr::from_str("com.apple.opengl").unwrap();