[][src]Struct sdl2::video::GLContext

pub struct GLContext { /* fields omitted */ }

Methods

impl GLContext[src]

pub fn is_current(&self) -> bool[src]

Returns true if the OpenGL context is the current one in the thread.

impl GLContext[src]

pub const unsafe fn raw(&self) -> SDL_GLContext[src]

Trait Implementations

impl Drop for GLContext[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.