pub struct PossiblyCurrentContext { /* private fields */ }
Available on
egl_backend
only.Expand description
A wrapper around EGLContext
that could be current for the current thread.
Implementations§
source§impl PossiblyCurrentContext
impl PossiblyCurrentContext
sourcepub fn make_current_surfaceless(&self) -> Result<()>
pub fn make_current_surfaceless(&self) -> Result<()>
Make this context current on the calling thread.
Trait Implementations§
source§impl AsRawContext for PossiblyCurrentContext
impl AsRawContext for PossiblyCurrentContext
source§fn raw_context(&self) -> RawContext
fn raw_context(&self) -> RawContext
Get the raw context handle.
source§impl Debug for PossiblyCurrentContext
impl Debug for PossiblyCurrentContext
source§impl GetGlConfig for PossiblyCurrentContext
impl GetGlConfig for PossiblyCurrentContext
source§impl GlContext for PossiblyCurrentContext
impl GlContext for PossiblyCurrentContext
source§fn context_api(&self) -> ContextApi
fn context_api(&self) -> ContextApi
Get the
ContextApi
used by the context. Read moresource§impl<T: SurfaceTypeTrait> PossiblyCurrentContextGlSurfaceAccessor<T> for PossiblyCurrentContext
impl<T: SurfaceTypeTrait> PossiblyCurrentContextGlSurfaceAccessor<T> for PossiblyCurrentContext
source§fn make_current(&self, surface: &Self::Surface) -> Result<()>
fn make_current(&self, surface: &Self::Surface) -> Result<()>
Make
Self::Surface
current on the calling thread. Read moresource§fn make_current_draw_read(
&self,
surface_draw: &Self::Surface,
surface_read: &Self::Surface
) -> Result<()>
fn make_current_draw_read( &self, surface_draw: &Self::Surface, surface_read: &Self::Surface ) -> Result<()>
The same as
Self::make_current
but provides a way to set read and
draw surfaces explicitly. Read moresource§impl PossiblyCurrentGlContext for PossiblyCurrentContext
impl PossiblyCurrentGlContext for PossiblyCurrentContext
§type NotCurrentContext = NotCurrentContext
type NotCurrentContext = NotCurrentContext
The not current context type.
source§fn make_not_current(self) -> Result<Self::NotCurrentContext>
fn make_not_current(self) -> Result<Self::NotCurrentContext>
Make the context not current to the current thread and returns a
Self::NotCurrentContext
to indicate that the context is a not
current to allow sending it to the different thread. Read moresource§fn is_current(&self) -> bool
fn is_current(&self) -> bool
Returns
true
if this context is the current one in this thread.Auto Trait Implementations§
impl RefUnwindSafe for PossiblyCurrentContext
impl !Send for PossiblyCurrentContext
impl !Sync for PossiblyCurrentContext
impl Unpin for PossiblyCurrentContext
impl UnwindSafe for PossiblyCurrentContext
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more