pub unsafe fn gl_create_context<'win>(&'win self) -> Result<GLContext<'sdl, 'win>, String> {
    let ctx = SDL_GL_CreateContext(self.ptr);
    if ctx.is_null() {
      Err(get_error())
    } else {
      Ok(GLContext {
        ctx,
        _marker: PhantomData,
      })
    }
  }
/// Creates a context for this window and makes it current.
Creates a context for this window and makes it current.
Creates a context for this window and makes it current .
pub unsafe fn gl_create_context<'win>(&'win self) -> Result<GLContext<'sdl, 'win>, String> {
    let ctx = SDL_GL_CreateContext(self.ptr);
    if ctx.is_null() {
      Err(get_error())
    } else {
      Ok(GLContext {
        ctx,
        _marker: PhantomData,
      })
    }
  }
pub unsafe fn gl_create_context < ' win > ( & ' win self ) -> Result < GLContext < ' sdl , ' win > , String > { let ctx = SDL_GL_CreateContext ( self . ptr ) ; if ctx . is_null ( ) { Err ( get_error ( ) ) } else { Ok ( GLContext { ctx , _marker : PhantomData , } ) } }
Creates a context for this window and makes it current.
Creates a context for this window and makes it current .
&'win self
&'win self