Method: Gosu::Window#draw_line

Defined in:
lib/gosu_android/main-window.rb

#draw_line(x1, y1, c1, x2, y2, c2, z = 0, mode = :default) ⇒ Object

Draws a line from one point to another (last pixel exclusive). Note: OpenGL lines are not reliable at all and may have a missing pixel at the start or end point. Please only use this for debugging purposes. Otherwise, use a quad or image to simulate lines, or contribute a better draw_line to Gosu.



237
238
239
# File 'lib/gosu_android/main-window.rb', line 237

def draw_line(x1, y1, c1, x2, y2, c2, z=0, mode=:default)
  @graphics.draw_line(x1, y1, c1, x2, y2, c2, z, AM_MODES[mode])
end