pub fn create_texture_from_surface<'ren>(
    &'ren self, surf: &Surface,
  ) -> Result<Texture<'sdl, 'win, 'ren>, String> {
    let ptr: *mut SDL_Texture = unsafe { SDL_CreateTextureFromSurface(self.ptr, surf.ptr) };
    if ptr.is_null() {
      Err(get_error())
    } else {
      Ok(Texture {
        ptr,
        _marker: PhantomData,
      })
    }
  }
/// Makes a texture with the contents of the surface specified.
///
/// The TextureAccess hint for textures from this is "static".
///
/// The pixel format might be different from the surface's pixel format.
Makes a texture with the contents of the surface specified.
The TextureAccess hint for textures from this is "static".

The pixel format might be different from the surface's pixel format.
Makes a texture with the contents of the surface specified . The TextureAccess hint for textures from this is " static " . The pixel format might be different from the surface ' s pixel format .
pub fn create_texture_from_surface<'ren>(
    &'ren self, surf: &Surface,
  ) -> Result<Texture<'sdl, 'win, 'ren>, String> {
    let ptr: *mut SDL_Texture = unsafe { SDL_CreateTextureFromSurface(self.ptr, surf.ptr) };
    if ptr.is_null() {
      Err(get_error())
    } else {
      Ok(Texture {
        ptr,
        _marker: PhantomData,
      })
    }
  }
pub fn create_texture_from_surface < ' ren > ( & ' ren self , surf : & Surface , ) -> Result < Texture < ' sdl , ' win , ' ren > , String > { let ptr : * mut SDL_Texture = unsafe { SDL_CreateTextureFromSurface ( self . ptr , surf . ptr ) } ; if ptr . is_null ( ) { Err ( get_error ( ) ) } else { Ok ( Texture { ptr , _marker : PhantomData , } ) } }
Makes a texture with the contents of the surface specified.
Makes a texture with the contents of the surface specified .
&'ren self
surf
&Surface
&'ren self
surf
&Surface