propane 3.8.0-java → 4.0.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/extensions.xml +1 -1
- data/.mvn/wrapper/maven-wrapper.properties +1 -1
- data/.travis.yml +1 -1
- data/CHANGELOG.md +7 -1
- data/README.md +7 -7
- data/Rakefile +6 -5
- data/lib/propane/app.rb +10 -17
- data/lib/propane/helper_methods.rb +6 -6
- data/lib/propane/version.rb +1 -1
- data/lib/propane-4.0.0.jar +0 -0
- data/library/pdf/itextpdf-5.5.13.2.jar +0 -0
- data/library/pdf/pdf.rb +7 -0
- data/library/slider/slider.rb +1 -1
- data/library/svg/batik-all-1.14.jar +0 -0
- data/library/svg/svg.rb +7 -0
- data/mvnw +3 -3
- data/mvnw.cmd +2 -2
- data/pom.rb +35 -8
- data/pom.xml +60 -9
- data/propane.gemspec +9 -7
- data/src/main/java/monkstone/ColorUtil.java +1 -1
- data/src/main/java/monkstone/FastNoiseModuleJava.java +127 -0
- data/src/main/java/monkstone/MathToolModule.java +31 -31
- data/src/main/java/monkstone/PropaneLibrary.java +3 -1
- data/src/main/java/monkstone/SmoothNoiseModuleJava.java +127 -0
- data/src/main/java/monkstone/fastmath/DegLutTables.java +25 -26
- data/src/main/java/monkstone/fastmath/Deglut.java +1 -1
- data/src/main/java/monkstone/filechooser/Chooser.java +2 -2
- data/src/main/java/monkstone/noise/LICENSE +121 -0
- data/src/main/java/monkstone/noise/OpenSimplex2F.java +914 -0
- data/src/main/java/monkstone/noise/OpenSimplex2S.java +1138 -0
- data/src/main/java/monkstone/slider/CustomHorizontalSlider.java +1 -1
- data/src/main/java/monkstone/slider/CustomVerticalSlider.java +1 -1
- data/src/main/java/monkstone/slider/SimpleHorizontalSlider.java +1 -1
- data/src/main/java/monkstone/slider/SimpleVerticalSlider.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 +2 -2
- data/src/main/java/monkstone/vecmath/JRender.java +6 -6
- data/src/main/java/monkstone/vecmath/package-info.java +1 -1
- data/src/main/java/monkstone/vecmath/vec2/Vec2.java +103 -83
- data/src/main/java/monkstone/vecmath/vec3/Vec3.java +27 -41
- data/src/main/java/monkstone/videoevent/CaptureEvent.java +1 -1
- data/src/main/java/monkstone/videoevent/MovieEvent.java +1 -1
- data/src/main/java/monkstone/videoevent/package-info.java +1 -1
- data/src/main/java/processing/awt/PGraphicsJava2D.java +11 -4
- data/src/main/java/processing/awt/PImageAWT.java +8 -8
- data/src/main/java/processing/core/PApplet.java +245 -254
- data/src/main/java/processing/core/PConstants.java +155 -163
- data/src/main/java/processing/core/PGraphics.java +116 -109
- data/src/main/java/processing/core/PImage.java +3025 -3047
- data/src/main/java/processing/core/PMatrix.java +5 -2
- data/src/main/java/processing/data/DoubleDict.java +72 -43
- data/src/main/java/processing/data/DoubleList.java +6 -2
- data/src/main/java/processing/data/FloatDict.java +744 -756
- data/src/main/java/processing/data/FloatList.java +68 -26
- data/src/main/java/processing/data/IntDict.java +72 -45
- data/src/main/java/processing/data/IntList.java +63 -26
- data/src/main/java/processing/data/JSONArray.java +892 -931
- data/src/main/java/processing/data/JSONObject.java +1169 -1262
- data/src/main/java/processing/data/JSONTokener.java +30 -49
- data/src/main/java/processing/data/LongDict.java +699 -712
- data/src/main/java/processing/data/LongList.java +676 -700
- data/src/main/java/processing/data/Sort.java +1 -0
- data/src/main/java/processing/data/Table.java +4040 -3661
- data/src/main/java/processing/data/TableRow.java +16 -0
- data/src/main/java/processing/data/XML.java +1041 -956
- data/src/main/java/processing/event/TouchEvent.java +1 -1
- data/src/main/java/processing/opengl/FontTexture.java +2 -2
- data/src/main/java/processing/opengl/PGraphicsOpenGL.java +28 -31
- data/src/main/java/processing/opengl/PJOGL.java +8 -7
- data/src/main/java/processing/opengl/PShader.java +1 -6
- data/src/main/java/processing/opengl/PShapeOpenGL.java +23 -24
- data/src/main/java/processing/opengl/PSurfaceJOGL.java +6 -6
- data/src/main/java/processing/pdf/PGraphicsPDF.java +581 -0
- data/src/main/java/processing/svg/PGraphicsSVG.java +378 -0
- data/src/main/{java/processing/opengl → resources}/cursors/arrow.png +0 -0
- data/src/main/{java/processing/opengl → resources}/cursors/cross.png +0 -0
- data/src/main/{java/processing/opengl → resources}/cursors/hand.png +0 -0
- data/src/main/{java/processing/opengl → resources}/cursors/license.txt +0 -0
- data/src/main/{java/processing/opengl → resources}/cursors/move.png +0 -0
- data/src/main/{java/processing/opengl → resources}/cursors/text.png +0 -0
- data/src/main/{java/processing/opengl → resources}/cursors/wait.png +0 -0
- data/src/main/{java/processing/opengl → resources}/shaders/ColorFrag.glsl +0 -0
- data/src/main/{java/processing/opengl → resources}/shaders/ColorVert.glsl +0 -0
- data/src/main/{java/processing/opengl → resources}/shaders/LightFrag.glsl +0 -0
- data/src/main/{java/processing/opengl → resources}/shaders/LightVert.glsl +0 -0
- data/src/main/{java/processing/opengl → resources}/shaders/LineFrag.glsl +0 -0
- data/src/main/{java/processing/opengl → resources}/shaders/LineVert.glsl +0 -0
- data/src/main/{java/processing/opengl → resources}/shaders/MaskFrag.glsl +0 -0
- data/src/main/{java/processing/opengl → resources}/shaders/PointFrag.glsl +0 -0
- data/src/main/{java/processing/opengl → resources}/shaders/PointVert.glsl +0 -0
- data/src/main/{java/processing/opengl → resources}/shaders/TexFrag.glsl +0 -0
- data/src/main/{java/processing/opengl → resources}/shaders/TexLightFrag.glsl +0 -0
- data/src/main/{java/processing/opengl → resources}/shaders/TexLightVert.glsl +0 -0
- data/src/main/{java/processing/opengl → resources}/shaders/TexVert.glsl +0 -0
- data/test/test_helper.rb +1 -0
- data/test/vecmath_spec_test.rb +14 -3
- data/vendors/Rakefile +1 -1
- metadata +53 -53
- data/lib/propane-3.8.0.jar +0 -0
- data/src/main/java/monkstone/noise/Noise.java +0 -116
- data/src/main/java/monkstone/noise/NoiseGenerator.java +0 -63
- data/src/main/java/monkstone/noise/NoiseMode.java +0 -15
- data/src/main/java/monkstone/noise/SimplexNoise.java +0 -470
- data/src/main/java/monkstone/noise/ValueNoise.java +0 -170
@@ -48,7 +48,7 @@ public interface PConstants {
|
|
48
48
|
|
49
49
|
/*
|
50
50
|
// List of renderers used inside PdePreprocessor
|
51
|
-
|
51
|
+
StringList rendererList = new StringList(new String[] {
|
52
52
|
"JAVA2D", "JAVA2D_2X",
|
53
53
|
"P2D", "P2D_2X", "P3D", "P3D_2X", "OPENGL",
|
54
54
|
"E2D", "FX2D", "FX2D_2X", // experimental
|
@@ -57,42 +57,34 @@ public interface PConstants {
|
|
57
57
|
});
|
58
58
|
*/
|
59
59
|
|
60
|
-
|
60
|
+
String JAVA2D = "processing.awt.PGraphicsJava2D";
|
61
61
|
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
// When will it be time to remove this?
|
66
|
-
@Deprecated
|
67
|
-
static final String OPENGL = P3D;
|
62
|
+
String P2D = "processing.opengl.PGraphics2D";
|
63
|
+
String P3D = "processing.opengl.PGraphics3D";
|
68
64
|
|
69
65
|
// Experimental, higher-performance Java 2D renderer (but no pixel ops)
|
70
|
-
//
|
66
|
+
// String E2D = PGraphicsDanger2D.class.getName();
|
71
67
|
|
72
68
|
// Experimental JavaFX renderer; even better 2D performance
|
73
|
-
|
69
|
+
String FX2D = "processing.javafx.PGraphicsFX2D";
|
74
70
|
|
75
|
-
|
76
|
-
|
77
|
-
|
71
|
+
String PDF = "processing.pdf.PGraphicsPDF";
|
72
|
+
String SVG = "processing.svg.PGraphicsSVG";
|
73
|
+
String DXF = "processing.dxf.RawDXF";
|
78
74
|
|
79
75
|
// platform IDs for PApplet.platform
|
80
76
|
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
/** @deprecated Marketers gonna market, use {@link #MACOS} */
|
87
|
-
@Deprecated
|
88
|
-
static final int MACOSX = 2;
|
77
|
+
int OTHER = 0;
|
78
|
+
int WINDOWS = 1;
|
79
|
+
int MACOS = 2;
|
80
|
+
int LINUX = 3;
|
89
81
|
|
90
|
-
|
91
|
-
"other", "windows", "
|
82
|
+
String[] platformNames = {
|
83
|
+
"other", "windows", "macos", "linux"
|
92
84
|
};
|
93
85
|
|
94
86
|
|
95
|
-
|
87
|
+
float EPSILON = 0.0001f;
|
96
88
|
|
97
89
|
|
98
90
|
// max/min values for numbers
|
@@ -101,18 +93,18 @@ public interface PConstants {
|
|
101
93
|
* Same as Float.MAX_VALUE, but included for parity with MIN_VALUE,
|
102
94
|
* and to avoid teaching static methods on the first day.
|
103
95
|
*/
|
104
|
-
|
96
|
+
float MAX_FLOAT = Float.MAX_VALUE;
|
105
97
|
/**
|
106
98
|
* Note that Float.MIN_VALUE is the smallest <EM>positive</EM> value
|
107
99
|
* for a floating point number, not actually the minimum (negative) value
|
108
100
|
* for a float. This constant equals 0xFF7FFFFF, the smallest (farthest
|
109
101
|
* negative) value a float can have before it hits NaN.
|
110
102
|
*/
|
111
|
-
|
103
|
+
float MIN_FLOAT = -Float.MAX_VALUE;
|
112
104
|
/** Largest possible (positive) integer value */
|
113
|
-
|
105
|
+
int MAX_INT = Integer.MAX_VALUE;
|
114
106
|
/** Smallest possible (negative) integer value */
|
115
|
-
|
107
|
+
int MIN_INT = Integer.MIN_VALUE;
|
116
108
|
|
117
109
|
// shapes
|
118
110
|
|
@@ -143,7 +135,7 @@ public interface PConstants {
|
|
143
135
|
* @see PConstants#QUARTER_PI
|
144
136
|
*
|
145
137
|
*/
|
146
|
-
|
138
|
+
float PI = (float) Math.PI;
|
147
139
|
/**
|
148
140
|
* ( begin auto-generated from HALF_PI.xml )
|
149
141
|
*
|
@@ -159,8 +151,8 @@ public interface PConstants {
|
|
159
151
|
* @see PConstants#TAU
|
160
152
|
* @see PConstants#QUARTER_PI
|
161
153
|
*/
|
162
|
-
|
163
|
-
|
154
|
+
float HALF_PI = (float) (Math.PI / 2.0);
|
155
|
+
float THIRD_PI = (float) (Math.PI / 3.0);
|
164
156
|
/**
|
165
157
|
* ( begin auto-generated from QUARTER_PI.xml )
|
166
158
|
*
|
@@ -176,7 +168,7 @@ public interface PConstants {
|
|
176
168
|
* @see PConstants#TAU
|
177
169
|
* @see PConstants#HALF_PI
|
178
170
|
*/
|
179
|
-
|
171
|
+
float QUARTER_PI = (float) (Math.PI / 4.0);
|
180
172
|
/**
|
181
173
|
* ( begin auto-generated from TWO_PI.xml )
|
182
174
|
*
|
@@ -192,7 +184,7 @@ public interface PConstants {
|
|
192
184
|
* @see PConstants#HALF_PI
|
193
185
|
* @see PConstants#QUARTER_PI
|
194
186
|
*/
|
195
|
-
|
187
|
+
float TWO_PI = (float) (2.0 * Math.PI);
|
196
188
|
/**
|
197
189
|
* ( begin auto-generated from TAU.xml )
|
198
190
|
*
|
@@ -208,51 +200,51 @@ public interface PConstants {
|
|
208
200
|
* @see PConstants#HALF_PI
|
209
201
|
* @see PConstants#QUARTER_PI
|
210
202
|
*/
|
211
|
-
|
203
|
+
float TAU = (float) (2.0 * Math.PI);
|
212
204
|
|
213
|
-
|
214
|
-
|
205
|
+
float DEG_TO_RAD = PI/180.0f;
|
206
|
+
float RAD_TO_DEG = 180.0f/PI;
|
215
207
|
|
216
208
|
|
217
209
|
// angle modes
|
218
210
|
|
219
|
-
//
|
220
|
-
//
|
211
|
+
//int RADIANS = 0;
|
212
|
+
//int DEGREES = 1;
|
221
213
|
|
222
214
|
|
223
215
|
// used by split, all the standard whitespace chars
|
224
216
|
// (also includes unicode nbsp, that little bostage)
|
225
217
|
|
226
|
-
|
218
|
+
String WHITESPACE = " \t\n\r\f\u00A0";
|
227
219
|
|
228
220
|
|
229
221
|
// for colors and/or images
|
230
222
|
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
//
|
223
|
+
int RGB = 1; // image & color
|
224
|
+
int ARGB = 2; // image
|
225
|
+
int HSB = 3; // color
|
226
|
+
int ALPHA = 4; // image
|
227
|
+
// int CMYK = 5; // image & color (someday)
|
236
228
|
|
237
229
|
|
238
230
|
// image file types
|
239
231
|
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
232
|
+
int TIFF = 0;
|
233
|
+
int TARGA = 1;
|
234
|
+
int JPEG = 2;
|
235
|
+
int GIF = 3;
|
244
236
|
|
245
237
|
|
246
238
|
// filter/convert types
|
247
239
|
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
240
|
+
int BLUR = 11;
|
241
|
+
int GRAY = 12;
|
242
|
+
int INVERT = 13;
|
243
|
+
int OPAQUE = 14;
|
244
|
+
int POSTERIZE = 15;
|
245
|
+
int THRESHOLD = 16;
|
246
|
+
int ERODE = 17;
|
247
|
+
int DILATE = 18;
|
256
248
|
|
257
249
|
|
258
250
|
// blend mode keyword definitions
|
@@ -276,21 +268,21 @@ public interface PConstants {
|
|
276
268
|
|
277
269
|
// for messages
|
278
270
|
|
279
|
-
|
280
|
-
|
281
|
-
|
271
|
+
int CHATTER = 0;
|
272
|
+
int COMPLAINT = 1;
|
273
|
+
int PROBLEM = 2;
|
282
274
|
|
283
275
|
|
284
276
|
// types of transformation matrices
|
285
277
|
|
286
|
-
|
287
|
-
|
278
|
+
int PROJECTION = 0;
|
279
|
+
int MODELVIEW = 1;
|
288
280
|
|
289
281
|
// types of projection matrices
|
290
282
|
|
291
|
-
|
292
|
-
|
293
|
-
|
283
|
+
int CUSTOM = 0; // user-specified fanciness
|
284
|
+
int ORTHOGRAPHIC = 2; // 2D isometric projection
|
285
|
+
int PERSPECTIVE = 3; // perspective matrix
|
294
286
|
|
295
287
|
|
296
288
|
// shapes
|
@@ -298,34 +290,34 @@ public interface PConstants {
|
|
298
290
|
// the low four bits set the variety,
|
299
291
|
// higher bits set the specific shape type
|
300
292
|
|
301
|
-
|
293
|
+
int GROUP = 0; // createShape()
|
302
294
|
|
303
|
-
|
304
|
-
|
295
|
+
int POINT = 2; // primitive
|
296
|
+
int POINTS = 3; // vertices
|
305
297
|
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
298
|
+
int LINE = 4; // primitive
|
299
|
+
int LINES = 5; // beginShape(), createShape()
|
300
|
+
int LINE_STRIP = 50; // beginShape()
|
301
|
+
int LINE_LOOP = 51;
|
310
302
|
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
303
|
+
int TRIANGLE = 8; // primitive
|
304
|
+
int TRIANGLES = 9; // vertices
|
305
|
+
int TRIANGLE_STRIP = 10; // vertices
|
306
|
+
int TRIANGLE_FAN = 11; // vertices
|
315
307
|
|
316
|
-
|
317
|
-
|
318
|
-
|
308
|
+
int QUAD = 16; // primitive
|
309
|
+
int QUADS = 17; // vertices
|
310
|
+
int QUAD_STRIP = 18; // vertices
|
319
311
|
|
320
|
-
|
321
|
-
|
312
|
+
int POLYGON = 20; // in the end, probably cannot
|
313
|
+
int PATH = 21; // separate these two
|
322
314
|
|
323
|
-
|
324
|
-
|
325
|
-
|
315
|
+
int RECT = 30; // primitive
|
316
|
+
int ELLIPSE = 31; // primitive
|
317
|
+
int ARC = 32; // primitive
|
326
318
|
|
327
|
-
|
328
|
-
|
319
|
+
int SPHERE = 40; // primitive
|
320
|
+
int BOX = 41; // primitive
|
329
321
|
|
330
322
|
// static public final int POINT_SPRITES = 52;
|
331
323
|
// static public final int NON_STROKED_SHAPE = 60;
|
@@ -334,61 +326,61 @@ public interface PConstants {
|
|
334
326
|
|
335
327
|
// shape closing modes
|
336
328
|
|
337
|
-
|
338
|
-
|
329
|
+
int OPEN = 1;
|
330
|
+
int CLOSE = 2;
|
339
331
|
|
340
332
|
|
341
333
|
// shape drawing modes
|
342
334
|
|
343
335
|
/** Draw mode convention to use (x, y) to (width, height) */
|
344
|
-
|
336
|
+
int CORNER = 0;
|
345
337
|
/** Draw mode convention to use (x1, y1) to (x2, y2) coordinates */
|
346
|
-
|
338
|
+
int CORNERS = 1;
|
347
339
|
/** Draw mode from the center, and using the radius */
|
348
|
-
|
340
|
+
int RADIUS = 2;
|
349
341
|
/**
|
350
342
|
* Draw from the center, using second pair of values as the diameter.
|
351
343
|
* Formerly called CENTER_DIAMETER in alpha releases.
|
352
344
|
*/
|
353
|
-
|
345
|
+
int CENTER = 3;
|
354
346
|
/**
|
355
347
|
* Synonym for the CENTER constant. Draw from the center,
|
356
348
|
* using second pair of values as the diameter.
|
357
349
|
*/
|
358
|
-
|
350
|
+
int DIAMETER = 3;
|
359
351
|
|
360
352
|
|
361
353
|
// arc drawing modes
|
362
354
|
|
363
|
-
//
|
364
|
-
|
365
|
-
|
355
|
+
//int OPEN = 1; // shared
|
356
|
+
int CHORD = 2;
|
357
|
+
int PIE = 3;
|
366
358
|
|
367
359
|
|
368
360
|
// vertically alignment modes for text
|
369
361
|
|
370
362
|
/** Default vertical alignment for text placement */
|
371
|
-
|
363
|
+
int BASELINE = 0;
|
372
364
|
/** Align text to the top */
|
373
|
-
|
365
|
+
int TOP = 101;
|
374
366
|
/** Align text from the bottom, using the baseline. */
|
375
|
-
|
367
|
+
int BOTTOM = 102;
|
376
368
|
|
377
369
|
|
378
370
|
// uv texture orientation modes
|
379
371
|
|
380
372
|
/** texture coordinates in 0..1 range */
|
381
|
-
|
373
|
+
int NORMAL = 1;
|
382
374
|
/** texture coordinates based on image width/height */
|
383
|
-
|
375
|
+
int IMAGE = 2;
|
384
376
|
|
385
377
|
|
386
378
|
// texture wrapping modes
|
387
379
|
|
388
380
|
/** textures are clamped to their edges */
|
389
|
-
|
381
|
+
int CLAMP = 0;
|
390
382
|
/** textures wrap around when uv values go outside 0..1 range */
|
391
|
-
|
383
|
+
int REPEAT = 1;
|
392
384
|
|
393
385
|
|
394
386
|
// text placement modes
|
@@ -396,10 +388,10 @@ public interface PConstants {
|
|
396
388
|
/**
|
397
389
|
* textMode(MODEL) is the default, meaning that characters
|
398
390
|
* will be affected by transformations like any other shapes.
|
399
|
-
*
|
391
|
+
*
|
400
392
|
* Changed value in 0093 to not interfere with LEFT, CENTER, and RIGHT.
|
401
393
|
*/
|
402
|
-
|
394
|
+
int MODEL = 4;
|
403
395
|
|
404
396
|
/**
|
405
397
|
* textMode(SHAPE) draws text using the the glyph outlines of
|
@@ -407,11 +399,11 @@ public interface PConstants {
|
|
407
399
|
* not available, then textMode(SHAPE) will be ignored and textMode(MODEL)
|
408
400
|
* will be used instead. For this reason, be sure to call textMode()
|
409
401
|
* <EM>after</EM> calling textFont().
|
410
|
-
*
|
402
|
+
*
|
411
403
|
* Currently, textMode(SHAPE) is only supported by OPENGL mode.
|
412
404
|
* It also requires Java 1.2 or higher (OPENGL requires 1.4 anyway)
|
413
405
|
*/
|
414
|
-
|
406
|
+
int SHAPE = 5;
|
415
407
|
|
416
408
|
|
417
409
|
// text alignment modes
|
@@ -419,19 +411,19 @@ public interface PConstants {
|
|
419
411
|
|
420
412
|
// stroke modes
|
421
413
|
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
414
|
+
int SQUARE = 1; // called 'butt' in the svg spec
|
415
|
+
int ROUND = 1 << 1;
|
416
|
+
int PROJECT = 1 << 2; // called 'square' in the svg spec
|
417
|
+
int MITER = 1 << 3;
|
418
|
+
int BEVEL = 1 << 5;
|
427
419
|
|
428
420
|
|
429
421
|
// lighting
|
430
422
|
|
431
|
-
|
432
|
-
|
433
|
-
//
|
434
|
-
|
423
|
+
int AMBIENT = 0;
|
424
|
+
int DIRECTIONAL = 1;
|
425
|
+
//int POINT = 2; // shared with shape feature
|
426
|
+
int SPOT = 3;
|
435
427
|
|
436
428
|
|
437
429
|
// key constants
|
@@ -444,88 +436,88 @@ public interface PConstants {
|
|
444
436
|
// for 0125, these were changed to 'char' values, because they
|
445
437
|
// can be upgraded to ints automatically by Java, but having them
|
446
438
|
// as ints prevented split(blah, TAB) from working
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
439
|
+
char BACKSPACE = 8;
|
440
|
+
char TAB = 9;
|
441
|
+
char ENTER = 10;
|
442
|
+
char RETURN = 13;
|
443
|
+
char ESC = 27;
|
444
|
+
char DELETE = 127;
|
453
445
|
|
454
446
|
// i.e. if ((key == CODED) && (keyCode == UP))
|
455
|
-
|
447
|
+
int CODED = 0xffff;
|
456
448
|
|
457
449
|
// key will be CODED and keyCode will be this value
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
450
|
+
int UP = KeyEvent.VK_UP;
|
451
|
+
int DOWN = KeyEvent.VK_DOWN;
|
452
|
+
int LEFT = KeyEvent.VK_LEFT;
|
453
|
+
int RIGHT = KeyEvent.VK_RIGHT;
|
462
454
|
|
463
455
|
// key will be CODED and keyCode will be this value
|
464
|
-
|
465
|
-
|
466
|
-
|
456
|
+
int ALT = KeyEvent.VK_ALT;
|
457
|
+
int CONTROL = KeyEvent.VK_CONTROL;
|
458
|
+
int SHIFT = KeyEvent.VK_SHIFT;
|
467
459
|
|
468
460
|
|
469
461
|
// orientations (only used on Android, ignored on desktop)
|
470
462
|
|
471
463
|
/** Screen orientation constant for portrait (the hamburger way). */
|
472
|
-
|
464
|
+
int PORTRAIT = 1;
|
473
465
|
/** Screen orientation constant for landscape (the hot dog way). */
|
474
|
-
|
466
|
+
int LANDSCAPE = 2;
|
475
467
|
|
476
468
|
/** Use with fullScreen() to indicate all available displays. */
|
477
|
-
|
469
|
+
int SPAN = 0;
|
478
470
|
|
479
471
|
// cursor types
|
480
472
|
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
473
|
+
int ARROW = Cursor.DEFAULT_CURSOR;
|
474
|
+
int CROSS = Cursor.CROSSHAIR_CURSOR;
|
475
|
+
int HAND = Cursor.HAND_CURSOR;
|
476
|
+
int MOVE = Cursor.MOVE_CURSOR;
|
477
|
+
int TEXT = Cursor.TEXT_CURSOR;
|
478
|
+
int WAIT = Cursor.WAIT_CURSOR;
|
487
479
|
|
488
480
|
|
489
481
|
// hints - hint values are positive for the alternate version,
|
490
482
|
// negative of the same value returns to the normal/default state
|
491
483
|
|
492
484
|
@Deprecated
|
493
|
-
|
485
|
+
int ENABLE_NATIVE_FONTS = 1;
|
494
486
|
@Deprecated
|
495
|
-
|
487
|
+
int DISABLE_NATIVE_FONTS = -1;
|
496
488
|
|
497
|
-
|
498
|
-
|
489
|
+
int DISABLE_DEPTH_TEST = 2;
|
490
|
+
int ENABLE_DEPTH_TEST = -2;
|
499
491
|
|
500
|
-
|
501
|
-
|
492
|
+
int ENABLE_DEPTH_SORT = 3;
|
493
|
+
int DISABLE_DEPTH_SORT = -3;
|
502
494
|
|
503
|
-
|
504
|
-
|
495
|
+
int DISABLE_OPENGL_ERRORS = 4;
|
496
|
+
int ENABLE_OPENGL_ERRORS = -4;
|
505
497
|
|
506
|
-
|
507
|
-
|
498
|
+
int DISABLE_DEPTH_MASK = 5;
|
499
|
+
int ENABLE_DEPTH_MASK = -5;
|
508
500
|
|
509
|
-
|
510
|
-
|
501
|
+
int DISABLE_OPTIMIZED_STROKE = 6;
|
502
|
+
int ENABLE_OPTIMIZED_STROKE = -6;
|
511
503
|
|
512
|
-
|
513
|
-
|
504
|
+
int ENABLE_STROKE_PERSPECTIVE = 7;
|
505
|
+
int DISABLE_STROKE_PERSPECTIVE = -7;
|
514
506
|
|
515
|
-
|
516
|
-
|
507
|
+
int DISABLE_TEXTURE_MIPMAPS = 8;
|
508
|
+
int ENABLE_TEXTURE_MIPMAPS = -8;
|
517
509
|
|
518
|
-
|
519
|
-
|
510
|
+
int ENABLE_STROKE_PURE = 9;
|
511
|
+
int DISABLE_STROKE_PURE = -9;
|
520
512
|
|
521
|
-
|
522
|
-
|
513
|
+
int ENABLE_BUFFER_READING = 10;
|
514
|
+
int DISABLE_BUFFER_READING = -10;
|
523
515
|
|
524
|
-
|
525
|
-
|
516
|
+
int DISABLE_KEY_REPEAT = 11;
|
517
|
+
int ENABLE_KEY_REPEAT = -11;
|
526
518
|
|
527
|
-
|
528
|
-
|
519
|
+
int DISABLE_ASYNC_SAVEFRAME = 12;
|
520
|
+
int ENABLE_ASYNC_SAVEFRAME = -12;
|
529
521
|
|
530
|
-
|
522
|
+
int HINT_COUNT = 13;
|
531
523
|
}
|