propane 2.7.2-java → 2.8.0.pre-java

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (124) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +10 -0
  3. data/CHANGELOG.md +1 -1
  4. data/README.md +10 -8
  5. data/Rakefile +1 -1
  6. data/lib/propane/app.rb +3 -3
  7. data/lib/propane/version.rb +1 -1
  8. data/lib/{processing-core.jar → propane-2.8.0.jar} +0 -0
  9. data/library/control_panel/control_panel.rb +3 -2
  10. data/pom.rb +89 -88
  11. data/pom.xml +75 -46
  12. data/propane.gemspec +1 -2
  13. data/src/main/java/japplemenubar/JAppleMenuBar.java +88 -0
  14. data/src/main/java/japplemenubar/libjAppleMenuBar.jnilib +0 -0
  15. data/src/{monkstone → main/java/monkstone}/ColorUtil.java +0 -0
  16. data/src/{monkstone → main/java/monkstone}/MathToolModule.java +0 -0
  17. data/src/{monkstone → main/java/monkstone}/PropaneLibrary.java +0 -0
  18. data/src/{monkstone → main/java/monkstone}/core/LibraryProxy.java +0 -0
  19. data/src/{monkstone → main/java/monkstone}/fastmath/Deglut.java +0 -0
  20. data/src/{monkstone → main/java/monkstone}/fastmath/package-info.java +0 -0
  21. data/src/{monkstone → main/java/monkstone}/filechooser/Chooser.java +0 -0
  22. data/src/{monkstone → main/java/monkstone}/noise/SimplexNoise.java +0 -0
  23. data/src/{monkstone → main/java/monkstone}/slider/CustomHorizontalSlider.java +0 -0
  24. data/src/{monkstone → main/java/monkstone}/slider/CustomVerticalSlider.java +0 -0
  25. data/src/{monkstone → main/java/monkstone}/slider/SimpleHorizontalSlider.java +0 -0
  26. data/src/{monkstone → main/java/monkstone}/slider/SimpleSlider.java +0 -0
  27. data/src/{monkstone → main/java/monkstone}/slider/SimpleVerticalSlider.java +0 -0
  28. data/src/{monkstone → main/java/monkstone}/slider/Slider.java +0 -0
  29. data/src/{monkstone → main/java/monkstone}/slider/SliderBar.java +0 -0
  30. data/src/{monkstone → main/java/monkstone}/slider/SliderGroup.java +0 -0
  31. data/src/{monkstone → main/java/monkstone}/slider/WheelHandler.java +0 -0
  32. data/src/{monkstone → main/java/monkstone}/vecmath/AppRender.java +0 -0
  33. data/src/{monkstone → main/java/monkstone}/vecmath/JRender.java +0 -0
  34. data/src/{monkstone → main/java/monkstone}/vecmath/ShapeRender.java +0 -0
  35. data/src/{monkstone → main/java/monkstone}/vecmath/package-info.java +0 -0
  36. data/src/{monkstone → main/java/monkstone}/vecmath/vec2/Vec2.java +0 -0
  37. data/src/{monkstone → main/java/monkstone}/vecmath/vec2/package-info.java +0 -0
  38. data/src/{monkstone → main/java/monkstone}/vecmath/vec3/Vec3.java +0 -0
  39. data/src/{monkstone → main/java/monkstone}/vecmath/vec3/package-info.java +0 -0
  40. data/src/{monkstone → main/java/monkstone}/videoevent/VideoInterface.java +0 -0
  41. data/src/{monkstone → main/java/monkstone}/videoevent/package-info.java +0 -0
  42. data/src/main/java/processing/awt/PGraphicsJava2D.java +3029 -0
  43. data/src/main/java/processing/awt/PShapeJava2D.java +377 -0
  44. data/src/main/java/processing/awt/PSurfaceAWT.java +1567 -0
  45. data/src/main/java/processing/core/PApplet.java +15709 -0
  46. data/src/main/java/processing/core/PConstants.java +527 -0
  47. data/src/main/java/processing/core/PFont.java +1098 -0
  48. data/src/main/java/processing/core/PGraphics.java +8467 -0
  49. data/src/main/java/processing/core/PImage.java +3438 -0
  50. data/src/main/java/processing/core/PMatrix.java +208 -0
  51. data/src/main/java/processing/core/PMatrix2D.java +534 -0
  52. data/src/main/java/processing/core/PMatrix3D.java +877 -0
  53. data/src/main/java/processing/core/PShape.java +3445 -0
  54. data/src/main/java/processing/core/PShapeOBJ.java +469 -0
  55. data/src/main/java/processing/core/PShapeSVG.java +1787 -0
  56. data/src/main/java/processing/core/PStyle.java +63 -0
  57. data/src/main/java/processing/core/PSurface.java +161 -0
  58. data/src/main/java/processing/core/PSurfaceNone.java +374 -0
  59. data/src/main/java/processing/core/PVector.java +1063 -0
  60. data/src/main/java/processing/data/FloatDict.java +829 -0
  61. data/src/main/java/processing/data/FloatList.java +912 -0
  62. data/src/main/java/processing/data/IntDict.java +796 -0
  63. data/src/main/java/processing/data/IntList.java +913 -0
  64. data/src/main/java/processing/data/JSONArray.java +1260 -0
  65. data/src/main/java/processing/data/JSONObject.java +2282 -0
  66. data/src/main/java/processing/data/JSONTokener.java +435 -0
  67. data/src/main/java/processing/data/Sort.java +46 -0
  68. data/src/main/java/processing/data/StringDict.java +601 -0
  69. data/src/main/java/processing/data/StringList.java +775 -0
  70. data/src/main/java/processing/data/Table.java +4923 -0
  71. data/src/main/java/processing/data/TableRow.java +198 -0
  72. data/src/main/java/processing/data/XML.java +1149 -0
  73. data/src/main/java/processing/event/Event.java +125 -0
  74. data/src/main/java/processing/event/KeyEvent.java +70 -0
  75. data/src/main/java/processing/event/MouseEvent.java +149 -0
  76. data/src/main/java/processing/event/TouchEvent.java +57 -0
  77. data/src/main/java/processing/opengl/FontTexture.java +379 -0
  78. data/src/main/java/processing/opengl/FrameBuffer.java +503 -0
  79. data/src/main/java/processing/opengl/LinePath.java +623 -0
  80. data/src/main/java/processing/opengl/LineStroker.java +685 -0
  81. data/src/main/java/processing/opengl/PGL.java +3366 -0
  82. data/src/main/java/processing/opengl/PGraphics2D.java +615 -0
  83. data/src/main/java/processing/opengl/PGraphics3D.java +281 -0
  84. data/src/main/java/processing/opengl/PGraphicsOpenGL.java +13634 -0
  85. data/src/main/java/processing/opengl/PJOGL.java +1966 -0
  86. data/src/main/java/processing/opengl/PShader.java +1478 -0
  87. data/src/main/java/processing/opengl/PShapeOpenGL.java +5234 -0
  88. data/src/main/java/processing/opengl/PSurfaceJOGL.java +1315 -0
  89. data/src/main/java/processing/opengl/Texture.java +1670 -0
  90. data/src/main/java/processing/opengl/VertexBuffer.java +88 -0
  91. data/src/main/java/processing/opengl/cursors/arrow.png +0 -0
  92. data/src/main/java/processing/opengl/cursors/cross.png +0 -0
  93. data/src/main/java/processing/opengl/cursors/hand.png +0 -0
  94. data/src/main/java/processing/opengl/cursors/license.txt +27 -0
  95. data/src/main/java/processing/opengl/cursors/move.png +0 -0
  96. data/src/main/java/processing/opengl/cursors/text.png +0 -0
  97. data/src/main/java/processing/opengl/cursors/wait.png +0 -0
  98. data/src/main/java/processing/opengl/shaders/ColorFrag.glsl +32 -0
  99. data/src/main/java/processing/opengl/shaders/ColorVert.glsl +34 -0
  100. data/src/main/java/processing/opengl/shaders/LightFrag.glsl +33 -0
  101. data/src/main/java/processing/opengl/shaders/LightVert-vc4.glsl +154 -0
  102. data/src/main/java/processing/opengl/shaders/LightVert.glsl +151 -0
  103. data/src/main/java/processing/opengl/shaders/LineFrag.glsl +32 -0
  104. data/src/main/java/processing/opengl/shaders/LineVert.glsl +100 -0
  105. data/src/main/java/processing/opengl/shaders/MaskFrag.glsl +40 -0
  106. data/src/main/java/processing/opengl/shaders/PointFrag.glsl +32 -0
  107. data/src/main/java/processing/opengl/shaders/PointVert.glsl +56 -0
  108. data/src/main/java/processing/opengl/shaders/TexFrag.glsl +37 -0
  109. data/src/main/java/processing/opengl/shaders/TexLightFrag.glsl +37 -0
  110. data/src/main/java/processing/opengl/shaders/TexLightVert-vc4.glsl +160 -0
  111. data/src/main/java/processing/opengl/shaders/TexLightVert.glsl +157 -0
  112. data/src/main/java/processing/opengl/shaders/TexVert.glsl +38 -0
  113. data/src/main/resources/icon/icon-1024.png +0 -0
  114. data/src/main/resources/icon/icon-128.png +0 -0
  115. data/src/main/resources/icon/icon-16.png +0 -0
  116. data/src/main/resources/icon/icon-256.png +0 -0
  117. data/src/main/resources/icon/icon-32.png +0 -0
  118. data/src/main/resources/icon/icon-48.png +0 -0
  119. data/src/main/resources/icon/icon-512.png +0 -0
  120. data/src/main/resources/icon/icon-64.png +0 -0
  121. data/src/main/resources/license.txt +508 -0
  122. data/vendors/Rakefile +5 -20
  123. metadata +115 -33
  124. data/lib/propane.jar +0 -0
