Sha256: ead6cff1b39342c6a4e84deb360e8b9ff2bf8acd1456de56cd7277c04c161aab

Contents?: true

Size: 601 Bytes

Versions: 20

Compression:

Stored size: 601 Bytes

Contents

#! /usr/bin/env ruby
#
# Copyright (c) 2001 by Jim Menard <jimm@io.com>
#
# Released under the same license as Ruby. See
# http://www.ruby-lang.org/en/LICENSE.txt.
#

require 'Qt'
require './World'
require './WorldWindow'
require './Canvas'
require './Params'

app = Qt::Application.new(ARGV)
if (!Qt::GLFormat::hasOpenGL())
    warning("This system has no OpenGL support. Exiting.")
    exit -1
end

Params.readParamsFromFile(ARGV[0] || 'boids.properties')
world = World.instance
win = WorldWindow.new
# app.mainWidget = win

World.instance.canvas = win.canvas
win.show
World.instance.start
app.exec

Version data entries

20 entries across 20 versions & 2 rubygems

Version Path
rock-qtbindings-4.8.6.5 examples/ruboids/ruboids/ruboids.rb
qtbindings-4.8.6.5 examples/ruboids/ruboids/ruboids.rb
qtbindings-4.8.6.4 examples/ruboids/ruboids/ruboids.rb
qtbindings-4.8.6.2 examples/ruboids/ruboids/ruboids.rb
qtbindings-4.8.6.1 examples/ruboids/ruboids/ruboids.rb
qtbindings-4.8.6.0 examples/ruboids/ruboids/ruboids.rb
qtbindings-4.8.6.0-x86-mingw32 examples/ruboids/ruboids/ruboids.rb
qtbindings-4.8.5.2 examples/ruboids/ruboids/ruboids.rb
qtbindings-4.8.5.2-x86-mingw32 examples/ruboids/ruboids/ruboids.rb
qtbindings-4.8.5.1 examples/ruboids/ruboids/ruboids.rb
qtbindings-4.8.5.0 examples/ruboids/ruboids/ruboids.rb
qtbindings-4.8.3.0-x86-mingw32 examples/ruboids/ruboids/ruboids.rb
qtbindings-4.8.3.0 examples/ruboids/ruboids/ruboids.rb
qtbindings-4.6.3.4-x86-mingw32 examples/ruboids/ruboids/ruboids.rb
qtbindings-4.6.3.4 examples/ruboids/ruboids/ruboids.rb
qtbindings-4.6.3.3 examples/ruboids/ruboids/ruboids.rb
qtbindings-4.6.3.2-x86-mingw32 examples/ruboids/ruboids/ruboids.rb
qtbindings-4.6.3.2 examples/ruboids/ruboids/ruboids.rb
qtbindings-4.6.3.1 examples/ruboids/ruboids/ruboids.rb
qtbindings-4.6.3.1-x86-mingw32 examples/ruboids/ruboids/ruboids.rb