super
when overriding 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-L303gem install gosu-examples
and then gosu-examples
or gosu-examples --fullscreen
work?begin
RUBY_VERSION =~ /(\d+.\d+)/
require "opengl/#{$1}/opengl"
rescue LoadError
require 'opengl/opengl'
end
gosu-examples
with 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 CubeModel#draw
.> because I assume that in a clean brand new environment, it is by default set to white
gl
blocks 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 gl
block; not sure when that version will be out, though.
Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill