picrate 0.7.0-java → 0.8.0-java

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -1
  3. data/.mvn/wrapper/MavenWrapperDownloader.java +117 -0
  4. data/.mvn/wrapper/maven-wrapper.properties +2 -1
  5. data/.travis.yml +2 -5
  6. data/CHANGELOG.md +4 -0
  7. data/README.md +3 -3
  8. data/Rakefile +15 -27
  9. data/docs/_config.yml +1 -1
  10. data/docs/_posts/2018-05-11-arch-linux-arm.md +1 -1
  11. data/docs/_posts/2018-11-18-building-gem.md +1 -1
  12. data/lib/picrate/app.rb +1 -1
  13. data/lib/picrate/native_folder.rb +1 -1
  14. data/lib/picrate/version.rb +1 -1
  15. data/mvnw +127 -51
  16. data/mvnw.cmd +182 -0
  17. data/pom.rb +39 -30
  18. data/pom.xml +50 -37
  19. data/src/main/java/monkstone/ColorUtil.java +1 -1
  20. data/src/main/java/monkstone/core/LibraryProxy.java +0 -1
  21. data/src/main/java/monkstone/noise/SimplexNoise.java +1 -1
  22. data/src/main/java/monkstone/vecmath/GfxRender.java +87 -0
  23. data/src/main/java/monkstone/vecmath/ShapeRender.java +1 -1
  24. data/src/main/java/monkstone/vecmath/vec2/Vec2.java +1 -1
  25. data/src/main/java/processing/awt/PGraphicsJava2D.java +48 -50
  26. data/src/main/java/processing/awt/PShapeJava2D.java +10 -0
  27. data/src/main/java/processing/awt/PSurfaceAWT.java +315 -371
  28. data/src/main/java/processing/core/PApplet.java +15424 -15495
  29. data/src/main/java/processing/core/PConstants.java +4 -4
  30. data/src/main/java/processing/core/PFont.java +394 -369
  31. data/src/main/java/processing/core/PGraphics.java +11 -10
  32. data/src/main/java/processing/core/PImage.java +1389 -1435
  33. data/src/main/java/processing/core/PMatrix2D.java +297 -294
  34. data/src/main/java/processing/core/PMatrix3D.java +641 -594
  35. data/src/main/java/processing/core/PShape.java +1755 -1784
  36. data/src/main/java/processing/core/PShapeOBJ.java +145 -133
  37. data/src/main/java/processing/core/PShapeSVG.java +808 -801
  38. data/src/main/java/processing/core/PStyle.java +141 -149
  39. data/src/main/java/processing/core/PSurface.java +111 -117
  40. data/src/main/java/processing/core/PSurfaceNone.java +178 -187
  41. data/src/main/java/processing/javafx/PGraphicsFX2D.java +349 -346
  42. data/src/main/java/processing/opengl/FontTexture.java +40 -59
  43. data/src/main/java/processing/opengl/FrameBuffer.java +28 -18
  44. data/src/main/java/processing/opengl/LinePath.java +7 -7
  45. data/src/main/java/processing/opengl/LineStroker.java +6 -10
  46. data/src/main/java/processing/opengl/PGL.java +56 -44
  47. data/src/main/java/processing/opengl/PGraphicsOpenGL.java +909 -2338
  48. data/src/main/java/processing/opengl/PJOGL.java +1722 -1763
  49. data/src/main/java/processing/opengl/PShader.java +1308 -1192
  50. data/src/main/java/processing/opengl/PShapeOpenGL.java +487 -1811
  51. data/src/main/java/processing/opengl/PSurfaceJOGL.java +482 -497
  52. data/src/main/java/processing/opengl/Texture.java +99 -76
  53. data/src/main/java/processing/opengl/VertexBuffer.java +41 -43
  54. data/vendors/Rakefile +1 -1
  55. metadata +7 -4
@@ -12,351 +12,354 @@ import processing.core.PSurface;
12
12
  *
13
13
  * @author Martin Prout
