pub trait NotCurrentGlContext: Sealed {
    type PossiblyCurrentContext: PossiblyCurrentGlContext;

    // Required method
    fn treat_as_possibly_current(self) -> Self::PossiblyCurrentContext;
}
Expand description

A trait to group common not current operations.

Required Associated Types§

source

type PossiblyCurrentContext: PossiblyCurrentGlContext

The type of possibly current context.

Required Methods§

source

fn treat_as_possibly_current(self) -> Self::PossiblyCurrentContext

Treat the not current context as possibly current. The operation is safe because the possibly current context is more restricted and not guaranteed to be current.

Implementors§

source§

impl NotCurrentGlContext for glutin::context::NotCurrentContext

source§

impl NotCurrentGlContext for glutin::api::egl::context::NotCurrentContext

Available on egl_backend only.
source§

impl NotCurrentGlContext for glutin::api::wgl::context::NotCurrentContext

Available on wgl_backend only.