propane 3.10.0-java → 3.11.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/maven-wrapper.properties +1 -1
- data/CHANGELOG.md +2 -0
- data/README.md +7 -7
- data/lib/propane/app.rb +2 -5
- data/lib/propane/helper_methods.rb +6 -6
- data/lib/propane/version.rb +1 -1
- data/lib/{propane-3.10.0.jar → propane-3.11.0.jar} +0 -0
- data/pom.rb +6 -6
- data/pom.xml +6 -6
- data/propane.gemspec +3 -3
- data/src/main/java/monkstone/noise/OpenSimplex2F.java +838 -737
- data/src/main/java/monkstone/vecmath/vec2/Vec2.java +8 -13
- data/src/main/java/monkstone/vecmath/vec3/Vec3.java +14 -28
- data/src/main/java/processing/awt/PImageAWT.java +6 -4
- data/src/main/java/processing/core/PApplet.java +71 -59
- data/src/main/java/processing/core/PImage.java +14 -14
- data/src/main/java/processing/opengl/PGraphicsOpenGL.java +13 -13
- data/src/main/java/processing/opengl/PShader.java +1 -6
- data/src/main/java/processing/opengl/PSurfaceJOGL.java +6 -6
- data/{lib/java/processing/opengl → src/main/resources}/cursors/arrow.png +0 -0
- data/{lib/java/processing/opengl → src/main/resources}/cursors/cross.png +0 -0
- data/{lib/java/processing/opengl → src/main/resources}/cursors/hand.png +0 -0
- data/{lib/java/processing/opengl → src/main/resources}/cursors/license.txt +0 -0
- data/{lib/java/processing/opengl → src/main/resources}/cursors/move.png +0 -0
- data/{lib/java/processing/opengl → src/main/resources}/cursors/text.png +0 -0
- data/{lib/java/processing/opengl → src/main/resources}/cursors/wait.png +0 -0
- data/{lib/java/processing/opengl → src/main/resources}/shaders/ColorFrag.glsl +0 -0
- data/{lib/java/processing/opengl → src/main/resources}/shaders/ColorVert.glsl +0 -0
- data/{lib/java/processing/opengl → src/main/resources}/shaders/LightFrag.glsl +0 -0
- data/{lib/java/processing/opengl → src/main/resources}/shaders/LightVert.glsl +0 -0
- data/{lib/java/processing/opengl → src/main/resources}/shaders/LineFrag.glsl +0 -0
- data/{lib/java/processing/opengl → src/main/resources}/shaders/LineVert.glsl +0 -0
- data/{lib/java/processing/opengl → src/main/resources}/shaders/MaskFrag.glsl +0 -0
- data/{lib/java/processing/opengl → src/main/resources}/shaders/PointFrag.glsl +0 -0
- data/{lib/java/processing/opengl → src/main/resources}/shaders/PointVert.glsl +0 -0
- data/{lib/java/processing/opengl → src/main/resources}/shaders/TexFrag.glsl +0 -0
- data/{lib/java/processing/opengl → src/main/resources}/shaders/TexLightFrag.glsl +0 -0
- data/{lib/java/processing/opengl → src/main/resources}/shaders/TexLightVert.glsl +0 -0
- data/{lib/java/processing/opengl → src/main/resources}/shaders/TexVert.glsl +0 -0
- data/test/test_helper.rb +1 -0
- data/vendors/Rakefile +1 -1
- metadata +29 -155
- data/lib/java/japplemenubar/JAppleMenuBar.java +0 -88
- data/lib/java/japplemenubar/libjAppleMenuBar.jnilib +0 -0
- data/lib/java/monkstone/ColorUtil.java +0 -127
- data/lib/java/monkstone/MathToolModule.java +0 -287
- data/lib/java/monkstone/PropaneLibrary.java +0 -46
- data/lib/java/monkstone/core/LibraryProxy.java +0 -136
- data/lib/java/monkstone/fastmath/DegLutTables.java +0 -111
- data/lib/java/monkstone/fastmath/Deglut.java +0 -71
- data/lib/java/monkstone/fastmath/package-info.java +0 -6
- data/lib/java/monkstone/filechooser/Chooser.java +0 -39
- data/lib/java/monkstone/noise/FastTerrain.java +0 -874
- data/lib/java/monkstone/noise/Noise.java +0 -90
- data/lib/java/monkstone/noise/NoiseGenerator.java +0 -75
- data/lib/java/monkstone/noise/NoiseMode.java +0 -28
- data/lib/java/monkstone/noise/OpenSimplex2F.java +0 -881
- data/lib/java/monkstone/noise/OpenSimplex2S.java +0 -1106
- data/lib/java/monkstone/noise/SmoothTerrain.java +0 -1099
- data/lib/java/monkstone/slider/CustomHorizontalSlider.java +0 -164
- data/lib/java/monkstone/slider/CustomVerticalSlider.java +0 -178
- data/lib/java/monkstone/slider/SimpleHorizontalSlider.java +0 -145
- data/lib/java/monkstone/slider/SimpleSlider.java +0 -166
- data/lib/java/monkstone/slider/SimpleVerticalSlider.java +0 -157
- data/lib/java/monkstone/slider/Slider.java +0 -61
- data/lib/java/monkstone/slider/SliderBar.java +0 -245
- data/lib/java/monkstone/slider/SliderGroup.java +0 -56
- data/lib/java/monkstone/slider/WheelHandler.java +0 -35
- data/lib/java/monkstone/vecmath/GfxRender.java +0 -86
- data/lib/java/monkstone/vecmath/JRender.java +0 -56
- data/lib/java/monkstone/vecmath/ShapeRender.java +0 -87
- data/lib/java/monkstone/vecmath/package-info.java +0 -20
- data/lib/java/monkstone/vecmath/vec2/Vec2.java +0 -802
- data/lib/java/monkstone/vecmath/vec2/package-info.java +0 -6
- data/lib/java/monkstone/vecmath/vec3/Vec3.java +0 -727
- data/lib/java/monkstone/vecmath/vec3/package-info.java +0 -6
- data/lib/java/monkstone/videoevent/CaptureEvent.java +0 -27
- data/lib/java/monkstone/videoevent/MovieEvent.java +0 -32
- data/lib/java/monkstone/videoevent/package-info.java +0 -20
- data/lib/java/processing/awt/PGraphicsJava2D.java +0 -3040
- data/lib/java/processing/awt/PImageAWT.java +0 -377
- data/lib/java/processing/awt/PShapeJava2D.java +0 -387
- data/lib/java/processing/awt/PSurfaceAWT.java +0 -1581
- data/lib/java/processing/awt/ShimAWT.java +0 -581
- data/lib/java/processing/core/PApplet.java +0 -15156
- data/lib/java/processing/core/PConstants.java +0 -523
- data/lib/java/processing/core/PFont.java +0 -1126
- data/lib/java/processing/core/PGraphics.java +0 -8600
- data/lib/java/processing/core/PImage.java +0 -3377
- data/lib/java/processing/core/PMatrix.java +0 -208
- data/lib/java/processing/core/PMatrix2D.java +0 -562
- data/lib/java/processing/core/PMatrix3D.java +0 -890
- data/lib/java/processing/core/PShape.java +0 -3561
- data/lib/java/processing/core/PShapeOBJ.java +0 -483
- data/lib/java/processing/core/PShapeSVG.java +0 -2016
- data/lib/java/processing/core/PStyle.java +0 -63
- data/lib/java/processing/core/PSurface.java +0 -198
- data/lib/java/processing/core/PSurfaceNone.java +0 -431
- data/lib/java/processing/core/PVector.java +0 -1066
- data/lib/java/processing/core/ThinkDifferent.java +0 -115
- data/lib/java/processing/data/DoubleDict.java +0 -850
- data/lib/java/processing/data/DoubleList.java +0 -928
- data/lib/java/processing/data/FloatDict.java +0 -847
- data/lib/java/processing/data/FloatList.java +0 -936
- data/lib/java/processing/data/IntDict.java +0 -807
- data/lib/java/processing/data/IntList.java +0 -936
- data/lib/java/processing/data/JSONArray.java +0 -1260
- data/lib/java/processing/data/JSONObject.java +0 -2282
- data/lib/java/processing/data/JSONTokener.java +0 -435
- data/lib/java/processing/data/LongDict.java +0 -802
- data/lib/java/processing/data/LongList.java +0 -937
- data/lib/java/processing/data/Sort.java +0 -46
- data/lib/java/processing/data/StringDict.java +0 -613
- data/lib/java/processing/data/StringList.java +0 -800
- data/lib/java/processing/data/Table.java +0 -4936
- data/lib/java/processing/data/TableRow.java +0 -198
- data/lib/java/processing/data/XML.java +0 -1156
- data/lib/java/processing/dxf/RawDXF.java +0 -404
- data/lib/java/processing/event/Event.java +0 -125
- data/lib/java/processing/event/KeyEvent.java +0 -70
- data/lib/java/processing/event/MouseEvent.java +0 -114
- data/lib/java/processing/event/TouchEvent.java +0 -57
- data/lib/java/processing/javafx/PGraphicsFX2D.java +0 -32
- data/lib/java/processing/javafx/PSurfaceFX.java +0 -173
- data/lib/java/processing/net/Client.java +0 -744
- data/lib/java/processing/net/Server.java +0 -388
- data/lib/java/processing/opengl/FontTexture.java +0 -378
- data/lib/java/processing/opengl/FrameBuffer.java +0 -513
- data/lib/java/processing/opengl/LinePath.java +0 -627
- data/lib/java/processing/opengl/LineStroker.java +0 -681
- data/lib/java/processing/opengl/PGL.java +0 -3483
- data/lib/java/processing/opengl/PGraphics2D.java +0 -615
- data/lib/java/processing/opengl/PGraphics3D.java +0 -281
- data/lib/java/processing/opengl/PGraphicsOpenGL.java +0 -13753
- data/lib/java/processing/opengl/PJOGL.java +0 -2008
- data/lib/java/processing/opengl/PShader.java +0 -1484
- data/lib/java/processing/opengl/PShapeOpenGL.java +0 -5269
- data/lib/java/processing/opengl/PSurfaceJOGL.java +0 -1385
- data/lib/java/processing/opengl/Texture.java +0 -1696
- data/lib/java/processing/opengl/VertexBuffer.java +0 -88
- data/lib/java/processing/pdf/PGraphicsPDF.java +0 -581
- data/lib/java/processing/svg/PGraphicsSVG.java +0 -378
- data/src/main/java/processing/opengl/cursors/arrow.png +0 -0
- data/src/main/java/processing/opengl/cursors/cross.png +0 -0
- data/src/main/java/processing/opengl/cursors/hand.png +0 -0
- data/src/main/java/processing/opengl/cursors/license.txt +0 -27
- data/src/main/java/processing/opengl/cursors/move.png +0 -0
- data/src/main/java/processing/opengl/cursors/text.png +0 -0
- data/src/main/java/processing/opengl/cursors/wait.png +0 -0
- data/src/main/java/processing/opengl/shaders/ColorFrag.glsl +0 -32
- data/src/main/java/processing/opengl/shaders/ColorVert.glsl +0 -34
- data/src/main/java/processing/opengl/shaders/LightFrag.glsl +0 -33
- data/src/main/java/processing/opengl/shaders/LightVert.glsl +0 -151
- data/src/main/java/processing/opengl/shaders/LineFrag.glsl +0 -32
- data/src/main/java/processing/opengl/shaders/LineVert.glsl +0 -100
- data/src/main/java/processing/opengl/shaders/MaskFrag.glsl +0 -40
- data/src/main/java/processing/opengl/shaders/PointFrag.glsl +0 -32
- data/src/main/java/processing/opengl/shaders/PointVert.glsl +0 -56
- data/src/main/java/processing/opengl/shaders/TexFrag.glsl +0 -37
- data/src/main/java/processing/opengl/shaders/TexLightFrag.glsl +0 -37
- data/src/main/java/processing/opengl/shaders/TexLightVert.glsl +0 -157
- data/src/main/java/processing/opengl/shaders/TexVert.glsl +0 -38
@@ -1,281 +0,0 @@
|
|
1
|
-
/* -*- mode: java; c-basic-offset: 2; indent-tabs-mode: nil -*- */
|
2
|
-
|
3
|
-
/*
|
4
|
-
Part of the Processing project - http://processing.org
|
5
|
-
|
6
|
-
Copyright (c) 2012-15 The Processing Foundation
|
7
|
-
Copyright (c) 2004-12 Ben Fry and Casey Reas
|
8
|
-
Copyright (c) 2001-04 Massachusetts Institute of Technology
|
9
|
-
|
10
|
-
This library is free software; you can redistribute it and/or
|
11
|
-
modify it under the terms of the GNU Lesser General Public
|
12
|
-
License as published by the Free Software Foundation, version 2.1.
|
13
|
-
|
14
|
-
This library is distributed in the hope that it will be useful,
|
15
|
-
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
16
|
-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
17
|
-
Lesser General Public License for more details.
|
18
|
-
|
19
|
-
You should have received a copy of the GNU Lesser General
|
20
|
-
Public License along with this library; if not, write to the
|
21
|
-
Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
22
|
-
Boston, MA 02111-1307 USA
|
23
|
-
*/
|
24
|
-
|
25
|
-
package processing.opengl;
|
26
|
-
|
27
|
-
import processing.core.PGraphics;
|
28
|
-
import processing.core.PShape;
|
29
|
-
import processing.core.PShapeOBJ;
|
30
|
-
|
31
|
-
|
32
|
-
public class PGraphics3D extends PGraphicsOpenGL {
|
33
|
-
|
34
|
-
public PGraphics3D() {
|
35
|
-
super();
|
36
|
-
}
|
37
|
-
|
38
|
-
|
39
|
-
//////////////////////////////////////////////////////////////
|
40
|
-
|
41
|
-
// RENDERER SUPPORT QUERIES
|
42
|
-
|
43
|
-
|
44
|
-
@Override
|
45
|
-
public boolean is2D() {
|
46
|
-
return false;
|
47
|
-
}
|
48
|
-
|
49
|
-
|
50
|
-
@Override
|
51
|
-
public boolean is3D() {
|
52
|
-
return true;
|
53
|
-
}
|
54
|
-
|
55
|
-
|
56
|
-
//////////////////////////////////////////////////////////////
|
57
|
-
|
58
|
-
// PROJECTION
|
59
|
-
|
60
|
-
|
61
|
-
@Override
|
62
|
-
protected void defaultPerspective() {
|
63
|
-
perspective();
|
64
|
-
}
|
65
|
-
|
66
|
-
|
67
|
-
//////////////////////////////////////////////////////////////
|
68
|
-
|
69
|
-
// CAMERA
|
70
|
-
|
71
|
-
|
72
|
-
@Override
|
73
|
-
protected void defaultCamera() {
|
74
|
-
camera();
|
75
|
-
}
|
76
|
-
|
77
|
-
|
78
|
-
//////////////////////////////////////////////////////////////
|
79
|
-
|
80
|
-
// MATRIX MORE!
|
81
|
-
|
82
|
-
|
83
|
-
@Override
|
84
|
-
protected void begin2D() {
|
85
|
-
pushProjection();
|
86
|
-
ortho(-width/2f, width/2f, -height/2f, height/2f);
|
87
|
-
pushMatrix();
|
88
|
-
|
89
|
-
// Set camera for 2D rendering, it simply centers at (width/2, height/2)
|
90
|
-
float centerX = width/2f;
|
91
|
-
float centerY = height/2f;
|
92
|
-
modelview.reset();
|
93
|
-
modelview.translate(-centerX, -centerY);
|
94
|
-
|
95
|
-
modelviewInv.set(modelview);
|
96
|
-
modelviewInv.invert();
|
97
|
-
|
98
|
-
camera.set(modelview);
|
99
|
-
cameraInv.set(modelviewInv);
|
100
|
-
|
101
|
-
updateProjmodelview();
|
102
|
-
}
|
103
|
-
|
104
|
-
|
105
|
-
@Override
|
106
|
-
protected void end2D() {
|
107
|
-
popMatrix();
|
108
|
-
popProjection();
|
109
|
-
}
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
//////////////////////////////////////////////////////////////
|
114
|
-
|
115
|
-
// SHAPE I/O
|
116
|
-
|
117
|
-
|
118
|
-
static protected boolean isSupportedExtension(String extension) {
|
119
|
-
return extension.equals("obj");
|
120
|
-
}
|
121
|
-
|
122
|
-
|
123
|
-
static protected PShape loadShapeImpl(PGraphics pg, String filename,
|
124
|
-
String extension) {
|
125
|
-
PShapeOBJ obj = null;
|
126
|
-
|
127
|
-
if (extension.equals("obj")) {
|
128
|
-
obj = new PShapeOBJ(pg.parent, filename);
|
129
|
-
int prevTextureMode = pg.textureMode;
|
130
|
-
pg.textureMode = NORMAL;
|
131
|
-
PShapeOpenGL p3d = PShapeOpenGL.createShape((PGraphicsOpenGL)pg, obj);
|
132
|
-
pg.textureMode = prevTextureMode;
|
133
|
-
return p3d;
|
134
|
-
}
|
135
|
-
return null;
|
136
|
-
}
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
//////////////////////////////////////////////////////////////
|
141
|
-
|
142
|
-
// SHAPE CREATION
|
143
|
-
|
144
|
-
|
145
|
-
// @Override
|
146
|
-
// protected PShape createShapeFamily(int type) {
|
147
|
-
// PShape shape = new PShapeOpenGL(this, type);
|
148
|
-
// shape.set3D(true);
|
149
|
-
// return shape;
|
150
|
-
// }
|
151
|
-
//
|
152
|
-
//
|
153
|
-
// @Override
|
154
|
-
// protected PShape createShapePrimitive(int kind, float... p) {
|
155
|
-
// PShape shape = new PShapeOpenGL(this, kind, p);
|
156
|
-
// shape.set3D(true);
|
157
|
-
// return shape;
|
158
|
-
// }
|
159
|
-
|
160
|
-
|
161
|
-
/*
|
162
|
-
@Override
|
163
|
-
public PShape createShape(PShape source) {
|
164
|
-
return PShapeOpenGL.createShape3D(this, source);
|
165
|
-
}
|
166
|
-
|
167
|
-
|
168
|
-
@Override
|
169
|
-
public PShape createShape() {
|
170
|
-
return createShape(PShape.GEOMETRY);
|
171
|
-
}
|
172
|
-
|
173
|
-
|
174
|
-
@Override
|
175
|
-
public PShape createShape(int type) {
|
176
|
-
return createShapeImpl(this, type);
|
177
|
-
}
|
178
|
-
|
179
|
-
|
180
|
-
@Override
|
181
|
-
public PShape createShape(int kind, float... p) {
|
182
|
-
return createShapeImpl(this, kind, p);
|
183
|
-
}
|
184
|
-
|
185
|
-
|
186
|
-
static protected PShapeOpenGL createShapeImpl(PGraphicsOpenGL pg, int type) {
|
187
|
-
PShapeOpenGL shape = null;
|
188
|
-
if (type == PConstants.GROUP) {
|
189
|
-
shape = new PShapeOpenGL(pg, PConstants.GROUP);
|
190
|
-
} else if (type == PShape.PATH) {
|
191
|
-
shape = new PShapeOpenGL(pg, PShape.PATH);
|
192
|
-
} else if (type == PShape.GEOMETRY) {
|
193
|
-
shape = new PShapeOpenGL(pg, PShape.GEOMETRY);
|
194
|
-
}
|
195
|
-
shape.set3D(true);
|
196
|
-
return shape;
|
197
|
-
}
|
198
|
-
|
199
|
-
|
200
|
-
static protected PShapeOpenGL createShapeImpl(PGraphicsOpenGL pg,
|
201
|
-
int kind, float... p) {
|
202
|
-
PShapeOpenGL shape = null;
|
203
|
-
int len = p.length;
|
204
|
-
|
205
|
-
if (kind == POINT) {
|
206
|
-
if (len != 2 && len != 3) {
|
207
|
-
showWarning("Wrong number of parameters");
|
208
|
-
return null;
|
209
|
-
}
|
210
|
-
shape = new PShapeOpenGL(pg, PShape.PRIMITIVE);
|
211
|
-
shape.setKind(POINT);
|
212
|
-
} else if (kind == LINE) {
|
213
|
-
if (len != 4 && len != 6) {
|
214
|
-
showWarning("Wrong number of parameters");
|
215
|
-
return null;
|
216
|
-
}
|
217
|
-
shape = new PShapeOpenGL(pg, PShape.PRIMITIVE);
|
218
|
-
shape.setKind(LINE);
|
219
|
-
} else if (kind == TRIANGLE) {
|
220
|
-
if (len != 6) {
|
221
|
-
showWarning("Wrong number of parameters");
|
222
|
-
return null;
|
223
|
-
}
|
224
|
-
shape = new PShapeOpenGL(pg, PShape.PRIMITIVE);
|
225
|
-
shape.setKind(TRIANGLE);
|
226
|
-
} else if (kind == QUAD) {
|
227
|
-
if (len != 8) {
|
228
|
-
showWarning("Wrong number of parameters");
|
229
|
-
return null;
|
230
|
-
}
|
231
|
-
shape = new PShapeOpenGL(pg, PShape.PRIMITIVE);
|
232
|
-
shape.setKind(QUAD);
|
233
|
-
} else if (kind == RECT) {
|
234
|
-
if (len != 4 && len != 5 && len != 8 && len != 9) {
|
235
|
-
showWarning("Wrong number of parameters");
|
236
|
-
return null;
|
237
|
-
}
|
238
|
-
shape = new PShapeOpenGL(pg, PShape.PRIMITIVE);
|
239
|
-
shape.setKind(RECT);
|
240
|
-
} else if (kind == ELLIPSE) {
|
241
|
-
if (len != 4 && len != 5) {
|
242
|
-
showWarning("Wrong number of parameters");
|
243
|
-
return null;
|
244
|
-
}
|
245
|
-
shape = new PShapeOpenGL(pg, PShape.PRIMITIVE);
|
246
|
-
shape.setKind(ELLIPSE);
|
247
|
-
} else if (kind == ARC) {
|
248
|
-
if (len != 6 && len != 7) {
|
249
|
-
showWarning("Wrong number of parameters");
|
250
|
-
return null;
|
251
|
-
}
|
252
|
-
shape = new PShapeOpenGL(pg, PShape.PRIMITIVE);
|
253
|
-
shape.setKind(ARC);
|
254
|
-
|
255
|
-
} else if (kind == BOX) {
|
256
|
-
if (len != 1 && len != 3) {
|
257
|
-
showWarning("Wrong number of parameters");
|
258
|
-
return null;
|
259
|
-
}
|
260
|
-
shape = new PShapeOpenGL(pg, PShape.PRIMITIVE);
|
261
|
-
shape.setKind(BOX);
|
262
|
-
} else if (kind == SPHERE) {
|
263
|
-
if (len < 1 || 3 < len) {
|
264
|
-
showWarning("Wrong number of parameters");
|
265
|
-
return null;
|
266
|
-
}
|
267
|
-
shape = new PShapeOpenGL(pg, PShape.PRIMITIVE);
|
268
|
-
shape.setKind(SPHERE);
|
269
|
-
} else {
|
270
|
-
showWarning("Unrecognized primitive type");
|
271
|
-
}
|
272
|
-
|
273
|
-
if (shape != null) {
|
274
|
-
shape.setParams(p);
|
275
|
-
}
|
276
|
-
|
277
|
-
shape.set3D(true);
|
278
|
-
return shape;
|
279
|
-
}
|
280
|
-
*/
|
281
|
-
}
|