pub struct NotCurrentContext { /* private fields */ }
Available on cgl_backend only.
Expand description

A wrapper arounh NSOpenGLContext that is known to be not current on the current thread.

Trait Implementations§

source§

impl AsRawContext for NotCurrentContext

source§

fn raw_context(&self) -> RawContext

Get the raw context handle.
source§

impl Debug for NotCurrentContext

source§

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

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

impl GetGlConfig for NotCurrentContext

§

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 NotCurrentContext

§

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 NotCurrentContext

source§

fn context_api(&self) -> ContextApi

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

impl NotCurrentGlContext for NotCurrentContext

§

type PossiblyCurrentContext = PossiblyCurrentContext

The type of possibly current context.
§

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

The surface supported by the context.
source§

fn treat_as_possibly_current(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.
source§

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

Make Self::Surface on the calling thread producing the Self::PossiblyCurrentContext indicating that the context could be current on the theard. Read more
source§

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

The same as Self::make_current, but provides a way to set read and draw surfaces. 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.
source§

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