14
14
  */
15
- public class PGraphicsFX2D extends PGraphics{
16
- final String message = "FX2D renderer not supported in this version of picrate";
17
-
18
- /**
19
- *
20
- */
21
- public PGraphicsFX2D(){
22
- }
23
-
24
-
25
- public void applyMatrix(float n00, float n01, float n02, float n10, float n11, float n12) {
26
- throw new UnsupportedOperationException(message);
27
- }
28
-
29
-
30
- public void applyMatrix(float n00, float n01, float n02, float n03, float n10, float n11, float n12, float n13, float n20, float n21, float n22, float n23, float n30, float n31, float n32, float n33) {
31
- throw new UnsupportedOperationException(message);
32
- }
33
-
34
- protected void backgroundImpl(){
35
- throw new UnsupportedOperationException(message);
36
- }
37
-
38
- public void beginContour() {
39
- throw new UnsupportedOperationException(message);
40
- }
41
-
42
-
43
- public void beginDraw() {
44
- throw new UnsupportedOperationException(message);
45
- }
46
-
47
-
48
- public void beginShape(int kind) {
49
- throw new UnsupportedOperationException(message);
50
- }
51
-
52
-
53
- public void bezierDetail(int detail) {
54
- throw new UnsupportedOperationException(message);
55
- }
56
-
57
-
58
- public void bezierVertex(float x1, float y1, float x2, float y2, float x3, float y3) {
59
- throw new UnsupportedOperationException(message);
60
- }
61
-
62
-
63
- public void bezierVertex(float x2, float y2, float z2, float x3, float y3, float z3, float x4, float y4, float z4) {
64
- throw new UnsupportedOperationException(message);
65
- }
66
-
67
-
68
- public void box(float w, float h, float d) {
69
- throw new UnsupportedOperationException(message);
70
- }
71
-
72
-
73
- public PSurface createSurface() {
74
- throw new UnsupportedOperationException(message);
75
- }
76
-
77
-
78
- public void curveDetail(int detail) {
79
- throw new UnsupportedOperationException(message);
80
- }
81
-
82
-
83
- public void curveVertex(float x, float y, float z) {
84
- throw new UnsupportedOperationException(message);
85
- }
86
-
87
-
88
- public void endContour() {
89
- throw new UnsupportedOperationException(message);
90
- }
91
-
92
-
93
- public void endDraw() {
94
- throw new UnsupportedOperationException(message);
95
- }
96
-
97
-
98
- public void endShape(int mode) {
99
- throw new UnsupportedOperationException(message);
100
- }
101
-
102
-
103
- public void flush() {
104
- throw new UnsupportedOperationException(message);
105
- }
106
-
107
-
108
- public int get(int x, int y) {
109
- throw new UnsupportedOperationException(message);
110
- }
111
-
112
-
113
- public PMatrix getMatrix() {
114
- throw new UnsupportedOperationException(message);
115
- }
116
-
117
-
118
- public PMatrix2D getMatrix(PMatrix2D target) {
119
- throw new UnsupportedOperationException(message);
120
- }
121
-
122
-
123
- public PMatrix3D getMatrix(PMatrix3D target) {
124
- throw new UnsupportedOperationException(message);
125
- }
126
-
127
-
128
- public Object getNative() {
129
- throw new UnsupportedOperationException(message);
130
- }
131
-
132
-
133
- public void line(float x1, float y1, float x2, float y2) {
134
- throw new UnsupportedOperationException(message);
135
- }
136
-
137
-
138
- public void loadPixels() {
139
- throw new UnsupportedOperationException(message);
140
- }
141
-
142
-
143
- public PShape loadShape(String filename) {
144
- throw new UnsupportedOperationException(message);
145
- }
146
-
147
-
148
- public PShape loadShape(String filename, String options) {
149
- throw new UnsupportedOperationException(message);
150
- }
151
-
152
-
153
- public void mask(PImage alpha) {
154
- throw new UnsupportedOperationException(message);
155
- }
156
-
157
-
158
- public void noClip() {
159
- throw new UnsupportedOperationException(message);
160
- }
161
-
162
-
163
- public void point(float x, float y) {
164
- throw new UnsupportedOperationException(message);
165
- }
166
-
167
-
168
- public void popMatrix() {
169
- throw new UnsupportedOperationException(message);
170
- }
171
-
172
-
173
- public void printMatrix() {
174
- throw new UnsupportedOperationException(message);
175
- }
176
-
177
-
178
- public void pushMatrix() {
179
- throw new UnsupportedOperationException(message);
180
- }
181
-
182
-
183
- public void quad(float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4) {
184
- throw new UnsupportedOperationException(message);
185
- }
186
-
187
-
188
- public void quadraticVertex(float ctrlX, float ctrlY, float endX, float endY) {
189
- throw new UnsupportedOperationException(message);
190
- }
191
-
192
-
193
- public void quadraticVertex(float x2, float y2, float z2, float x4, float y4, float z4) {
194
- throw new UnsupportedOperationException(message);
195
- }
196
-
197
-
198
- public void resetMatrix() {
199
- throw new UnsupportedOperationException(message);
200
- }
201
-
202
-
203
- public void rotate(float angle) {
204
- throw new UnsupportedOperationException(message);
205
- }
206
-
207
-
208
- public void rotate(float angle, float vx, float vy, float vz) {
209
- throw new UnsupportedOperationException(message);
210
- }
211
-
212
-
213
- public void rotateX(float angle) {
214
- throw new UnsupportedOperationException(message);
215
- }
216
-
217
-
218
- public void rotateY(float angle) {
219
- throw new UnsupportedOperationException(message);
220
- }
221
-
222
-
223
- public void rotateZ(float angle) {
224
- throw new UnsupportedOperationException(message);
225
- }
226
-
227
-
228
- public void scale(float s) {
229
- throw new UnsupportedOperationException(message);
230
- }
231
-
232
-
233
- public void scale(float sx, float sy) {
234
- throw new UnsupportedOperationException(message);
235
- }
236
-
237
-
238
- public void scale(float sx, float sy, float sz) {
239
- throw new UnsupportedOperationException(message);
240
- }
241
-
242
-
243
- public float screenX(float x, float y) {
244
- throw new UnsupportedOperationException(message);
245
- }
246
-
247
-
248
- public float screenX(float x, float y, float z) {
249
- throw new UnsupportedOperationException(message);
250
- }
251
-
252
-
253
- public float screenY(float x, float y) {
254
- throw new UnsupportedOperationException(message);
255
- }
256
-
257
-
258
- public float screenY(float x, float y, float z) {
259
- throw new UnsupportedOperationException(message);
260
- }
261
-
262
-
263
- public float screenZ(float x, float y, float z) {
264
- throw new UnsupportedOperationException(message);
265
- }
266
-
267
-
268
- public void set(int x, int y, int argb) {
269
- throw new UnsupportedOperationException(message);
270
- }
271
-
272
-
273
- public void setMatrix(PMatrix2D source) {
274
- throw new UnsupportedOperationException(message);
275
- }
276
-
277
-
278
- public void setMatrix(PMatrix3D source) {
279
- throw new UnsupportedOperationException(message);
280
- }
281
-
282
-
283
- public void shearX(float angle) {
284
- throw new UnsupportedOperationException(message);
285
- }
286
-
287
-
288
- public void shearY(float angle) {
289
- throw new UnsupportedOperationException(message);
290
- }
291
-
292
-
293
- public void sphere(float r) {
294
- throw new UnsupportedOperationException(message);
295
- }
296
-
297
-
298
- public void strokeCap(int cap) {
299
- throw new UnsupportedOperationException(message);
300
- }
301
-
302
-
303
- public void strokeJoin(int join) {
304
- throw new UnsupportedOperationException(message);
305
- }
306
-
307
-
308
- public void strokeWeight(float weight) {
309
- throw new UnsupportedOperationException(message);
310
- }
311
-
312
-
313
- public float textAscent() {
314
- throw new UnsupportedOperationException(message);
315
- }
316
-
317
-
318
- public float textDescent() {
319
- throw new UnsupportedOperationException(message);
320
- }
321
-
322
-
323
- public void texture(PImage image) {
324
- throw new UnsupportedOperationException(message);
325
- }
326
-
327
-
328
- public void translate(float tx, float ty) {
329
- throw new UnsupportedOperationException(message);
330
- }
331
-
332
-
333
- public void triangle(float x1, float y1, float x2, float y2, float x3, float y3) {
334
- throw new UnsupportedOperationException(message);
335
- }
336
-
337
-
338
- public void vertex(float x, float y) {
339
- throw new UnsupportedOperationException(message);
340
- }
341
-
342
-
343
- public void vertex(float x, float y, float z) {
344
- throw new UnsupportedOperationException(message);
345
- }
346
-
347
-
348
- public void vertex(float[] v) {
349
- throw new UnsupportedOperationException(message);
350
- }
351
-
352
-
353
- public void vertex(float x, float y, float u, float v) {
354
- throw new UnsupportedOperationException(message);
355
- }
356
-
357
-
358
- public void vertex(float x, float y, float z, float u, float v) {
359
- throw new UnsupportedOperationException(message);
360
- }
15
+ public class PGraphicsFX2D extends PGraphics {
16
+
17
+ final String message = "FX2D renderer not supported in this version of picrate";
18
+
19
+ /**
20
+ *
21
+ */
22
+ public PGraphicsFX2D() {
23
+ }
24
+
25
+ @Override
26
+ public void applyMatrix(float n00, float n01, float n02, float n10, float n11, float n12) {
27
+ throw new UnsupportedOperationException(message);
28
+ }
29
+
30
+ @Override
31
+ public void applyMatrix(float n00, float n01, float n02, float n03, float n10, float n11, float n12, float n13, float n20, float n21, float n22, float n23, float n30, float n31, float n32, float n33) {
32
+ throw new UnsupportedOperationException(message);
33
+ }
34
+
35
+ @Override
36
+ protected void backgroundImpl() {
37
+ throw new UnsupportedOperationException(message);
38
+ }
39
+
40
+ @Override
41
+ public void beginContour() {
42
+ throw new UnsupportedOperationException(message);
43
+ }
44
+
45
+ @Override
46
+ public void beginDraw() {
47
+ throw new UnsupportedOperationException(message);
48
+ }
49
+
50
+ @Override
51
+ public void beginShape(int kind) {
52
+ throw new UnsupportedOperationException(message);
53
+ }
54
+
55
+ @Override
56
+ public void bezierDetail(int detail) {
57
+ throw new UnsupportedOperationException(message);
58
+ }
59
+
60
+ @Override
61
+ public void bezierVertex(float x1, float y1, float x2, float y2, float x3, float y3) {
62
+ throw new UnsupportedOperationException(message);
63
+ }
64
+
65
+ @Override
66
+ public void bezierVertex(float x2, float y2, float z2, float x3, float y3, float z3, float x4, float y4, float z4) {
67
+ throw new UnsupportedOperationException(message);
68
+ }
69
+
70
+ @Override
71
+ public void box(float w, float h, float d) {
72
+ throw new UnsupportedOperationException(message);
73
+ }
74
+
75
+ @Override
76
+ public PSurface createSurface() {
77
+ throw new UnsupportedOperationException(message);
78
+ }
79
+
80
+ @Override
81
+ public void curveDetail(int detail) {
82
+ throw new UnsupportedOperationException(message);
83
+ }
84
+
85
+ @Override
86
+ public void curveVertex(float x, float y, float z) {
87
+ throw new UnsupportedOperationException(message);
88
+ }
89
+
90
+ @Override
91
+ public void endContour() {
92
+ throw new UnsupportedOperationException(message);
93
+ }
94
+
95
+ @Override
96
+ public void endDraw() {
97
+ throw new UnsupportedOperationException(message);
98
+ }
99
+
100
+ @Override
101
+ public void endShape(int mode) {
102
+ throw new UnsupportedOperationException(message);
103
+ }
104
+
105
+ @Override
106
+ public void flush() {
107
+ throw new UnsupportedOperationException(message);
108
+ }
109
+
110
+ @Override
111
+ public int get(int x, int y) {
112
+ throw new UnsupportedOperationException(message);
113
+ }
114
+
115
+ @Override
116
+ public PMatrix getMatrix() {
117
+ throw new UnsupportedOperationException(message);
118
+ }
119
+
120
+ @Override
121
+ public PMatrix2D getMatrix(PMatrix2D target) {
122
+ throw new UnsupportedOperationException(message);
123
+ }
124
+
125
+ @Override
126
+ public PMatrix3D getMatrix(PMatrix3D target) {
127
+ throw new UnsupportedOperationException(message);
128
+ }
129
+
130
+ @Override
131
+ public Object getNative() {
132
+ throw new UnsupportedOperationException(message);
133
+ }
134
+
135
+ @Override
136
+ public void line(float x1, float y1, float x2, float y2) {
137
+ throw new UnsupportedOperationException(message);
138
+ }
139
+
140
+ @Override
141
+ public void loadPixels() {
142
+ throw new UnsupportedOperationException(message);
143
+ }
144
+
145
+ @Override
146
+ public PShape loadShape(String filename) {
147
+ throw new UnsupportedOperationException(message);
148
+ }
149
+
150
+ @Override
151
+ public PShape loadShape(String filename, String options) {
152
+ throw new UnsupportedOperationException(message);
153
+ }
154
+
155
+ @Override
156
+ public void mask(PImage alpha) {
157
+ throw new UnsupportedOperationException(message);
158
+ }
159
+
160
+ @Override
161
+ public void noClip() {
162
+ throw new UnsupportedOperationException(message);
163
+ }
164
+
165
+ @Override
166
+ public void point(float x, float y) {
167
+ throw new UnsupportedOperationException(message);
168
+ }
169
+
170
+ @Override
171
+ public void popMatrix() {
172
+ throw new UnsupportedOperationException(message);
173
+ }
174
+
175
+ @Override
176
+ public void printMatrix() {
177
+ throw new UnsupportedOperationException(message);
178
+ }
179
+
180
+ @Override
181
+ public void pushMatrix() {
182
+ throw new UnsupportedOperationException(message);
183
+ }
184
+
185
+ @Override
186
+ public void quad(float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4) {
187
+ throw new UnsupportedOperationException(message);
188
+ }
189
+
190
+ @Override
191
+ public void quadraticVertex(float ctrlX, float ctrlY, float endX, float endY) {
192
+ throw new UnsupportedOperationException(message);
193
+ }
194
+
195
+ @Override
196
+ public void quadraticVertex(float x2, float y2, float z2, float x4, float y4, float z4) {
197
+ throw new UnsupportedOperationException(message);
198
+ }
199
+
200
+ @Override
201
+ public void resetMatrix() {
202
+ throw new UnsupportedOperationException(message);
203
+ }
204
+
205
+ @Override
206
+ public void rotate(float angle) {
207
+ throw new UnsupportedOperationException(message);
208
+ }
209
+
210
+ @Override
211
+ public void rotate(float angle, float vx, float vy, float vz) {
212
+ throw new UnsupportedOperationException(message);
213
+ }
214
+
215
+ @Override
216
+ public void rotateX(float angle) {
217
+ throw new UnsupportedOperationException(message);
218
+ }
219
+
220
+ @Override
221
+ public void rotateY(float angle) {
222
+ throw new UnsupportedOperationException(message);
223
+ }
224
+
225
+ @Override
226
+ public void rotateZ(float angle) {
227
+ throw new UnsupportedOperationException(message);
228
+ }
229
+
230
+ @Override
231
+ public void scale(float s) {
232
+ throw new UnsupportedOperationException(message);
233
+ }
234
+
235
+ @Override
236
+ public void scale(float sx, float sy) {
237
+ throw new UnsupportedOperationException(message);
238
+ }
239
+
240
+ @Override
241
+ public void scale(float sx, float sy, float sz) {
242
+ throw new UnsupportedOperationException(message);
243
+ }
244
+
245
+ @Override
246
+ public float screenX(float x, float y) {
247
+ throw new UnsupportedOperationException(message);
248
+ }
249
+
250
+ @Override
251
+ public float screenX(float x, float y, float z) {
252
+ throw new UnsupportedOperationException(message);
253
+ }
254
+
255
+ @Override
256
+ public float screenY(float x, float y) {
257
+ throw new UnsupportedOperationException(message);
258
+ }
259
+
260
+ @Override
261
+ public float screenY(float x, float y, float z) {
262
+ throw new UnsupportedOperationException(message);
263
+ }
264
+
265
+ @Override
266
+ public float screenZ(float x, float y, float z) {
267
+ throw new UnsupportedOperationException(message);
268
+ }
269
+
270
+ @Override
271
+ public void set(int x, int y, int argb) {
272
+ throw new UnsupportedOperationException(message);
273
+ }
274
+
275
+ @Override
276
+ public void setMatrix(PMatrix2D source) {
277
+ throw new UnsupportedOperationException(message);
278
+ }
279
+
280
+ @Override
281
+ public void setMatrix(PMatrix3D source) {
282
+ throw new UnsupportedOperationException(message);
283
+ }
284
+
285
+ @Override
286
+ public void shearX(float angle) {
287
+ throw new UnsupportedOperationException(message);
288
+ }
289
+
290
+ @Override
291
+ public void shearY(float angle) {
292
+ throw new UnsupportedOperationException(message);
293
+ }
294
+
295
+ @Override
296
+ public void sphere(float r) {
297
+ throw new UnsupportedOperationException(message);
298
+ }
299
+
300
+ @Override
301
+ public void strokeCap(int cap) {
302
+ throw new UnsupportedOperationException(message);
303
+ }
304
+
305
+ @Override
306
+ public void strokeJoin(int join) {
307
+ throw new UnsupportedOperationException(message);
308
+ }
309
+
310
+ @Override
311
+ public void strokeWeight(float weight) {
312
+ throw new UnsupportedOperationException(message);
313
+ }
314
+
315
+ @Override
316
+ public float textAscent() {
317
+ throw new UnsupportedOperationException(message);
318
+ }
319
+
320
+ @Override
321
+ public float textDescent() {
322
+ throw new UnsupportedOperationException(message);
323
+ }
324
+
325
+ @Override
326
+ public void texture(PImage image) {
327
+ throw new UnsupportedOperationException(message);
328
+ }
329
+
330
+ @Override
331
+ public void translate(float tx, float ty) {
332
+ throw new UnsupportedOperationException(message);
333
+ }
334
+
335
+ @Override
336
+ public void triangle(float x1, float y1, float x2, float y2, float x3, float y3) {
337
+ throw new UnsupportedOperationException(message);
338
+ }
339
+
340
+ @Override
341
+ public void vertex(float x, float y) {
342
+ throw new UnsupportedOperationException(message);
343
+ }
344
+
345
+ @Override
346
+ public void vertex(float x, float y, float z) {
347
+ throw new UnsupportedOperationException(message);
348
+ }
349
+
350
+ @Override
351
+ public void vertex(float[] v) {
352
+ throw new UnsupportedOperationException(message);
353
+ }
354
+
355
+ @Override
356
+ public void vertex(float x, float y, float u, float v) {
357
+ throw new UnsupportedOperationException(message);
358
+ }
359
+
360
+ @Override
361
+ public void vertex(float x, float y, float z, float u, float v) {
362
+ throw new UnsupportedOperationException(message);
363
+ }
361
364
 
362
365
  }