@@ -0,0 +1,527 @@
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) 2004-11 Ben Fry and Casey Reas
7
+ Copyright (c) 2001-04 Massachusetts Institute of Technology
8
+
9
+ This library is free software; you can redistribute it and/or
10
+ modify it under the terms of the GNU Lesser General Public
11
+ License as published by the Free Software Foundation; either
12
+ version 2.1 of the License, or (at your option) any later version.
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.core;
26
+
27
+ import java.awt.Cursor;
28
+ import java.awt.event.KeyEvent;
29
+
30
+
31
+ /**
32
+ * Numbers shared throughout processing.core.
33
+ * <P>
34
+ * An attempt is made to keep the constants as short/non-verbose
35
+ * as possible. For instance, the constant is TIFF instead of
36
+ * FILE_TYPE_TIFF. We'll do this as long as we can get away with it.
37
+ *
38
+ * @usage Web &amp; Application
39
+ */
40
+ public interface PConstants {
41
+
42
+ static public final int X = 0;
43
+ static public final int Y = 1;
44
+ static public final int Z = 2;
45
+
46
+
47
+ // renderers known to processing.core
48
+
49
+ /*
50
+ // List of renderers used inside PdePreprocessor
51
+ static final StringList rendererList = new StringList(new String[] {
52
+ "JAVA2D", "JAVA2D_2X",
53
+ "P2D", "P2D_2X", "P3D", "P3D_2X", "OPENGL",
54
+ "E2D", "FX2D", "FX2D_2X", // experimental
55
+ "LWJGL.P2D", "LWJGL.P3D", // hmm
56
+ "PDF" // no DXF because that's only for beginRaw()
57
+ });
58
+ */
59
+
60
+ static final String JAVA2D = "processing.awt.PGraphicsJava2D";
61
+
62
+ static final String P2D = "processing.opengl.PGraphics2D";
63
+ static final String P3D = "processing.opengl.PGraphics3D";
64
+
65
+ // When will it be time to remove this?
66
+ @Deprecated
67
+ static final String OPENGL = P3D;
68
+
69
+ // Experimental, higher-performance Java 2D renderer (but no pixel ops)
70
+ // static final String E2D = PGraphicsDanger2D.class.getName();
71
+
72
+ // Experimental JavaFX renderer; even better 2D performance
73
+ static final String FX2D = "processing.javafx.PGraphicsFX2D";
74
+
75
+ static final String PDF = "processing.pdf.PGraphicsPDF";
76
+ static final String SVG = "processing.svg.PGraphicsSVG";
77
+ static final String DXF = "processing.dxf.RawDXF";
78
+
79
+ // platform IDs for PApplet.platform
80
+
81
+ static final int OTHER = 0;
82
+ static final int WINDOWS = 1;
83
+ static final int MACOSX = 2;
84
+ static final int LINUX = 3;
85
+
86
+ static final String[] platformNames = {
87
+ "other", "windows", "macosx", "linux"
88
+ };
89
+
90
+
91
+ static final float EPSILON = 0.0001f;
92
+
93
+
94
+ // max/min values for numbers
95
+
96
+ /**
97
+ * Same as Float.MAX_VALUE, but included for parity with MIN_VALUE,
98
+ * and to avoid teaching static methods on the first day.
99
+ */
100
+ static final float MAX_FLOAT = Float.MAX_VALUE;
101
+ /**
102
+ * Note that Float.MIN_VALUE is the smallest <EM>positive</EM> value
103
+ * for a floating point number, not actually the minimum (negative) value
104
+ * for a float. This constant equals 0xFF7FFFFF, the smallest (farthest
105
+ * negative) value a float can have before it hits NaN.
106
+ */
107
+ static final float MIN_FLOAT = -Float.MAX_VALUE;
108
+ /** Largest possible (positive) integer value */
109
+ static final int MAX_INT = Integer.MAX_VALUE;
110
+ /** Smallest possible (negative) integer value */
111
+ static final int MIN_INT = Integer.MIN_VALUE;
112
+
113
+ // shapes
114
+
115
+ static public final int VERTEX = 0;
116
+ static public final int BEZIER_VERTEX = 1;
117
+ static public final int QUADRATIC_VERTEX = 2;
118
+ static public final int CURVE_VERTEX = 3;
119
+ static public final int BREAK = 4;
120
+
121
+ @Deprecated
122
+ static public final int QUAD_BEZIER_VERTEX = 2; // should not have been exposed
123
+
124
+ // useful goodness
125
+
126
+ /**
127
+ * ( begin auto-generated from PI.xml )
128
+ *
129
+ * PI is a mathematical constant with the value 3.14159265358979323846. It
130
+ * is the ratio of the circumference of a circle to its diameter. It is
131
+ * useful in combination with the trigonometric functions <b>sin()</b> and
132
+ * <b>cos()</b>.
133
+ *
134
+ * ( end auto-generated )
135
+ * @webref constants
136
+ * @see PConstants#TWO_PI
137
+ * @see PConstants#TAU
138
+ * @see PConstants#HALF_PI
139
+ * @see PConstants#QUARTER_PI
140
+ *
141
+ */
142
+ static final float PI = (float) Math.PI;
143
+ /**
144
+ * ( begin auto-generated from HALF_PI.xml )
145
+ *
146
+ * HALF_PI is a mathematical constant with the value
147
+ * 1.57079632679489661923. It is half the ratio of the circumference of a
148
+ * circle to its diameter. It is useful in combination with the
149
+ * trigonometric functions <b>sin()</b> and <b>cos()</b>.
150
+ *
151
+ * ( end auto-generated )
152
+ * @webref constants
153
+ * @see PConstants#PI
154
+ * @see PConstants#TWO_PI
155
+ * @see PConstants#TAU
156
+ * @see PConstants#QUARTER_PI
157
+ */
158
+ static final float HALF_PI = (float) (Math.PI / 2.0);
159
+ static final float THIRD_PI = (float) (Math.PI / 3.0);
160
+ /**
161
+ * ( begin auto-generated from QUARTER_PI.xml )
162
+ *
163
+ * QUARTER_PI is a mathematical constant with the value 0.7853982. It is
164
+ * one quarter the ratio of the circumference of a circle to its diameter.
165
+ * It is useful in combination with the trigonometric functions
166
+ * <b>sin()</b> and <b>cos()</b>.
167
+ *
168
+ * ( end auto-generated )
169
+ * @webref constants
170
+ * @see PConstants#PI
171
+ * @see PConstants#TWO_PI
172
+ * @see PConstants#TAU
173
+ * @see PConstants#HALF_PI
174
+ */
175
+ static final float QUARTER_PI = (float) (Math.PI / 4.0);
176
+ /**
177
+ * ( begin auto-generated from TWO_PI.xml )
178
+ *
179
+ * TWO_PI is a mathematical constant with the value 6.28318530717958647693.
180
+ * It is twice the ratio of the circumference of a circle to its diameter.
181
+ * It is useful in combination with the trigonometric functions
182
+ * <b>sin()</b> and <b>cos()</b>.
183
+ *
184
+ * ( end auto-generated )
185
+ * @webref constants
186
+ * @see PConstants#PI
187
+ * @see PConstants#TAU
188
+ * @see PConstants#HALF_PI
189
+ * @see PConstants#QUARTER_PI
190
+ */
191
+ static final float TWO_PI = (float) (2.0 * Math.PI);
192
+ /**
193
+ * ( begin auto-generated from TAU.xml )
194
+ *
195
+ * TAU is an alias for TWO_PI, a mathematical constant with the value
196
+ * 6.28318530717958647693. It is twice the ratio of the circumference
197
+ * of a circle to its diameter. It is useful in combination with the
198
+ * trigonometric functions <b>sin()</b> and <b>cos()</b>.
199
+ *
200
+ * ( end auto-generated )
201
+ * @webref constants
202
+ * @see PConstants#PI
203
+ * @see PConstants#TWO_PI
204
+ * @see PConstants#HALF_PI
205
+ * @see PConstants#QUARTER_PI
206
+ */
207
+ static final float TAU = (float) (2.0 * Math.PI);
208
+
209
+ static final float DEG_TO_RAD = PI/180.0f;
210
+ static final float RAD_TO_DEG = 180.0f/PI;
211
+
212
+
213
+ // angle modes
214
+
215
+ //static final int RADIANS = 0;
216
+ //static final int DEGREES = 1;
217
+
218
+
219
+ // used by split, all the standard whitespace chars
220
+ // (also includes unicode nbsp, that little bostage)
221
+
222
+ static final String WHITESPACE = " \t\n\r\f\u00A0";
223
+
224
+
225
+ // for colors and/or images
226
+
227
+ static final int RGB = 1; // image & color
228
+ static final int ARGB = 2; // image
229
+ static final int HSB = 3; // color
230
+ static final int ALPHA = 4; // image
231
+ // static final int CMYK = 5; // image & color (someday)
232
+
233
+
234
+ // image file types
235
+
236
+ static final int TIFF = 0;
237
+ static final int TARGA = 1;
238
+ static final int JPEG = 2;
239
+ static final int GIF = 3;
240
+
241
+
242
+ // filter/convert types
243
+
244
+ static final int BLUR = 11;
245
+ static final int GRAY = 12;
246
+ static final int INVERT = 13;
247
+ static final int OPAQUE = 14;
248
+ static final int POSTERIZE = 15;
249
+ static final int THRESHOLD = 16;
250
+ static final int ERODE = 17;
251
+ static final int DILATE = 18;
252
+
253
+
254
+ // blend mode keyword definitions
255
+ // @see processing.core.PImage#blendColor(int,int,int)
256
+
257
+ public final static int REPLACE = 0;
258
+ public final static int BLEND = 1 << 0;
259
+ public final static int ADD = 1 << 1;
260
+ public final static int SUBTRACT = 1 << 2;
261
+ public final static int LIGHTEST = 1 << 3;
262
+ public final static int DARKEST = 1 << 4;
263
+ public final static int DIFFERENCE = 1 << 5;
264
+ public final static int EXCLUSION = 1 << 6;
265
+ public final static int MULTIPLY = 1 << 7;
266
+ public final static int SCREEN = 1 << 8;
267
+ public final static int OVERLAY = 1 << 9;
268
+ public final static int HARD_LIGHT = 1 << 10;
269
+ public final static int SOFT_LIGHT = 1 << 11;
270
+ public final static int DODGE = 1 << 12;
271
+ public final static int BURN = 1 << 13;
272
+
273
+ // for messages
274
+
275
+ static final int CHATTER = 0;
276
+ static final int COMPLAINT = 1;
277
+ static final int PROBLEM = 2;
278
+
279
+
280
+ // types of transformation matrices
281
+
282
+ static final int PROJECTION = 0;
283
+ static final int MODELVIEW = 1;
284
+
285
+ // types of projection matrices
286
+
287
+ static final int CUSTOM = 0; // user-specified fanciness
288
+ static final int ORTHOGRAPHIC = 2; // 2D isometric projection
289
+ static final int PERSPECTIVE = 3; // perspective matrix
290
+
291
+
292
+ // shapes
293
+
294
+ // the low four bits set the variety,
295
+ // higher bits set the specific shape type
296
+
297
+ static final int GROUP = 0; // createShape()
298
+
299
+ static final int POINT = 2; // primitive
300
+ static final int POINTS = 3; // vertices
301
+
302
+ static final int LINE = 4; // primitive
303
+ static final int LINES = 5; // beginShape(), createShape()
304
+ static final int LINE_STRIP = 50; // beginShape()
305
+ static final int LINE_LOOP = 51;
306
+
307
+ static final int TRIANGLE = 8; // primitive
308
+ static final int TRIANGLES = 9; // vertices
309
+ static final int TRIANGLE_STRIP = 10; // vertices
310
+ static final int TRIANGLE_FAN = 11; // vertices
311
+
312
+ static final int QUAD = 16; // primitive
313
+ static final int QUADS = 17; // vertices
314
+ static final int QUAD_STRIP = 18; // vertices
315
+
316
+ static final int POLYGON = 20; // in the end, probably cannot
317
+ static final int PATH = 21; // separate these two
318
+
319
+ static final int RECT = 30; // primitive
320
+ static final int ELLIPSE = 31; // primitive
321
+ static final int ARC = 32; // primitive
322
+
323
+ static final int SPHERE = 40; // primitive
324
+ static final int BOX = 41; // primitive
325
+
326
+ // static public final int POINT_SPRITES = 52;
327
+ // static public final int NON_STROKED_SHAPE = 60;
328
+ // static public final int STROKED_SHAPE = 61;
329
+
330
+
331
+ // shape closing modes
332
+
333
+ static final int OPEN = 1;
334
+ static final int CLOSE = 2;
335
+
336
+
337
+ // shape drawing modes
338
+
339
+ /** Draw mode convention to use (x, y) to (width, height) */
340
+ static final int CORNER = 0;
341
+ /** Draw mode convention to use (x1, y1) to (x2, y2) coordinates */
342
+ static final int CORNERS = 1;
343
+ /** Draw mode from the center, and using the radius */
344
+ static final int RADIUS = 2;
345
+ /**
346
+ * Draw from the center, using second pair of values as the diameter.
347
+ * Formerly called CENTER_DIAMETER in alpha releases.
348
+ */
349
+ static final int CENTER = 3;
350
+ /**
351
+ * Synonym for the CENTER constant. Draw from the center,
352
+ * using second pair of values as the diameter.
353
+ */
354
+ static final int DIAMETER = 3;
355
+
356
+
357
+ // arc drawing modes
358
+
359
+ //static final int OPEN = 1; // shared
360
+ static final int CHORD = 2;
361
+ static final int PIE = 3;
362
+
363
+
364
+ // vertically alignment modes for text
365
+
366
+ /** Default vertical alignment for text placement */
367
+ static final int BASELINE = 0;
368
+ /** Align text to the top */
369
+ static final int TOP = 101;
370
+ /** Align text from the bottom, using the baseline. */
371
+ static final int BOTTOM = 102;
372
+
373
+
374
+ // uv texture orientation modes
375
+
376
+ /** texture coordinates in 0..1 range */
377
+ static final int NORMAL = 1;
378
+ /** texture coordinates based on image width/height */
379
+ static final int IMAGE = 2;
380
+
381
+
382
+ // texture wrapping modes
383
+
384
+ /** textures are clamped to their edges */
385
+ public static final int CLAMP = 0;
386
+ /** textures wrap around when uv values go outside 0..1 range */
387
+ public static final int REPEAT = 1;
388
+
389
+
390
+ // text placement modes
391
+
392
+ /**
393
+ * textMode(MODEL) is the default, meaning that characters
394
+ * will be affected by transformations like any other shapes.
395
+ * <p/>
396
+ * Changed value in 0093 to not interfere with LEFT, CENTER, and RIGHT.
397
+ */
398
+ static final int MODEL = 4;
399
+
400
+ /**
401
+ * textMode(SHAPE) draws text using the the glyph outlines of
402
+ * individual characters rather than as textures. If the outlines are
403
+ * not available, then textMode(SHAPE) will be ignored and textMode(MODEL)
404
+ * will be used instead. For this reason, be sure to call textMode()
405
+ * <EM>after</EM> calling textFont().
406
+ * <p/>
407
+ * Currently, textMode(SHAPE) is only supported by OPENGL mode.
408
+ * It also requires Java 1.2 or higher (OPENGL requires 1.4 anyway)
409
+ */
410
+ static final int SHAPE = 5;
411
+
412
+
413
+ // text alignment modes
414
+ // are inherited from LEFT, CENTER, RIGHT
415
+
416
+ // stroke modes
417
+
418
+ static final int SQUARE = 1 << 0; // called 'butt' in the svg spec
419
+ static final int ROUND = 1 << 1;
420
+ static final int PROJECT = 1 << 2; // called 'square' in the svg spec
421
+ static final int MITER = 1 << 3;
422
+ static final int BEVEL = 1 << 5;
423
+
424
+
425
+ // lighting
426
+
427
+ static final int AMBIENT = 0;
428
+ static final int DIRECTIONAL = 1;
429
+ //static final int POINT = 2; // shared with shape feature
430
+ static final int SPOT = 3;
431
+
432
+
433
+ // key constants
434
+
435
+ // only including the most-used of these guys
436
+ // if people need more esoteric keys, they can learn about
437
+ // the esoteric java KeyEvent api and of virtual keys
438
+
439
+ // both key and keyCode will equal these values
440
+ // for 0125, these were changed to 'char' values, because they
441
+ // can be upgraded to ints automatically by Java, but having them
442
+ // as ints prevented split(blah, TAB) from working
443
+ static final char BACKSPACE = 8;
444
+ static final char TAB = 9;
445
+ static final char ENTER = 10;
446
+ static final char RETURN = 13;
447
+ static final char ESC = 27;
448
+ static final char DELETE = 127;
449
+
450
+ // i.e. if ((key == CODED) && (keyCode == UP))
451
+ static final int CODED = 0xffff;
452
+
453
+ // key will be CODED and keyCode will be this value
454
+ static final int UP = KeyEvent.VK_UP;
455
+ static final int DOWN = KeyEvent.VK_DOWN;
456
+ static final int LEFT = KeyEvent.VK_LEFT;
457
+ static final int RIGHT = KeyEvent.VK_RIGHT;
458
+
459
+ // key will be CODED and keyCode will be this value
460
+ static final int ALT = KeyEvent.VK_ALT;
461
+ static final int CONTROL = KeyEvent.VK_CONTROL;
462
+ static final int SHIFT = KeyEvent.VK_SHIFT;
463
+
464
+
465
+ // orientations (only used on Android, ignored on desktop)
466
+
467
+ /** Screen orientation constant for portrait (the hamburger way). */
468
+ static final int PORTRAIT = 1;
469
+ /** Screen orientation constant for landscape (the hot dog way). */
470
+ static final int LANDSCAPE = 2;
471
+
472
+ /** Use with fullScreen() to indicate all available displays. */
473
+ static final int SPAN = 0;
474
+
475
+ // cursor types
476
+
477
+ static final int ARROW = Cursor.DEFAULT_CURSOR;
478
+ static final int CROSS = Cursor.CROSSHAIR_CURSOR;
479
+ static final int HAND = Cursor.HAND_CURSOR;
480
+ static final int MOVE = Cursor.MOVE_CURSOR;
481
+ static final int TEXT = Cursor.TEXT_CURSOR;
482
+ static final int WAIT = Cursor.WAIT_CURSOR;
483
+
484
+
485
+ // hints - hint values are positive for the alternate version,
486
+ // negative of the same value returns to the normal/default state
487
+
488
+ @Deprecated
489
+ static final int ENABLE_NATIVE_FONTS = 1;
490
+ @Deprecated
491
+ static final int DISABLE_NATIVE_FONTS = -1;
492
+
493
+ static final int DISABLE_DEPTH_TEST = 2;
494
+ static final int ENABLE_DEPTH_TEST = -2;
495
+
496
+ static final int ENABLE_DEPTH_SORT = 3;
497
+ static final int DISABLE_DEPTH_SORT = -3;
498
+
499
+ static final int DISABLE_OPENGL_ERRORS = 4;
500
+ static final int ENABLE_OPENGL_ERRORS = -4;
501
+
502
+ static final int DISABLE_DEPTH_MASK = 5;
503
+ static final int ENABLE_DEPTH_MASK = -5;
504
+
505
+ static final int DISABLE_OPTIMIZED_STROKE = 6;
506
+ static final int ENABLE_OPTIMIZED_STROKE = -6;
507
+
508
+ static final int ENABLE_STROKE_PERSPECTIVE = 7;
509
+ static final int DISABLE_STROKE_PERSPECTIVE = -7;
510
+
511
+ static final int DISABLE_TEXTURE_MIPMAPS = 8;
512
+ static final int ENABLE_TEXTURE_MIPMAPS = -8;
513
+
514
+ static final int ENABLE_STROKE_PURE = 9;
515
+ static final int DISABLE_STROKE_PURE = -9;
516
+
517
+ static final int ENABLE_BUFFER_READING = 10;
518
+ static final int DISABLE_BUFFER_READING = -10;
519
+
520
+ static final int DISABLE_KEY_REPEAT = 11;
521
+ static final int ENABLE_KEY_REPEAT = -11;
522
+
523
+ static final int DISABLE_ASYNC_SAVEFRAME = 12;
524
+ static final int ENABLE_ASYNC_SAVEFRAME = -12;
525
+
526
+ static final int HINT_COUNT = 13;
527
+ }