[][src]Enum candelabre_windowing::CandlCurrentWrapper

pub enum CandlCurrentWrapper {
    PossiblyCurrent(WindowedContext<PossiblyCurrent>),
    NotCurrent(WindowedContext<NotCurrent>),
}

Tracking the context status

When working with OpenGL context it's important to know if the context you working with is the current one or not. If you're using only one window, it's ok to avoid this enum and only use PossiblyCurrent, because the context status will never change. But if you need multiple windows, you need to know if the context you want to work with is the current one, and if not you need to change that. The CandlManager is here to do that for you, and use CandlCurrentWrapper to do so.

Variants

OpenGL context is probably current

OpenGL context is not current

Trait Implementations

impl Debug for CandlCurrentWrapper[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.