Struct glium::glutin::HeadlessContext
[−]
[src]
pub struct HeadlessContext {
// some fields omitted
}Represents a headless OpenGL context.
Methods
impl HeadlessContext
unsafe fn make_current(&self) -> Result<(), ContextError>
Creates a new OpenGL context Sets the context as the current context.
fn is_current(&self) -> bool
Returns true if this context is the current one in this thread.
fn get_proc_address(&self, addr: &str) -> *const c_void
Returns the address of an OpenGL function.
Contrary to wglGetProcAddress, all available OpenGL functions return an address.
fn get_api(&self) -> Api
Returns the API that is currently provided by this window.
See Window::get_api for more infos.