Window#button_down(id). The base implementation of
button_down(id)is where the magic happens: https://github.com/gosu/gosu/blob/master/src/Window.cpp#L279-L303
gem install gosu-examplesand then
RUBY_VERSION =~ /(\d+.\d+)/
gosu-exampleswith Ruby 2.3 last week. I couldn't get OpenGL to install, and Chipmunk was extremely crashy. I wonder if it'll get worse now that Rails developers can use the Ubuntu subsystem on Windows 10 instead of Ruby-Installer.
@texture.save("test.png"), which will use OpenGL internally to download the texture data before saving it to a file.
glColor4f(1, 1, 1, 1)in
> because I assume that in a clean brand new environment, it is by default set to white
glblocks are supposed to give you a clean environment, so I think that was a bug (or at least unintuitive). Gosu 0.11.2+ will automatically reset the colour before running a
glblock; not sure when that version will be out, though.
Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill