Trait glutin::context::NotCurrentGlContext
source · 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§
sourcetype PossiblyCurrentContext: PossiblyCurrentGlContext
type PossiblyCurrentContext: PossiblyCurrentGlContext
The type of possibly current context.
Required Methods§
sourcefn treat_as_possibly_current(self) -> Self::PossiblyCurrentContext
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
impl NotCurrentGlContext for glutin::context::NotCurrentContext
source§impl NotCurrentGlContext for glutin::api::egl::context::NotCurrentContext
Available on egl_backend
only.
impl NotCurrentGlContext for glutin::api::egl::context::NotCurrentContext
Available on
egl_backend
only.source§impl NotCurrentGlContext for glutin::api::glx::context::NotCurrentContext
Available on glx_backend
only.
impl NotCurrentGlContext for glutin::api::glx::context::NotCurrentContext
Available on
glx_backend
only.