propane 3.1.0.pre-java → 3.2.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 -0
- data/CHANGELOG.md +1 -5
- data/README.md +23 -12
- data/Rakefile +23 -12
- data/lib/propane/helpers/version_error.rb +6 -0
- data/lib/propane/runner.rb +12 -0
- data/lib/propane/version.rb +1 -1
- data/library/slider/slider.rb +1 -1
- data/mvnw +234 -0
- data/mvnw.cmd +145 -0
- data/pom.xml +28 -27
- data/propane.gemspec +2 -2
- data/src/main/java/japplemenubar/JAppleMenuBar.java +41 -47
- data/src/main/java/monkstone/ColorUtil.java +1 -1
- data/src/main/java/monkstone/MathToolModule.java +12 -11
- data/src/main/java/monkstone/PropaneLibrary.java +9 -10
- data/src/main/java/monkstone/core/LibraryProxy.java +124 -113
- data/src/main/java/monkstone/fastmath/Deglut.java +86 -89
- data/src/main/java/monkstone/filechooser/Chooser.java +7 -13
- data/src/main/java/monkstone/noise/SimplexNoise.java +0 -1
- data/src/main/java/monkstone/slider/CustomHorizontalSlider.java +4 -4
- data/src/main/java/monkstone/slider/CustomVerticalSlider.java +1 -1
- data/src/main/java/monkstone/slider/SimpleHorizontalSlider.java +9 -9
- data/src/main/java/monkstone/slider/SimpleSlider.java +0 -9
- data/src/main/java/monkstone/slider/SimpleVerticalSlider.java +11 -13
- data/src/main/java/monkstone/slider/Slider.java +1 -1
- data/src/main/java/monkstone/slider/SliderBar.java +1 -1
- data/src/main/java/monkstone/slider/SliderGroup.java +1 -1
- data/src/main/java/monkstone/slider/WheelHandler.java +8 -9
- data/src/main/java/monkstone/vecmath/AppRender.java +2 -2
- data/src/main/java/monkstone/vecmath/ShapeRender.java +2 -2
- data/src/main/java/monkstone/vecmath/package-info.java +2 -2
- data/src/main/java/monkstone/vecmath/vec2/Vec2.java +2 -2
- data/src/main/java/monkstone/vecmath/vec3/Vec3.java +1 -1
- data/src/main/java/monkstone/videoevent/VideoInterface.java +11 -5
- data/src/main/java/monkstone/videoevent/package-info.java +2 -2
- data/src/main/java/processing/awt/PGraphicsJava2D.java +1742 -2243
- data/src/main/java/processing/awt/PShapeJava2D.java +268 -270
- data/src/main/java/processing/awt/PSurfaceAWT.java +821 -920
- data/src/main/java/processing/core/DesktopHandler.java +94 -0
- data/src/main/java/processing/core/PApplet.java +14170 -14082
- data/src/main/java/processing/core/PConstants.java +447 -473
- data/src/main/java/processing/core/PFont.java +867 -873
- data/src/main/java/processing/core/PGraphics.java +7193 -7428
- data/src/main/java/processing/core/PImage.java +3051 -3117
- data/src/main/java/processing/core/PMatrix.java +159 -172
- data/src/main/java/processing/core/PMatrix2D.java +403 -444
- data/src/main/java/processing/core/PMatrix3D.java +735 -749
- data/src/main/java/processing/core/PShape.java +2651 -2793
- data/src/main/java/processing/core/PShapeOBJ.java +415 -422
- data/src/main/java/processing/core/PShapeSVG.java +1466 -1475
- data/src/main/java/processing/core/PStyle.java +37 -40
- data/src/main/java/processing/core/PSurface.java +98 -103
- data/src/main/java/processing/core/PSurfaceNone.java +208 -236
- data/src/main/java/processing/core/PVector.java +961 -990
- data/src/main/java/processing/data/DoubleDict.java +709 -753
- data/src/main/java/processing/data/DoubleList.java +695 -748
- data/src/main/java/processing/data/FloatDict.java +702 -746
- data/src/main/java/processing/data/FloatList.java +697 -751
- data/src/main/java/processing/data/IntDict.java +673 -718
- data/src/main/java/processing/data/IntList.java +633 -699
- data/src/main/java/processing/data/JSONArray.java +873 -931
- data/src/main/java/processing/data/JSONObject.java +1165 -1262
- data/src/main/java/processing/data/JSONTokener.java +341 -351
- data/src/main/java/processing/data/LongDict.java +662 -707
- data/src/main/java/processing/data/LongList.java +634 -700
- data/src/main/java/processing/data/Sort.java +41 -37
- data/src/main/java/processing/data/StringDict.java +486 -522
- data/src/main/java/processing/data/StringList.java +580 -624
- data/src/main/java/processing/data/Table.java +3508 -3686
- data/src/main/java/processing/data/TableRow.java +183 -182
- data/src/main/java/processing/data/XML.java +883 -957
- data/src/main/java/processing/event/Event.java +66 -87
- data/src/main/java/processing/event/KeyEvent.java +41 -48
- data/src/main/java/processing/event/MouseEvent.java +93 -103
- data/src/main/java/processing/event/TouchEvent.java +6 -10
- data/src/main/java/processing/javafx/PGraphicsFX2D.java +5 -69
- data/src/main/java/processing/javafx/PSurfaceFX.java +2 -7
- data/src/main/java/processing/opengl/FontTexture.java +270 -290
- data/src/main/java/processing/opengl/FrameBuffer.java +363 -375
- data/src/main/java/processing/opengl/LinePath.java +500 -543
- data/src/main/java/processing/opengl/LineStroker.java +582 -593
- data/src/main/java/processing/opengl/PGL.java +2881 -2904
- data/src/main/java/processing/opengl/PGraphics2D.java +315 -408
- data/src/main/java/processing/opengl/PGraphics3D.java +72 -107
- data/src/main/java/processing/opengl/PGraphicsOpenGL.java +12043 -12230
- data/src/main/java/processing/opengl/PJOGL.java +1681 -1745
- data/src/main/java/processing/opengl/PShader.java +1257 -1260
- data/src/main/java/processing/opengl/PShapeOpenGL.java +4599 -4662
- data/src/main/java/processing/opengl/PSurfaceJOGL.java +1030 -1047
- data/src/main/java/processing/opengl/Texture.java +1397 -1462
- data/src/main/java/processing/opengl/VertexBuffer.java +55 -57
- data/src/main/resources/icon/icon-1024.png +0 -0
- data/src/main/resources/icon/icon-128.png +0 -0
- data/src/main/resources/icon/icon-16.png +0 -0
- data/src/main/resources/icon/icon-256.png +0 -0
- data/src/main/resources/icon/icon-32.png +0 -0
- data/src/main/resources/icon/icon-48.png +0 -0
- data/src/main/resources/icon/icon-512.png +0 -0
- data/src/main/resources/icon/icon-64.png +0 -0
- data/vendors/Rakefile +1 -1
- metadata +12 -8
- data/src/main/java/processing/core/ThinkDifferent.java +0 -70
@@ -1,5 +1,3 @@
|
|
1
|
-
/* -*- mode: java; c-basic-offset: 2; indent-tabs-mode: nil -*- */
|
2
|
-
|
3
1
|
/*
|
4
2
|
Part of the Processing project - http://processing.org
|
5
3
|
|
@@ -20,8 +18,7 @@
|
|
20
18
|
Public License along with this library; if not, write to the
|
21
19
|
Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
22
20
|
Boston, MA 02111-1307 USA
|
23
|
-
*/
|
24
|
-
|
21
|
+
*/
|
25
22
|
package processing.opengl;
|
26
23
|
|
27
24
|
import processing.core.PGraphics;
|
@@ -29,259 +26,202 @@ import processing.core.PMatrix3D;
|
|
29
26
|
import processing.core.PShape;
|
30
27
|
import processing.core.PShapeSVG;
|
31
28
|
|
32
|
-
|
33
29
|
public class PGraphics2D extends PGraphicsOpenGL {
|
34
30
|
|
35
|
-
|
36
|
-
|
37
|
-
}
|
38
|
-
|
39
|
-
|
40
|
-
//////////////////////////////////////////////////////////////
|
41
|
-
|
42
|
-
// RENDERER SUPPORT QUERIES
|
43
|
-
|
44
|
-
|
45
|
-
@Override
|
46
|
-
public boolean is2D() {
|
47
|
-
return true;
|
48
|
-
}
|
49
|
-
|
50
|
-
|
51
|
-
@Override
|
52
|
-
public boolean is3D() {
|
53
|
-
return false;
|
54
|
-
}
|
55
|
-
|
56
|
-
|
57
|
-
//////////////////////////////////////////////////////////////
|
58
|
-
|
59
|
-
// HINTS
|
60
|
-
|
61
|
-
|
62
|
-
@Override
|
63
|
-
public void hint(int which) {
|
64
|
-
if (which == ENABLE_STROKE_PERSPECTIVE) {
|
65
|
-
showWarning("Strokes cannot be perspective-corrected in 2D.");
|
66
|
-
return;
|
31
|
+
public PGraphics2D() {
|
32
|
+
super();
|
67
33
|
}
|
68
|
-
super.hint(which);
|
69
|
-
}
|
70
|
-
|
71
|
-
|
72
|
-
//////////////////////////////////////////////////////////////
|
73
|
-
|
74
|
-
// PROJECTION
|
75
|
-
|
76
|
-
|
77
|
-
@Override
|
78
|
-
public void ortho() {
|
79
|
-
showMethodWarning("ortho");
|
80
|
-
}
|
81
|
-
|
82
|
-
|
83
|
-
@Override
|
84
|
-
public void ortho(float left, float right,
|
85
|
-
float bottom, float top) {
|
86
|
-
showMethodWarning("ortho");
|
87
|
-
}
|
88
|
-
|
89
|
-
|
90
|
-
@Override
|
91
|
-
public void ortho(float left, float right,
|
92
|
-
float bottom, float top,
|
93
|
-
float near, float far) {
|
94
|
-
showMethodWarning("ortho");
|
95
|
-
}
|
96
|
-
|
97
|
-
|
98
|
-
@Override
|
99
|
-
public void perspective() {
|
100
|
-
showMethodWarning("perspective");
|
101
|
-
}
|
102
|
-
|
103
|
-
|
104
|
-
@Override
|
105
|
-
public void perspective(float fov, float aspect, float zNear, float zFar) {
|
106
|
-
showMethodWarning("perspective");
|
107
|
-
}
|
108
|
-
|
109
|
-
|
110
|
-
@Override
|
111
|
-
public void frustum(float left, float right, float bottom, float top,
|
112
|
-
float znear, float zfar) {
|
113
|
-
showMethodWarning("frustum");
|
114
|
-
}
|
115
|
-
|
116
|
-
|
117
|
-
@Override
|
118
|
-
protected void defaultPerspective() {
|
119
|
-
super.ortho(0, width, -height, 0, -1, +1);
|
120
|
-
}
|
121
|
-
|
122
|
-
|
123
|
-
//////////////////////////////////////////////////////////////
|
124
|
-
|
125
|
-
// CAMERA
|
126
|
-
|
127
|
-
|
128
|
-
@Override
|
129
|
-
public void beginCamera() {
|
130
|
-
showMethodWarning("beginCamera");
|
131
|
-
}
|
132
|
-
|
133
|
-
|
134
|
-
@Override
|
135
|
-
public void endCamera() {
|
136
|
-
showMethodWarning("endCamera");
|
137
|
-
}
|
138
|
-
|
139
34
|
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
@Override
|
147
|
-
public void camera(float eyeX, float eyeY, float eyeZ,
|
148
|
-
float centerX, float centerY, float centerZ,
|
149
|
-
float upX, float upY, float upZ) {
|
150
|
-
showMethodWarning("camera");
|
151
|
-
}
|
152
|
-
|
153
|
-
|
154
|
-
@Override
|
155
|
-
protected void defaultCamera() {
|
156
|
-
eyeDist = 1;
|
157
|
-
resetMatrix();
|
158
|
-
}
|
159
|
-
|
160
|
-
|
161
|
-
//////////////////////////////////////////////////////////////
|
162
|
-
|
163
|
-
// MATRIX MORE!
|
164
|
-
|
165
|
-
|
166
|
-
@Override
|
167
|
-
protected void begin2D() {
|
168
|
-
pushProjection();
|
169
|
-
defaultPerspective();
|
170
|
-
pushMatrix();
|
171
|
-
defaultCamera();
|
172
|
-
}
|
173
|
-
|
174
|
-
|
175
|
-
@Override
|
176
|
-
protected void end2D() {
|
177
|
-
popMatrix();
|
178
|
-
popProjection();
|
179
|
-
}
|
180
|
-
|
181
|
-
|
182
|
-
//////////////////////////////////////////////////////////////
|
183
|
-
|
184
|
-
// SHAPE
|
185
|
-
|
186
|
-
|
187
|
-
@Override
|
188
|
-
public void shape(PShape shape) {
|
189
|
-
if (shape.is2D()) {
|
190
|
-
super.shape(shape);
|
191
|
-
} else {
|
192
|
-
showWarning("The shape object is not 2D, cannot be displayed with " +
|
193
|
-
"this renderer");
|
35
|
+
//////////////////////////////////////////////////////////////
|
36
|
+
// RENDERER SUPPORT QUERIES
|
37
|
+
@Override
|
38
|
+
public boolean is2D() {
|
39
|
+
return true;
|
194
40
|
}
|
195
|
-
}
|
196
41
|
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
if (shape.is2D()) {
|
201
|
-
super.shape(shape, x, y);
|
202
|
-
} else {
|
203
|
-
showWarning("The shape object is not 2D, cannot be displayed with " +
|
204
|
-
"this renderer");
|
42
|
+
@Override
|
43
|
+
public boolean is3D() {
|
44
|
+
return false;
|
205
45
|
}
|
206
|
-
}
|
207
46
|
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
47
|
+
//////////////////////////////////////////////////////////////
|
48
|
+
// HINTS
|
49
|
+
@Override
|
50
|
+
public void hint(int which) {
|
51
|
+
if (which == ENABLE_STROKE_PERSPECTIVE) {
|
52
|
+
showWarning("Strokes cannot be perspective-corrected in 2D.");
|
53
|
+
return;
|
54
|
+
}
|
55
|
+
super.hint(which);
|
216
56
|
}
|
217
|
-
}
|
218
57
|
|
58
|
+
//////////////////////////////////////////////////////////////
|
59
|
+
// PROJECTION
|
60
|
+
@Override
|
61
|
+
public void ortho() {
|
62
|
+
showMethodWarning("ortho");
|
63
|
+
}
|
219
64
|
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
65
|
+
@Override
|
66
|
+
public void ortho(float left, float right,
|
67
|
+
float bottom, float top) {
|
68
|
+
showMethodWarning("ortho");
|
69
|
+
}
|
225
70
|
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
71
|
+
@Override
|
72
|
+
public void ortho(float left, float right,
|
73
|
+
float bottom, float top,
|
74
|
+
float near, float far) {
|
75
|
+
showMethodWarning("ortho");
|
76
|
+
}
|
231
77
|
|
78
|
+
@Override
|
79
|
+
public void perspective() {
|
80
|
+
showMethodWarning("perspective");
|
81
|
+
}
|
232
82
|
|
83
|
+
@Override
|
84
|
+
public void perspective(float fov, float aspect, float zNear, float zFar) {
|
85
|
+
showMethodWarning("perspective");
|
86
|
+
}
|
233
87
|
|
234
|
-
|
88
|
+
@Override
|
89
|
+
public void frustum(float left, float right, float bottom, float top,
|
90
|
+
float znear, float zfar) {
|
91
|
+
showMethodWarning("frustum");
|
92
|
+
}
|
235
93
|
|
236
|
-
|
94
|
+
@Override
|
95
|
+
protected void defaultPerspective() {
|
96
|
+
super.ortho(0, width, -height, 0, -1, +1);
|
97
|
+
}
|
237
98
|
|
99
|
+
//////////////////////////////////////////////////////////////
|
100
|
+
// CAMERA
|
101
|
+
@Override
|
102
|
+
public void beginCamera() {
|
103
|
+
showMethodWarning("beginCamera");
|
104
|
+
}
|
238
105
|
|
239
|
-
|
240
|
-
|
241
|
-
|
106
|
+
@Override
|
107
|
+
public void endCamera() {
|
108
|
+
showMethodWarning("endCamera");
|
109
|
+
}
|
242
110
|
|
111
|
+
@Override
|
112
|
+
public void camera() {
|
113
|
+
showMethodWarning("camera");
|
114
|
+
}
|
243
115
|
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
116
|
+
@Override
|
117
|
+
public void camera(float eyeX, float eyeY, float eyeZ,
|
118
|
+
float centerX, float centerY, float centerZ,
|
119
|
+
float upX, float upY, float upZ) {
|
120
|
+
showMethodWarning("camera");
|
249
121
|
}
|
250
|
-
return null;
|
251
|
-
}
|
252
122
|
|
123
|
+
@Override
|
124
|
+
protected void defaultCamera() {
|
125
|
+
eyeDist = 1;
|
126
|
+
resetMatrix();
|
127
|
+
}
|
253
128
|
|
254
|
-
|
129
|
+
//////////////////////////////////////////////////////////////
|
130
|
+
// MATRIX MORE!
|
131
|
+
@Override
|
132
|
+
protected void begin2D() {
|
133
|
+
pushProjection();
|
134
|
+
defaultPerspective();
|
135
|
+
pushMatrix();
|
136
|
+
defaultCamera();
|
137
|
+
}
|
255
138
|
|
256
|
-
|
139
|
+
@Override
|
140
|
+
protected void end2D() {
|
141
|
+
popMatrix();
|
142
|
+
popProjection();
|
143
|
+
}
|
257
144
|
|
145
|
+
//////////////////////////////////////////////////////////////
|
146
|
+
// SHAPE
|
147
|
+
@Override
|
148
|
+
public void shape(PShape shape) {
|
149
|
+
if (shape.is2D()) {
|
150
|
+
super.shape(shape);
|
151
|
+
} else {
|
152
|
+
showWarning("The shape object is not 2D, cannot be displayed with "
|
153
|
+
+ "this renderer");
|
154
|
+
}
|
155
|
+
}
|
258
156
|
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
157
|
+
@Override
|
158
|
+
public void shape(PShape shape, float x, float y) {
|
159
|
+
if (shape.is2D()) {
|
160
|
+
super.shape(shape, x, y);
|
161
|
+
} else {
|
162
|
+
showWarning("The shape object is not 2D, cannot be displayed with "
|
163
|
+
+ "this renderer");
|
164
|
+
}
|
165
|
+
}
|
264
166
|
|
167
|
+
@Override
|
168
|
+
public void shape(PShape shape, float a, float b, float c, float d) {
|
169
|
+
if (shape.is2D()) {
|
170
|
+
super.shape(shape, a, b, c, d);
|
171
|
+
} else {
|
172
|
+
showWarning("The shape object is not 2D, cannot be displayed with "
|
173
|
+
+ "this renderer");
|
174
|
+
}
|
175
|
+
}
|
265
176
|
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
}
|
177
|
+
@Override
|
178
|
+
public void shape(PShape shape, float x, float y, float z) {
|
179
|
+
showDepthWarningXYZ("shape");
|
180
|
+
}
|
271
181
|
|
182
|
+
@Override
|
183
|
+
public void shape(PShape shape, float x, float y, float z,
|
184
|
+
float c, float d, float e) {
|
185
|
+
showDepthWarningXYZ("shape");
|
186
|
+
}
|
272
187
|
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
188
|
+
//////////////////////////////////////////////////////////////
|
189
|
+
// SHAPE I/O
|
190
|
+
static protected boolean isSupportedExtension(String extension) {
|
191
|
+
return extension.equals("svg") || extension.equals("svgz");
|
192
|
+
}
|
278
193
|
|
194
|
+
static protected PShape loadShapeImpl(PGraphics pg,
|
195
|
+
String filename, String extension) {
|
196
|
+
if (extension.equals("svg") || extension.equals("svgz")) {
|
197
|
+
PShapeSVG svg = new PShapeSVG(pg.parent.loadXML(filename));
|
198
|
+
return PShapeOpenGL.createShape((PGraphicsOpenGL) pg, svg);
|
199
|
+
}
|
200
|
+
return null;
|
201
|
+
}
|
279
202
|
|
280
|
-
|
203
|
+
//////////////////////////////////////////////////////////////
|
204
|
+
// SCREEN TRANSFORMS
|
205
|
+
@Override
|
206
|
+
public float modelX(float x, float y, float z) {
|
207
|
+
showDepthWarning("modelX");
|
208
|
+
return 0;
|
209
|
+
}
|
281
210
|
|
282
|
-
|
211
|
+
@Override
|
212
|
+
public float modelY(float x, float y, float z) {
|
213
|
+
showDepthWarning("modelY");
|
214
|
+
return 0;
|
215
|
+
}
|
283
216
|
|
217
|
+
@Override
|
218
|
+
public float modelZ(float x, float y, float z) {
|
219
|
+
showDepthWarning("modelZ");
|
220
|
+
return 0;
|
221
|
+
}
|
284
222
|
|
223
|
+
//////////////////////////////////////////////////////////////
|
224
|
+
// SHAPE CREATION
|
285
225
|
// @Override
|
286
226
|
// protected PShape createShapeFamily(int type) {
|
287
227
|
// return new PShapeOpenGL(this, type);
|
@@ -292,9 +232,7 @@ public class PGraphics2D extends PGraphicsOpenGL {
|
|
292
232
|
// protected PShape createShapePrimitive(int kind, float... p) {
|
293
233
|
// return new PShapeOpenGL(this, kind, p);
|
294
234
|
// }
|
295
|
-
|
296
|
-
|
297
|
-
/*
|
235
|
+
/*
|
298
236
|
@Override
|
299
237
|
public PShape createShape(PShape source) {
|
300
238
|
return PShapeOpenGL.createShape2D(this, source);
|
@@ -402,214 +340,183 @@ public class PGraphics2D extends PGraphicsOpenGL {
|
|
402
340
|
shape.set3D(false);
|
403
341
|
return shape;
|
404
342
|
}
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
public void bezierVertex(float x2, float y2, float z2,
|
415
|
-
float x3, float y3, float z3,
|
416
|
-
float x4, float y4, float z4) {
|
417
|
-
showDepthWarningXYZ("bezierVertex");
|
418
|
-
}
|
419
|
-
|
420
|
-
|
421
|
-
//////////////////////////////////////////////////////////////
|
422
|
-
|
423
|
-
// QUADRATIC BEZIER VERTICES
|
424
|
-
|
425
|
-
|
426
|
-
@Override
|
427
|
-
public void quadraticVertex(float x2, float y2, float z2,
|
428
|
-
float x4, float y4, float z4) {
|
429
|
-
showDepthWarningXYZ("quadVertex");
|
430
|
-
}
|
431
|
-
|
432
|
-
|
433
|
-
//////////////////////////////////////////////////////////////
|
434
|
-
|
435
|
-
// CURVE VERTICES
|
436
|
-
|
437
|
-
|
438
|
-
@Override
|
439
|
-
public void curveVertex(float x, float y, float z) {
|
440
|
-
showDepthWarningXYZ("curveVertex");
|
441
|
-
}
|
442
|
-
|
443
|
-
|
444
|
-
//////////////////////////////////////////////////////////////
|
445
|
-
|
446
|
-
// BOX
|
447
|
-
|
448
|
-
|
449
|
-
@Override
|
450
|
-
public void box(float w, float h, float d) {
|
451
|
-
showMethodWarning("box");
|
452
|
-
}
|
453
|
-
|
454
|
-
|
455
|
-
//////////////////////////////////////////////////////////////
|
456
|
-
|
457
|
-
// SPHERE
|
458
|
-
|
459
|
-
|
460
|
-
@Override
|
461
|
-
public void sphere(float r) {
|
462
|
-
showMethodWarning("sphere");
|
463
|
-
}
|
464
|
-
|
465
|
-
|
466
|
-
//////////////////////////////////////////////////////////////
|
467
|
-
|
468
|
-
// VERTEX SHAPES
|
469
|
-
|
470
|
-
|
471
|
-
@Override
|
472
|
-
public void vertex(float x, float y, float z) {
|
473
|
-
showDepthWarningXYZ("vertex");
|
474
|
-
}
|
475
|
-
|
476
|
-
@Override
|
477
|
-
public void vertex(float x, float y, float z, float u, float v) {
|
478
|
-
showDepthWarningXYZ("vertex");
|
479
|
-
}
|
343
|
+
*/
|
344
|
+
//////////////////////////////////////////////////////////////
|
345
|
+
// BEZIER VERTICES
|
346
|
+
@Override
|
347
|
+
public void bezierVertex(float x2, float y2, float z2,
|
348
|
+
float x3, float y3, float z3,
|
349
|
+
float x4, float y4, float z4) {
|
350
|
+
showDepthWarningXYZ("bezierVertex");
|
351
|
+
}
|
480
352
|
|
481
|
-
|
353
|
+
//////////////////////////////////////////////////////////////
|
354
|
+
// QUADRATIC BEZIER VERTICES
|
355
|
+
@Override
|
356
|
+
public void quadraticVertex(float x2, float y2, float z2,
|
357
|
+
float x4, float y4, float z4) {
|
358
|
+
showDepthWarningXYZ("quadVertex");
|
359
|
+
}
|
482
360
|
|
483
|
-
|
361
|
+
//////////////////////////////////////////////////////////////
|
362
|
+
// CURVE VERTICES
|
363
|
+
@Override
|
364
|
+
public void curveVertex(float x, float y, float z) {
|
365
|
+
showDepthWarningXYZ("curveVertex");
|
366
|
+
}
|
484
367
|
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
368
|
+
//////////////////////////////////////////////////////////////
|
369
|
+
// BOX
|
370
|
+
@Override
|
371
|
+
public void box(float w, float h, float d) {
|
372
|
+
showMethodWarning("box");
|
373
|
+
}
|
489
374
|
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
375
|
+
//////////////////////////////////////////////////////////////
|
376
|
+
// SPHERE
|
377
|
+
@Override
|
378
|
+
public void sphere(float r) {
|
379
|
+
showMethodWarning("sphere");
|
380
|
+
}
|
494
381
|
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
382
|
+
//////////////////////////////////////////////////////////////
|
383
|
+
// VERTEX SHAPES
|
384
|
+
@Override
|
385
|
+
public void vertex(float x, float y, float z) {
|
386
|
+
showDepthWarningXYZ("vertex");
|
387
|
+
}
|
499
388
|
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
389
|
+
@Override
|
390
|
+
public void vertex(float x, float y, float z, float u, float v) {
|
391
|
+
showDepthWarningXYZ("vertex");
|
392
|
+
}
|
504
393
|
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
394
|
+
//////////////////////////////////////////////////////////////
|
395
|
+
// MATRIX TRANSFORMATIONS
|
396
|
+
@Override
|
397
|
+
public void translate(float tx, float ty, float tz) {
|
398
|
+
showDepthWarningXYZ("translate");
|
399
|
+
}
|
509
400
|
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
|
401
|
+
@Override
|
402
|
+
public void rotateX(float angle) {
|
403
|
+
showDepthWarning("rotateX");
|
404
|
+
}
|
514
405
|
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
float n30, float n31, float n32, float n33) {
|
520
|
-
showVariationWarning("applyMatrix");
|
521
|
-
}
|
406
|
+
@Override
|
407
|
+
public void rotateY(float angle) {
|
408
|
+
showDepthWarning("rotateY");
|
409
|
+
}
|
522
410
|
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
411
|
+
@Override
|
412
|
+
public void rotateZ(float angle) {
|
413
|
+
showDepthWarning("rotateZ");
|
414
|
+
}
|
527
415
|
|
528
|
-
|
416
|
+
@Override
|
417
|
+
public void rotate(float angle, float vx, float vy, float vz) {
|
418
|
+
showVariationWarning("rotate");
|
419
|
+
}
|
529
420
|
|
530
|
-
|
421
|
+
@Override
|
422
|
+
public void applyMatrix(PMatrix3D source) {
|
423
|
+
showVariationWarning("applyMatrix");
|
424
|
+
}
|
531
425
|
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
426
|
+
@Override
|
427
|
+
public void applyMatrix(float n00, float n01, float n02, float n03,
|
428
|
+
float n10, float n11, float n12, float n13,
|
429
|
+
float n20, float n21, float n22, float n23,
|
430
|
+
float n30, float n31, float n32, float n33) {
|
431
|
+
showVariationWarning("applyMatrix");
|
432
|
+
}
|
537
433
|
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
}
|
434
|
+
@Override
|
435
|
+
public void scale(float sx, float sy, float sz) {
|
436
|
+
showDepthWarningXYZ("scale");
|
437
|
+
}
|
543
438
|
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
439
|
+
//////////////////////////////////////////////////////////////
|
440
|
+
// SCREEN AND MODEL COORDS
|
441
|
+
@Override
|
442
|
+
public float screenX(float x, float y, float z) {
|
443
|
+
showDepthWarningXYZ("screenX");
|
444
|
+
return 0;
|
445
|
+
}
|
549
446
|
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
|
447
|
+
@Override
|
448
|
+
public float screenY(float x, float y, float z) {
|
449
|
+
showDepthWarningXYZ("screenY");
|
450
|
+
return 0;
|
451
|
+
}
|
555
452
|
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
453
|
+
@Override
|
454
|
+
public float screenZ(float x, float y, float z) {
|
455
|
+
showDepthWarningXYZ("screenZ");
|
456
|
+
return 0;
|
457
|
+
}
|
560
458
|
|
561
|
-
|
459
|
+
@Override
|
460
|
+
public PMatrix3D getMatrix(PMatrix3D target) {
|
461
|
+
showVariationWarning("getMatrix");
|
462
|
+
return target;
|
463
|
+
}
|
562
464
|
|
563
|
-
|
465
|
+
@Override
|
466
|
+
public void setMatrix(PMatrix3D source) {
|
467
|
+
showVariationWarning("setMatrix");
|
468
|
+
}
|
564
469
|
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
470
|
+
//////////////////////////////////////////////////////////////
|
471
|
+
// LIGHTS
|
472
|
+
@Override
|
473
|
+
public void lights() {
|
474
|
+
showMethodWarning("lights");
|
475
|
+
}
|
569
476
|
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
|
477
|
+
@Override
|
478
|
+
public void noLights() {
|
479
|
+
showMethodWarning("noLights");
|
480
|
+
}
|
574
481
|
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
482
|
+
@Override
|
483
|
+
public void ambientLight(float red, float green, float blue) {
|
484
|
+
showMethodWarning("ambientLight");
|
485
|
+
}
|
579
486
|
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
487
|
+
@Override
|
488
|
+
public void ambientLight(float red, float green, float blue,
|
489
|
+
float x, float y, float z) {
|
490
|
+
showMethodWarning("ambientLight");
|
491
|
+
}
|
585
492
|
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
|
493
|
+
@Override
|
494
|
+
public void directionalLight(float red, float green, float blue,
|
495
|
+
float nx, float ny, float nz) {
|
496
|
+
showMethodWarning("directionalLight");
|
497
|
+
}
|
591
498
|
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
|
596
|
-
|
499
|
+
@Override
|
500
|
+
public void pointLight(float red, float green, float blue,
|
501
|
+
float x, float y, float z) {
|
502
|
+
showMethodWarning("pointLight");
|
503
|
+
}
|
597
504
|
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
505
|
+
@Override
|
506
|
+
public void spotLight(float red, float green, float blue,
|
507
|
+
float x, float y, float z,
|
508
|
+
float nx, float ny, float nz,
|
509
|
+
float angle, float concentration) {
|
510
|
+
showMethodWarning("spotLight");
|
511
|
+
}
|
605
512
|
|
606
|
-
|
607
|
-
|
608
|
-
|
609
|
-
|
513
|
+
@Override
|
514
|
+
public void lightFalloff(float constant, float linear, float quadratic) {
|
515
|
+
showMethodWarning("lightFalloff");
|
516
|
+
}
|
610
517
|
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
|
615
|
-
}
|
518
|
+
@Override
|
519
|
+
public void lightSpecular(float v1, float v2, float v3) {
|
520
|
+
showMethodWarning("lightSpecular");
|
521
|
+
}
|
522
|
+
}
|