Struct nannou::ui::backend::glium::glium::backend::glutin::glutin::Context[]

pub struct Context { /* fields omitted */ }

Represents an OpenGL context.

A Context is normally associated with a single Window, however Contexts can be shared between multiple windows.

Example

let context = glutin::ContextBuilder::new()
    .with_vsync(true)
    .with_multisampling(8)
    .with_shared_lists(some_gl_window.context());

Trait Implementations

impl GlContext for Context

Sets the context as the current context.

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

Returns the address of an OpenGL function.

Swaps the buffers in case of double or triple buffering. Read more

Returns the OpenGL API being used.

Returns the pixel format of the main framebuffer of the context.

Resize the GL context. Read more

impl GlContextExt for Context

Raw context handle.

Returns the raw context handle.

Auto Trait Implementations

impl Send for Context

impl Sync for Context