2015-06-05 23:38:21 +10:00
|
|
|
#![cfg(target_os = "ios")]
|
|
|
|
|
2015-09-22 02:57:35 +10:00
|
|
|
use GlAttributes;
|
2015-06-05 23:38:21 +10:00
|
|
|
use CreationError;
|
|
|
|
use PixelFormat;
|
2015-09-22 02:57:35 +10:00
|
|
|
use PixelFormatRequirements;
|
|
|
|
use ContextError;
|
2015-06-05 23:38:21 +10:00
|
|
|
|
|
|
|
pub use api::ios::*;
|
|
|
|
|
2017-01-29 01:00:17 +11:00
|
|
|
gen_api_transition!();
|
|
|
|
|
2016-05-23 16:17:31 +10:00
|
|
|
#[derive(Clone, Default)]
|
2016-01-08 02:01:18 +11:00
|
|
|
pub struct PlatformSpecificHeadlessBuilderAttributes;
|
|
|
|
|
2015-06-05 23:38:21 +10:00
|
|
|
pub struct HeadlessContext(i32);
|
|
|
|
|
|
|
|
impl HeadlessContext {
|
|
|
|
/// See the docs in the crate root file.
|
2016-01-08 02:01:18 +11:00
|
|
|
pub fn new(_: (u32, u32), _: &PixelFormatRequirements, _: &GlAttributes<&HeadlessContext>,
|
|
|
|
_: &PlatformSpecificHeadlessBuilderAttributes)
|
|
|
|
-> Result<HeadlessContext, CreationError>
|
|
|
|
{
|
2015-06-05 23:38:21 +10:00
|
|
|
unimplemented!()
|
|
|
|
}
|
|
|
|
|
|
|
|
/// See the docs in the crate root file.
|
2015-09-22 02:57:35 +10:00
|
|
|
pub unsafe fn make_current(&self) -> Result<(), ContextError> {
|
2015-06-05 23:38:21 +10:00
|
|
|
unimplemented!()
|
|
|
|
}
|
|
|
|
|
2015-09-22 02:57:35 +10:00
|
|
|
pub fn swap_buffers(&self) -> Result<(), ContextError> {
|
2015-06-05 23:38:21 +10: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.
|
2015-11-04 21:27:50 +11:00
|
|
|
pub fn get_proc_address(&self, _addr: &str) -> *const () {
|
2015-06-05 23:38:21 +10:00
|
|
|
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 {}
|