Sha256: a5cc97dc347d0f4a534cbed1c3036cd2e30c1a49f941d2cceda03ecdd4a3d363

Contents?: true

Size: 1.2 KB

Versions: 2

Compression:

Stored size: 1.2 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'
  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

2 entries across 2 versions & 1 rubygems

Version Path
jruby_art-0.2.4.pre lib/jruby_art.rb
jruby_art-0.2.3.pre lib/jruby_art.rb