[][src]Struct glutin::Context

pub struct Context<T: ContextCurrentState> { /* fields omitted */ }

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>.


let cb = glutin::ContextBuilder::new()


impl<T: ContextCurrentState> Context<T>[src]

impl Context<PossiblyCurrent>[src]

Trait Implementations

impl<T: ContextCurrentState> ContextTraitExt for Context<T>[src]

type Handle = RawHandle

Raw context handle.

impl<T: Debug + ContextCurrentState> Debug for Context<T>[src]

Auto Trait Implementations

impl<T> Send for Context<T> where
    T: Send

impl<T> Sync for Context<T> where
    T: Sync

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> BorrowMut for T where
    T: ?Sized

impl<T, U> TryInto for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.

impl<T> Erased for T