lib/rubygoo/adapters/rubygame_render_adapter.rb in rubygoo-0.0.5 vs lib/rubygoo/adapters/rubygame_render_adapter.rb in rubygoo-0.0.6

- old
+ new

@@ -8,16 +8,23 @@ def draw_box(x1,y1,x2,y2,color) @screen.draw_box [x1,y1], [x2,y2], convert_color(color) end - # fill in a rect with color or full screen if no color - def fill(color,rect=nil) - if rect.nil? - @screen.fill convert_color(color) - else - @screen.fill convert_color(color), rect - end + def draw_circle(cx,cy,radius,color) + @screen.draw_circle_a [cx,cy],radius,convert_color(color) + end + + def draw_circle_filled(cx,cy,radius,color) + @screen.draw_circle_s [cx,cy],radius,convert_color(color) + end + + def fill_screen(color) + @screen.draw_box_s [0,0], [@screen.width,@screen.height], convert_color(color) + end + + def fill(x1,y1,x2,y2,color) + @screen.draw_box_s [x1,y1], [x2,y2], convert_color(color) end def convert_color(goo_color) [goo_color.r,goo_color.g,goo_color.b,goo_color.a] end