Struct offscreen_gl_context::NativeGLContext
[−]
[src]
pub struct NativeGLContext { /* fields omitted */ }
Methods
impl NativeGLContext
[src]
fn new(
share_context: Option<&CGLContextObj>,
pixel_format: &CGLPixelFormatObj
) -> Result<NativeGLContext, &'static str>
share_context: Option<&CGLContextObj>,
pixel_format: &CGLPixelFormatObj
) -> Result<NativeGLContext, &'static str>
Trait Implementations
impl Drop for NativeGLContext
[src]
impl NativeGLContextMethods for NativeGLContext
[src]
type Handle = NativeGLContextHandle
fn get_proc_address(addr: &str) -> *const ()
fn current() -> Option<Self>
fn current_handle() -> Option<Self::Handle>
fn handle(&self) -> Self::Handle
fn is_current(&self) -> bool
fn make_current(&self) -> Result<(), &'static str>
fn unbind(&self) -> Result<(), &'static str>
fn create_headless() -> Result<Self, &'static str>
fn is_osmesa(&self) -> bool
Just a somewhat dirty hack to special-case the handling of context unbinding on old OSMesa versions. Read more