Struct offscreen_gl_context::NativeGLContext [] [src]

pub struct NativeGLContext {
    // some fields omitted
}

Methods

impl NativeGLContext
[src]

fn new(share_context: Option<&GLXContext>, display: *mut Display, drawable: GLXDrawable, framebuffer_config: GLXFBConfig) -> Result<NativeGLContext, &'static str>

fn as_native_glx_context(&self) -> GLXContext

Trait Implementations

impl Drop for NativeGLContext
[src]

fn drop(&mut self)

A method called when the value goes out of scope. Read more

impl NativeGLContextMethods for NativeGLContext
[src]

type Handle = NativeGLContextHandle

fn get_proc_address(addr: &str) -> *const ()

fn current_handle() -> Option<Self::Handle>

fn current() -> Option<NativeGLContext>

fn create_shared(with: Option<&Self::Handle>) -> Result<NativeGLContext, &'static str>

fn is_current(&self) -> bool

fn handle(&self) -> NativeGLContextHandle

fn make_current(&self) -> Result<(), &'static str>

fn unbind(&self) -> Result<(), &'static str>

fn create_headless() -> Result<Self, &'static str>