Sha256: 855cefed3e460ea719d1dab07b2c338667eac24f184974659a5c180e87e55e13
Contents?: true
Size: 528 Bytes
Versions: 1
Compression:
Stored size: 528 Bytes
Contents
require_relative "glfw/version" require_relative "glfw/glfw" module GLFW p self.init p Vulkan.supported? Window.new(800, 600, "Hello, World!") do |window| window.make_current self.swap_interval(1) pixels32 = [0, 0, 255, 255].pack('C*') * (32 * 32) pixels16 = [0, 255, 255, 255].pack('C*') * (16 * 16) window.set_icon(Image.new(32, 32, pixels32), Image.new(16, 16, pixels16)) until window.closing? self.poll_events window.swap_buffers end end self.terminate end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
glfw-0.9.8 | lib/glfw.rb |