1 #![cfg(not(any(
2     target_os = "ios",
3     target_os = "windows",
4     target_os = "linux",
5     target_os = "macos",
6     target_os = "android",
7     target_os = "dragonfly",
8     target_os = "freebsd",
9     target_os = "netbsd",
10     target_os = "openbsd",
11     target_os = "emscripten",
12 )))]
13 
14 use crate::{
15     Api, ContextError, CreationError, GlAttributes, PixelFormat,
16     PixelFormatRequirements,
17 };
18 
19 use winit::dpi;
20 
21 #[derive(Debug)]
22 pub enum Context {}
23 
24 impl Context {
25     #[inline]
new_windowed( _: winit::WindowBuilder, _: &winit::EventsLoop, _: &PixelFormatRequirements, _: &GlAttributes<&Context>, ) -> Result<(winit::Window, Self), CreationError>26     pub fn new_windowed(
27         _: winit::WindowBuilder,
28         _: &winit::EventsLoop,
29         _: &PixelFormatRequirements,
30         _: &GlAttributes<&Context>,
31     ) -> Result<(winit::Window, Self), CreationError> {
32         unimplemented!("Glutin-Blank: Platform unsupported")
33     }
34 
35     #[inline]
new_headless( _: &winit::EventsLoop, _: &PixelFormatRequirements, _: &GlAttributes<&Context>, _: dpi::PhysicalSize, ) -> Result<Self, CreationError>36     pub fn new_headless(
37         _: &winit::EventsLoop,
38         _: &PixelFormatRequirements,
39         _: &GlAttributes<&Context>,
40         _: dpi::PhysicalSize,
41     ) -> Result<Self, CreationError> {
42         unimplemented!("Glutin-Blank: Platform unsupported")
43     }
44 
45     #[inline]
resize(&self, _: u32, _: u32)46     pub fn resize(&self, _: u32, _: u32) {
47         unimplemented!("Glutin-Blank: Platform unsupported")
48     }
49 
50     #[inline]
make_current(&self) -> Result<(), ContextError>51     pub unsafe fn make_current(&self) -> Result<(), ContextError> {
52         unimplemented!("Glutin-Blank: Platform unsupported")
53     }
54 
55     #[inline]
make_not_current(&self) -> Result<(), ContextError>56     pub unsafe fn make_not_current(&self) -> Result<(), ContextError> {
57         unimplemented!("Glutin-Blank: Platform unsupported")
58     }
59 
60     #[inline]
is_current(&self) -> bool61     pub fn is_current(&self) -> bool {
62         unimplemented!("Glutin-Blank: Platform unsupported")
63     }
64 
65     #[inline]
get_proc_address(&self, _: &str) -> *const ()66     pub fn get_proc_address(&self, _: &str) -> *const () {
67         unimplemented!("Glutin-Blank: Platform unsupported")
68     }
69 
70     #[inline]
swap_buffers(&self) -> Result<(), ContextError>71     pub fn swap_buffers(&self) -> Result<(), ContextError> {
72         unimplemented!("Glutin-Blank: Platform unsupported")
73     }
74 
75     #[inline]
get_api(&self) -> Api76     pub fn get_api(&self) -> Api {
77         unimplemented!("Glutin-Blank: Platform unsupported")
78     }
79 
80     #[inline]
get_pixel_format(&self) -> PixelFormat81     pub fn get_pixel_format(&self) -> PixelFormat {
82         unimplemented!("Glutin-Blank: Platform unsupported")
83     }
84 }
85