pub fn draw_line(&self, x1: i32, y1: i32, x2: i32, y2: i32) -> Result<(), String> {
    let out = unsafe { SDL_RenderDrawLine(self.ptr, x1, y1, x2, y2) };
    if out == 0 {
      Ok(())
    } else {
      Err(get_error())
    }
  }
/// Draws a line that includes both end points.
Draws a line that includes both end points.
Draws a line that includes both end points .
pub fn draw_line(&self, x1: i32, y1: i32, x2: i32, y2: i32) -> Result<(), String> {
    let out = unsafe { SDL_RenderDrawLine(self.ptr, x1, y1, x2, y2) };
    if out == 0 {
      Ok(())
    } else {
      Err(get_error())
    }
  }
pub fn draw_line ( & self , x1 : i32 , y1 : i32 , x2 : i32 , y2 : i32 ) -> Result < ( ) , String > { let out = unsafe { SDL_RenderDrawLine ( self . ptr , x1 , y1 , x2 , y2 ) } ; if out == 0 { Ok ( ( ) ) } else { Err ( get_error ( ) ) } }
Draws a line that includes both end points.
Draws a line that includes both end points .
&self
x1
i32
y1
i32
x2
i32
y2
i32
&self
x1
i32
y1
i32
x2
i32
y2
i32