propane 3.3.1-java → 3.4.0-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.mvn/wrapper/MavenWrapperDownloader.java +117 -0
- data/.mvn/wrapper/maven-wrapper.properties +2 -3
- data/.travis.yml +9 -0
- data/CHANGELOG.md +7 -5
- data/README.md +1 -1
- data/Rakefile +8 -21
- data/lib/propane/native_folder.rb +16 -11
- data/lib/propane/version.rb +1 -1
- data/mvnw +127 -51
- data/mvnw.cmd +182 -145
- data/pom.rb +50 -48
- data/pom.xml +15 -6
- data/propane.gemspec +3 -3
- data/src/main/java/monkstone/vecmath/vec2/Vec2.java +1 -1
- data/src/main/java/monkstone/vecmath/vec3/Vec3.java +2 -2
- data/src/main/java/processing/awt/PGraphicsJava2D.java +1616 -1609
- data/src/main/java/processing/awt/PShapeJava2D.java +273 -265
- data/src/main/java/processing/awt/PSurfaceAWT.java +830 -817
- data/src/main/java/processing/core/PApplet.java +3990 -3990
- data/src/main/java/processing/core/PGraphics.java +37 -37
- data/src/main/java/processing/core/PImage.java +9 -9
- data/src/main/java/processing/core/PMatrix2D.java +6 -0
- data/src/main/java/processing/core/PShape.java +2 -2
- data/src/main/java/processing/core/PShapeOBJ.java +425 -409
- data/src/main/java/processing/core/PShapeSVG.java +167 -159
- data/src/main/java/processing/core/PSurfaceNone.java +10 -0
- data/src/main/java/processing/core/ThinkDifferent.java +7 -14
- data/src/main/java/processing/event/Event.java +7 -6
- metadata +9 -7
@@ -22,11 +22,12 @@
|
|
22
22
|
|
23
23
|
package processing.core;
|
24
24
|
|
25
|
-
import java.awt
|
26
|
-
|
25
|
+
import java.awt.Desktop;
|
26
|
+
import java.awt.Image;
|
27
|
+
import java.awt.Taskbar;
|
27
28
|
|
28
29
|
/**
|
29
|
-
* Deal with issues related to Mac OS window
|
30
|
+
* Deal with issues related to Mac OS window behaviour.
|
30
31
|
*
|
31
32
|
* We have to register a quit handler to safely shut down the sketch,
|
32
33
|
* otherwise OS X will just kill the sketch when a user hits Cmd-Q.
|
@@ -56,11 +57,9 @@ public class ThinkDifferent {
|
|
56
57
|
* @param sketch The sketch whose quit handler callback should be set.
|
57
58
|
*/
|
58
59
|
static public void init(final PApplet sketch) {
|
59
|
-
getDesktop().setQuitHandler((event, quitResponse) -> {
|
60
|
-
sketch.exit();
|
61
|
-
|
62
|
-
boolean noKnownCrash = PApplet.uncaughtThrowable == null;
|
63
|
-
|
60
|
+
getDesktop().setQuitHandler((var event, var quitResponse) -> {
|
61
|
+
sketch.exit();
|
62
|
+
var noKnownCrash = PApplet.uncaughtThrowable == null;
|
64
63
|
if (noKnownCrash && !attemptedQuit) { // haven't tried yet
|
65
64
|
quitResponse.cancelQuit(); // tell OS X we'll handle this
|
66
65
|
attemptedQuit = true;
|
@@ -111,10 +110,4 @@ public class ThinkDifferent {
|
|
111
110
|
|
112
111
|
return desktop;
|
113
112
|
}
|
114
|
-
|
115
|
-
|
116
|
-
// Instead, just use Application.getApplication() inside your app
|
117
|
-
// static public Application getApplication() {
|
118
|
-
// return desktop;
|
119
|
-
// }
|
120
113
|
}
|
@@ -28,7 +28,7 @@ public class Event {
|
|
28
28
|
|
29
29
|
// These correspond to the java.awt.Event modifiers (not to be confused with
|
30
30
|
// the newer getModifiersEx), though they're not guaranteed to in the future.
|
31
|
-
static public final int SHIFT = 1
|
31
|
+
static public final int SHIFT = 1;
|
32
32
|
static public final int CTRL = 1 << 1;
|
33
33
|
static public final int META = 1 << 2;
|
34
34
|
static public final int ALT = 1 << 3;
|
@@ -52,11 +52,12 @@ public class Event {
|
|
52
52
|
}
|
53
53
|
|
54
54
|
/**
|
55
|
-
* Get the platform-native event object.
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
55
|
+
* Get the platform-native event object.This might be the java.awt event on
|
56
|
+
the desktop, though if you're using OpenGL on the desktop it'll be a NEWT
|
57
|
+
event that JOGL uses. Android events are something else altogether.
|
58
|
+
Bottom line, use this only if you know what you're doing, and don't make
|
59
|
+
assumptions about the class type.
|
60
|
+
* @return
|
60
61
|
*/
|
61
62
|
public Object getNative() {
|
62
63
|
return nativeObject;
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: propane
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.4.0
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- monkstone
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-09-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '5.
|
33
|
+
version: '5.11'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '5.
|
40
|
+
version: '5.11'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: arcball
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -70,7 +70,9 @@ files:
|
|
70
70
|
- ".github/ISSUE_TEMPLATE.md"
|
71
71
|
- ".gitignore"
|
72
72
|
- ".mvn/extensions.xml"
|
73
|
+
- ".mvn/wrapper/MavenWrapperDownloader.java"
|
73
74
|
- ".mvn/wrapper/maven-wrapper.properties"
|
75
|
+
- ".travis.yml"
|
74
76
|
- ".yardopts"
|
75
77
|
- CHANGELOG.md
|
76
78
|
- Gemfile
|
@@ -89,7 +91,7 @@ files:
|
|
89
91
|
- lib/jogl-all-natives-macosx-universal.jar
|
90
92
|
- lib/jogl-all-natives-windows-amd64.jar
|
91
93
|
- lib/jogl-all.jar
|
92
|
-
- lib/propane-3.
|
94
|
+
- lib/propane-3.4.0.jar
|
93
95
|
- lib/propane.rb
|
94
96
|
- lib/propane/app.rb
|
95
97
|
- lib/propane/creators/sketch_class.rb
|
@@ -288,8 +290,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
288
290
|
- !ruby/object:Gem::Version
|
289
291
|
version: '0'
|
290
292
|
requirements:
|
291
|
-
- java runtime >= 11.0.
|
292
|
-
rubygems_version: 3.0.
|
293
|
+
- java runtime >= 11.0.2+
|
294
|
+
rubygems_version: 3.0.4
|
293
295
|
signing_key:
|
294
296
|
specification_version: 4
|
295
297
|
summary: ruby implementation of processing-4.0 on MacOS, linux and windows (64bit
|