Sha256: f33682f09c34b01fc70274e6bd3eafe8c7bb309c6ddf4e4787bae25ee4c73f33

Contents?: true

Size: 1.59 KB

Versions: 1

Compression:

Stored size: 1.59 KB

Contents

require 'rbconfig'

VERBOSE = true

unless defined? K9_ROOT
  $LOAD_PATH << File.expand_path(File.dirname(__FILE__))
  K9_ROOT = File.expand_path(File.dirname(__FILE__) + '/../')
end

# guard prevents issues with mri ruby when using creator
if RUBY_PLATFORM == 'java'
  #def platform
  #  host_os = RbConfig::CONFIG['host_os']
  #  return '*mac-universal.jar' if host_os =~ /mac|darwin/
  #  bit = ENV_JAVA['sun.arch.data.model']
  #  if host_os =~ /linux/
  #    bit.eql?('32') ? '*linux-i586.jar' : '*linux-amd64.jar'
  #  elsif host_os =~ /cygwin|windows/
  #    bit.eql?('32') ? '*windows-i586.jar' : '*windows-amd64.jar'
  #  else
  #    '*armv6hf.jar'
  #  end
  #end
  working_directory = File.join(File.dirname(__FILE__))
  $LOAD_PATH << working_directory unless $LOAD_PATH.include?(working_directory)
  Dir[File.join(working_directory, '*.jar')].each do |jar|
    # require_relative jar unless jar =~ /native/ (breaks netbeans)
    require jar unless jar =~ /native/
  end
  #Dir[File.join(working_directory, platform)].each do |jar|
    # require_relative jar (break netbeans)
   # require jar
 # end
  Java::ProcessingFastmath::DeglutLibrary.new.load(JRuby.runtime, false)
  Java::ProcessingVecmathVec2::Vec2Library.new.load(JRuby.runtime, false)
  Java::ProcessingVecmathVec3::Vec3Library.new.load(JRuby.runtime, false)
  AppRender = Java::ProcessingVecmath::AppRender
  ShapeRender = Java::ProcessingVecmath::ShapeRender
  require 'jruby_art/app'
  require 'jruby_art/helper_methods'
end

require 'jruby_art/version'
require 'jruby_art/helpers/numeric'
require 'jruby_art/helpers/range'
require 'jruby_art/runner'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jruby_art-0.2.2.pre lib/jruby_art.rb