Struct glium::backend::glutin_backend::GlutinHeadlessBackend [] [src]

pub struct GlutinHeadlessBackend {
    // some fields omitted
}

An implementation of the Backend trait for a glutin headless context.

Methods

impl GlutinHeadlessBackend
[src]

fn new(builder: HeadlessRendererBuilder) -> Result<GlutinHeadlessBackendGliumCreationError<CreationError>>

Builds a new backend from the builder.

Trait Implementations

impl Backend for GlutinHeadlessBackend
[src]

fn swap_buffers(&self) -> Result<()SwapBuffersError>

Swaps buffers at the end of a frame.

unsafe fn get_proc_address(&self, symbol: &str) -> *const c_void

Returns the address of an OpenGL function. Read more

fn get_framebuffer_dimensions(&self) -> (u32, u32)

Returns the dimensions of the window, or screen, etc.

fn is_current(&self) -> bool

Returns true if the OpenGL context is the current one in the thread.

unsafe fn make_current(&self)

Makes the OpenGL context the current context in the current thread.