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

pub struct GLContext {
    // some fields omitted
}

Methods

impl GLContext

fn is_current(&self) -> bool

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

impl GLContext

unsafe fn raw(&self) -> SDL_GLContext

Trait Implementations

impl Drop for GLContext

fn drop(&mut self)