lib/onsengame/window.rb in onsengame-0.0.2 vs lib/onsengame/window.rb in onsengame-0.0.3

- old
+ new

@@ -33,11 +33,33 @@ else current_scene.button_down(id) end end - private def current_scene @scenes[0] + end + + def draw_rectangle(x1, y1, x2, y2, color, z_order) + draw_quad(x1, y1, color, + x2, y1, color, + x2, y2, color, + x1, y2, color, + z_order) + end + + def draw_rectangle_outline(x1, y1, x2, y2, color, z_order) + draw_line(x1, y1, color, + x2, y1, color, + z_order) + draw_line(x1, y1, color, + x1, y2, color, + z_order) + draw_line(x1, y2, color, + x2, y2, color, + z_order) + draw_line(x2, y1, color, + x2, y2, color, + z_order) end end end