Struct limn_core::prelude::glutin::HeadlessContext
[−]
pub struct HeadlessContext { /* fields omitted */ }
Represents a headless OpenGL context.
Trait Implementations
impl GlContext for 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 ()
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.
fn swap_buffers(&self) -> Result<(), ContextError>
Swaps the buffers in case of double or triple buffering. Read more
fn get_pixel_format(&self) -> PixelFormat
Returns the pixel format of the main framebuffer of the context.
fn resize(&self, _width: u32, _height: u32)
Resize the GL context. Read more
impl GlContextExt for HeadlessContext
type Handle = *mut c_void
Raw context handle.
unsafe fn raw_handle(&self) -> <HeadlessContext as GlContextExt>::Handle
Returns the raw context handle.