pub struct RenderContext<'a> {
pub gl: &'a Context,
pub state: &'a mut GlState,
}Expand description
Rendering context that provides access to GL state.
Fields§
§gl: &'a Context§state: &'a mut GlStateAuto Trait Implementations§
impl<'a> Freeze for RenderContext<'a>
impl<'a> !RefUnwindSafe for RenderContext<'a>
impl<'a> !Send for RenderContext<'a>
impl<'a> !Sync for RenderContext<'a>
impl<'a> Unpin for RenderContext<'a>
impl<'a> UnsafeUnpin for RenderContext<'a>
impl<'a> !UnwindSafe for RenderContext<'a>
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