Skip to content

Commit

Permalink
getting near
Browse files Browse the repository at this point in the history
  • Loading branch information
monkstone committed Aug 21, 2015
1 parent 7cdd928 commit 86adbb5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/ruby-processing/app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ module Processing
Dir["#{RP_CONFIG["PROCESSING_ROOT"]}/core/library/\*.jar"].each do |jar|
require jar unless jar =~ /native/
end
Java::Monkstone::MathToolLibrary.new.load(JRuby.runtime, false)
# Include some core processing classes that we'd like to use:
include_package 'processing.core'

Expand All @@ -40,6 +41,7 @@ module Processing
class App < PApplet
include Math
include HelperMethods
include MathTool
# Alias some methods for familiarity for Shoes coders.
# attr_accessor :frame, :title
alias_method :oval, :ellipse
Expand Down Expand Up @@ -194,6 +196,7 @@ def run_sketch(options = {})
# unfettered access to the methods defined in the surrounding class.
module Proxy
include Math
include MathTool
# Generate a list of method names to proxy for inner classes.
# Nothing camelCased, nothing __internal__, just the Processing API.
def self.desired_method_names(inner_class)
Expand Down

0 comments on commit 86adbb5

Please sign in to comment.