Struct glutin::HeadlessContext [−][src]
pub struct HeadlessContext { /* fields omitted */ }Represents a headless OpenGL context.
Trait Implementations
impl GlContext for HeadlessContext[src]
impl GlContext for HeadlessContextunsafe fn make_current(&self) -> Result<(), ContextError>[src]
unsafe fn make_current(&self) -> Result<(), ContextError>Creates a new OpenGL context Sets the context as the current context.
fn is_current(&self) -> bool[src]
fn is_current(&self) -> boolReturns true if this context is the current one in this thread.
fn get_proc_address(&self, addr: &str) -> *const ()[src]
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[src]
fn get_api(&self) -> ApiReturns the API that is currently provided by this window.
See Window::get_api for more infos.
fn swap_buffers(&self) -> Result<(), ContextError>[src]
fn swap_buffers(&self) -> Result<(), ContextError>Swaps the buffers in case of double or triple buffering. Read more
fn get_pixel_format(&self) -> PixelFormat[src]
fn get_pixel_format(&self) -> PixelFormatReturns the pixel format of the main framebuffer of the context.
fn resize(&self, _size: PhysicalSize)[src]
fn resize(&self, _size: PhysicalSize)Resize the GL context. Read more
impl GlContextExt for HeadlessContext[src]
impl GlContextExt for HeadlessContextAuto Trait Implementations
impl Send for HeadlessContext
impl Send for HeadlessContextimpl Sync for HeadlessContext
impl Sync for HeadlessContext