pub struct GlContext<H: HasContext + ?Sized> { /* private fields */ }
Expand description
A wrapper around a glow
context with cached information.
Implementations§
source§impl<H: HasContext + ?Sized> GlContext<H>
impl<H: HasContext + ?Sized> GlContext<H>
sourcepub unsafe fn render_context(
&mut self,
width: u32,
height: u32
) -> RenderContext<'_, H>
pub unsafe fn render_context( &mut self, width: u32, height: u32 ) -> RenderContext<'_, H>
Get a render context.
Safety
The context must be current while calling this method, as well as any of the
piet::RenderContext
methods.
Trait Implementations§
Auto Trait Implementations§
impl<H> !RefUnwindSafe for GlContext<H>
impl<H> !Send for GlContext<H>
impl<H> !Sync for GlContext<H>
impl<H: ?Sized> Unpin for GlContext<H>where <H as HasContext>::Buffer: Unpin, <H as HasContext>::Program: Unpin, <H as HasContext>::Texture: Unpin, <H as HasContext>::VertexArray: Unpin,
impl<H> !UnwindSafe for GlContext<H>
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere U: RoundFrom<T>,
source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.