Struct glutin::Context [−][src]
pub struct Context<T: ContextCurrentState> { /* fields omitted */ }Expand description
Represents an OpenGL Context.
A Context is normally associated with a single Window, however
Contexts can be shared between multiple windows or be headless.
If a Context is backed by a window, it will be wrapped by either
RawContext<T> or WindowedContext<T>.
Example
let cb = glutin::ContextBuilder::new()
.with_vsync(true)
.with_multisampling(8)
.with_shared_lists(some_context.context());