2015-04-24 09:51:23 +02:00
|
|
|
#![cfg(target_os = "android")]
|
|
|
|
|
|
|
|
|
|
pub use api::android::*;
|
2015-05-01 09:44:35 +02:00
|
|
|
|
2015-06-16 10:15:31 +02:00
|
|
|
use ContextError;
|
|
|
|
|
|
2015-05-01 09:44:35 +02:00
|
|
|
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.
|
2015-06-16 10:15:31 +02:00
|
|
|
pub unsafe fn make_current(&self) -> Result<(), ContextError> {
|
2015-05-01 09:44:35 +02:00
|
|
|
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 () {
|
|
|
|
|
unimplemented!()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pub fn get_api(&self) -> ::Api {
|
|
|
|
|
::Api::OpenGlEs
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
unsafe impl Send for HeadlessContext {}
|
|
|
|
|
unsafe impl Sync for HeadlessContext {}
|