Skip to content

Commit deabc7a

Browse files
committed
Refactor GfxRenderer and ShapeRenderer
1 parent 07168f1 commit deabc7a

File tree

7 files changed

+14
-12
lines changed

7 files changed

+14
-12
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
**v4.0.0** Require use of jdk17 update to min JRuby-3.2.0.0
2+
13
**v3.11.0** Suggest use of JRuby-9.3.1.0+, some refactoring of GfxRender and ShapeRender. Change `declared_field` to field possible since JRuby-9.3.0.0, required since JRuby-9.3.1.0
24

35
**v3.10.0** Default to using FastNoise module, with alternative of SmoothNoise module.

lib/propane/app.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ module Propane
1111
Java::Monkstone::PropaneLibrary.load(JRuby.runtime)
1212
SKETCH_ROOT = File.absolute_path('.')
1313
# import custom Vecmath renderers
14-
java_import 'monkstone.vecmath.GfxRender'
15-
java_import 'monkstone.vecmath.ShapeRender'
14+
import 'monkstone.vecmath.GfxRender'
15+
import 'monkstone.vecmath.ShapeRender'
1616

1717
# module NoiseModule
1818
# java_import 'monkstone.noise.NoiseMode'

lib/propane/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module Propane
4-
VERSION = '3.11.0'
4+
VERSION = '4.0.0'
55
end

pom.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
project 'propane', 'https://github.com/monkstone/propane' do
44
model_version '4.0.0'
5-
id 'propane:propane:3.11.0'
5+
id 'propane:propane:4.0.0'
66
packaging 'jar'
77

88
description 'An integrated processing-core (somewhat hacked), with additional java code for a jruby version of processing.'
@@ -44,7 +44,7 @@
4444
'polyglot.dump.pom' => 'pom.xml',
4545
'project.build.sourceEncoding' => 'utf-8',
4646
'jogl.version' => '2.3.2', # for compiling actual included 2.4.0-rc
47-
'jruby.version' => '9.3.1.0',
47+
'jruby.version' => '9.3.2.0',
4848
'batik.version' => '1.14',
4949
'itextpdf.version' => '5.5.13.2',
5050
'jruby.api' => 'http://jruby.org/apidocs/')

pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ DO NOT MODIFY - GENERATED CODE
1111
<modelVersion>4.0.0</modelVersion>
1212
<groupId>propane</groupId>
1313
<artifactId>propane</artifactId>
14-
<version>3.11.0</version>
14+
<version>4.0.0</version>
1515
<name>propane</name>
1616
<description>An integrated processing-core (somewhat hacked), with additional java code for a jruby version of processing.</description>
1717
<url>https://github.com/monkstone/propane</url>
@@ -66,7 +66,7 @@ DO NOT MODIFY - GENERATED CODE
6666
<itextpdf.version>5.5.13.2</itextpdf.version>
6767
<jogl.version>2.3.2</jogl.version>
6868
<jruby.api>http://jruby.org/apidocs/</jruby.api>
69-
<jruby.version>9.3.1.0</jruby.version>
69+
<jruby.version>9.3.2.0</jruby.version>
7070
<polyglot.dump.pom>pom.xml</polyglot.dump.pom>
7171
<processing.api>http://processing.github.io/processing-javadocs/core/</processing.api>
7272
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>

propane.gemspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,5 @@ Gem::Specification.new do |gem|
3737
gem.add_runtime_dependency 'arcball', '~> 1.2'
3838
gem.require_paths = ['lib']
3939
gem.platform = 'java'
40-
gem.requirements << 'java runtime >= 11.0.11+'
40+
gem.requirements << 'java runtime >= 17.0.1+'
4141
end

src/main/java/processing/core/PApplet.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/*
44
Part of the Processing project - http://processing.org
55

6-
Copyright (c) 2012-20 The Processing Foundation
6+
Copyright (c) 2012-22 The Processing Foundation
77
Copyright (c) 2004-12 Ben Fry and Casey Reas
88
Copyright (c) 2001-04 Massachusetts Institute of Technology
99

@@ -2118,7 +2118,7 @@ protected PGraphics makeGraphics(int w, int h,
21182118
/**
21192119
* Create default renderer, likely to be resized, but needed for surface
21202120
* init.
2121-
* @return
2121+
* @return
21222122
*/
21232123
protected PGraphics createPrimaryGraphics() {
21242124
return makeGraphics(sketchWidth(), sketchHeight(),
@@ -2146,7 +2146,7 @@ protected PGraphics createPrimaryGraphics() {
21462146
* to the parent PApplet is included, which makes save() work without
21472147
* needing an absolute path.
21482148
*
2149-
* @return
2149+
* @return
21502150
* @webref image
21512151
* @param w width in pixels
21522152
* @param h height in pixels
@@ -3224,7 +3224,7 @@ the file executable before attempting to open it (chmod +x).
32243224
*
32253225
* ( end auto-generated )
32263226
*
3227-
* @return
3227+
* @return
32283228
* @webref input:files
32293229
* @param args arguments to the launcher, eg. a filename.
32303230
* @usage Application

0 commit comments

Comments
 (0)