ippa / chingu

OpenGL accelerated 2D game framework for Ruby
http://ippa.se/chingu
GNU Lesser General Public License v2.1
309 stars 66 forks source link

improvements and code cleanup in GFX helper #23

Closed erisdev closed 13 years ago

erisdev commented 13 years ago

Mostly, I cleaned up the GFX helper a little to reduce the amount of duplicated code. I think more can be done here but it's a good start!

Also, and most excitingly, I've changed the circle drawing algorithm to a much more awesome and efficient one by SiegeLord. Only two calls to cos and sin in the whole thing! I've also added support for drawing arcs, filled and unfilled, using the same code. Support for ellipses could also be added using Gosu's Window#scale but I didn't feel like tackling that problem since it probably wouldn't be that useful to most people.

ippa commented 13 years ago

Merged. About Window#scale, I feel the same as you atm.