pub struct GLContext { /* private fields */ }
Implementations
sourceimpl GLContext
impl GLContext
sourcepub fn is_current(&self) -> bool
pub fn is_current(&self) -> bool
Returns true if the OpenGL context is the current one in the thread.
sourceimpl GLContext
impl GLContext
pub unsafe fn raw(&self) -> SDL_GLContext
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for GLContext
impl !Send for GLContext
impl !Sync for GLContext
impl Unpin for GLContext
impl UnwindSafe for GLContext
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more