Add is_current function
This commit is contained in:
parent
41e3328ca7
commit
689ace8b25
9 changed files with 47 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue