Trait offscreen_gl_context::NativeGLContextMethods [] [src]

pub trait NativeGLContextMethods: Sized {
    type Handle;
    fn get_proc_address(&str) -> *const ();
    fn current() -> Option<Self>;
    fn current_handle() -> Option<Self::Handle>;
    fn create_shared(with: Option<&Self::Handle>) -> Result<Self, &'static str>;
    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> { ... }
}

Associated Types

type Handle

Required Methods

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

fn current() -> Option<Self>

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

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

fn handle(&self) -> Self::Handle

fn is_current(&self) -> bool

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

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

Provided Methods

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

Implementors