Trait window::OpenGLWindow [] [src]

pub trait OpenGLWindow: Window {
    fn get_proc_address(&mut self, proc_name: &str) -> ProcAddress;
    fn is_current(&self) -> bool;
    fn make_current(&mut self);
}

Trait for OpenGL specific operations.

Required Methods

fn get_proc_address(&mut self, proc_name: &str) -> ProcAddress

Returns the address of an OpenGL function if it exist, else returns null pointer.

fn is_current(&self) -> bool

Returns true if this context is the current context.

fn make_current(&mut self)

Make this context current.

Implementors