I am trying to change on my code several calls to draw_quad method to use draw_rect, as I need only flat colored rectangles, but I get an undefined method error when replacing $window.draw_quad(...) by $window.draw_rect(...). $window is a Gosu::Window and the call to draw_quad worked without problems. Am I doing anything wrong?
I am running gosu-0.12.1-x64-mingw32 on ruby-2.4.2-p198 onWindows 10.
Thank you for your help.
Using and passing a
object around to all of the drawing methods was deprecated a few versions back. Now all of the drawing methods are
class methods and don't require a
The latest documentation can be found here: http://www.rubydoc.info/github/gosu/gosu/
See also this issue:https://github.com/gosu/gosu/issues/418
This is exactly what happened, and yet I feel it's pretty confusing. Having to prefix methods with
does also not really feel like progress. Maybe Window subclasses (and others of course) could generally get around this by using
? I'll need to play around with this for a bit.
Thank you very much for your comment, I am taking it into account in my project.
Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill