1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
use NativeGLContextMethods; pub struct NativeGLContext; pub struct NativeGLContextHandle; impl NativeGLContextMethods for NativeGLContext { type Handle = NativeGLContextHandle; fn get_proc_address(_addr: &str) -> *const () { 0 as *const () } fn create_shared(_with: Option<&Self::Handle>) -> Result<NativeGLContext, &'static str> { Err("Not implemented (yet)") } fn is_current(&self) -> bool { false } fn current() -> Option<Self> { None } fn current_handle() -> Option<Self::Handle> { None } fn make_current(&self) -> Result<(), &'static str> { Err("Not implemented (yet)") } fn unbind(&self) -> Result<(), &'static str> { unimplemented!() } fn handle(&self) -> Self::Handle { unimplemented!() } }