Struct glutin::api::egl::context::PossiblyCurrentContext

source ·
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

source

pub fn make_current_surfaceless(&self) -> Result<()>

Make this context current on the calling thread.

Trait Implementations§

source§

impl AsRawContext for PossiblyCurrentContext

source§

fn raw_context(&self) -> RawContext

Get the raw context handle.
source§

impl Debug for PossiblyCurrentContext

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl GetGlConfig for PossiblyCurrentContext

§

type Target = Config

The config type.
source§

fn config(&self) -> Self::Target

Get the GL config used to create a particular GL object.
source§

impl GetGlDisplay for PossiblyCurrentContext

§

type Target = Display

The display used by the object.
source§

fn display(&self) -> Self::Target

Obtain the GL display used to create a particular GL object.
source§

impl GlContext for PossiblyCurrentContext

source§

fn context_api(&self) -> ContextApi

Get the ContextApi used by the context. Read more
source§

impl PossiblyCurrentGlContext for PossiblyCurrentContext

§

type NotCurrentContext = NotCurrentContext

The not current context type.
§

type Surface<T: SurfaceTypeTrait> = Surface<T>

The surface supported by the context.
source§

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 more
source§

fn is_current(&self) -> bool

Returns true if this context is the current one in this thread.
source§

fn make_current<T: SurfaceTypeTrait>( &self, surface: &Self::Surface<T>, ) -> Result<()>

Make Self::Surface current on the calling thread. Read more
source§

fn make_current_draw_read<T: SurfaceTypeTrait>( &self, surface_draw: &Self::Surface<T>, surface_read: &Self::Surface<T>, ) -> Result<()>

The same as Self::make_current but provides a way to set read and draw surfaces explicitly. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

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

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

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

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.