pub struct GlContext { /* private fields */ }Implementations§
Source§impl GlContext
impl GlContext
pub fn create( parent: &impl HasRawWindowHandle, config: GlConfig, ) -> Result<GlContext, GlError>
pub fn make_current(&self)
pub fn make_not_current(&self)
pub fn get_proc_address(&self, symbol: &str) -> *const c_void
pub fn swap_buffers(&self)
Auto Trait Implementations§
impl Freeze for GlContext
impl RefUnwindSafe for GlContext
impl !Send for GlContext
impl !Sync for GlContext
impl Unpin for GlContext
impl UnwindSafe for GlContext
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