Skip to content

Commit 5598155

Browse files
committed
Linux export w/ JNA option, other todo list updates
1 parent 564db46 commit 5598155

3 files changed

Lines changed: 53 additions & 43 deletions

File tree

app/src/processing/mode/java/JavaBuild.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1572,7 +1572,9 @@ protected boolean exportApplication(File destFolder,
15721572
// https://github.com/processing/processing/issues/2349
15731573
pw.print("$APPDIR/java/bin/");
15741574
}
1575-
pw.print("java " + Preferences.get("run.options") +
1575+
String runOptionsStr =
1576+
PApplet.join(runOptions.toArray(new String[0]), " ");
1577+
pw.print("java " + runOptionsStr +
15761578
" -Djava.library.path=\"$APPDIR:$APPDIR/lib\"" +
15771579
" -cp \"" + exportClassPath + "\"" +
15781580
" " + sketch.getName() + " \"$@\"\n");

core/todo.txt

Lines changed: 45 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,33 @@ X https://github.com/processing/processing/issues/1445
55
X https://github.com/processing/processing/pull/2461
66
X add candDraw() method to the retina renderer
77
X fix sketchPath() issue when used in another environment
8+
X XML.getChildren() throwing NPE when getInt() called on non-existent var
9+
X https://github.com/processing/processing/issues/2367
10+
X need to sort out with docs what's happening here
11+
X just a reference issue
12+
13+
cleaning
14+
o how much of com.benfry.* should go in?
15+
o Table? StringIntPairs? JSON? MD5? Integrator? ColorIntegrator?
16+
o decision: depends on if we can think of a good name
17+
X finished these up in the 2.x series
18+
o check on DXFWriter, since it used to subclass P3D
19+
o at least implement is3D?
20+
X should be working, barring recent regression
21+
o sleep time needs to be set *much* higher for dormant applets
22+
o 10s should be fine--no need to keep spinning (bad for android too)
23+
o just call interrupt() when it's time to get back to work
24+
X applets removed
25+
X test PGraphicsRetina2D w/ 7u40
26+
X make sure that 7u40 doesn't reintroduce starvation issue on retina Macs
27+
X createGraphics() with no renderer param to point to JAVA2D
28+
X docs: P2D and P3D are now OpenGL variations
29+
X shader support - make decisions, Andres email, etc
30+
X antialias -> smoothMode(), smoothQuality(), quality()
31+
o NEAREST, BILINEAR, BICUBIC, or 0, 2, 4? (need 8x too, so maybe numbers)
32+
X setAntiAlias() should instead just use parent.smooth
33+
X final decision on pg.setQuality(sketchQuality())
34+
X should probably be setQuality(parent.sketchQuality())
835

936
andres
1037
X Fonts from loadFont() show up as blocks in P3D (regression)
@@ -27,28 +54,33 @@ _ modernize Client/Server code to use synchronized lists
2754
_ do we let people use the public vars in Server and Client?
2855
_ are they documented?
2956

57+
_ make join() work with Iterable?
58+
_ will this collide with the current String[] version?
3059

31-
_ XML.getChildren() throwing NPE when getInt() called on non-existent var
32-
_ https://github.com/processing/processing/issues/2367
33-
_ need to sort out with docs what's happening here
34-
35-
_ point() rendering differently in 2.0.3 and 2.1
36-
_ https://github.com/processing/processing/issues/2278
60+
retina
61+
_ saveFrame() with retina render is making black images
62+
_ zero alpha values still a problem with retina renderer
63+
_ https://github.com/processing/processing/issues/2030
64+
_ how to name the retina pixel stuff
65+
_ hint(ENABLE_RETINA_PIXELS) or hint(ENABLE_HIDPI_PIXELS)
66+
_ hint(ENABLE_2X_PIXELS)?
67+
_ hidpi is Apple's name as well
68+
_ no high-res display support for the renderers
3769

70+
high
3871
_ Sketch runs with default size if size() is followed by large memory allocation
3972
_ https://github.com/processing/processing/issues/2039
40-
41-
42-
high
73+
_ https://github.com/processing/processing/issues/1672
74+
_ point() rendering differently in 2.0.3 and 2.1
75+
_ https://github.com/processing/processing/issues/2278
76+
_ internally, we probably have to call set() if it's a 1 pixel point
77+
_ but that's going to be a mess.. need to first check the CTM
4378
_ tint() not working in PDF (regression between 2.0.3 and 2.1)
4479
_ https://github.com/processing/processing/issues/2428
4580
_ default font fixes
4681
_ https://github.com/processing/processing/issues/2331
4782
_ https://github.com/processing/processing/pull/2338
48-
_ saveFrame() with retina render is making black images
4983
_ add print() method to other data types (not just IntList)
50-
_ zero alpha values still a problem with retina renderer
51-
_ https://github.com/processing/processing/issues/2030
5284
_ Sort out blending differences with P2D/P3D
5385
_ might be that compatible images not setting alpha mode correctly
5486
_ image = gc.createCompatibleVolatileImage(source.width, source.height, Transparency.TRANSLUCENT);
@@ -64,10 +96,6 @@ _ https://github.com/processing/processing/issues/2483
6496
_ add option to have full screen span across screens
6597
_ display=all in cmd line
6698
_ sketchDisplay() -> 0 for all, or 1, 2, 3...
67-
_ test PGraphicsRetina2D w/ 7u40
68-
_ make sure that 7u40 doesn't reintroduce starvation issue on retina Macs
69-
_ Linux sometimes not responding correctly w/ the size() command
70-
_ https://github.com/processing/processing/issues/1672
7199
_ clean up requestFocus() stuff
72100
_ make sure it works with retina/canvas/strategy as well
73101
_ finish PFont.getShape() implementation
@@ -96,7 +124,7 @@ _ possible addition for 'implementation' variable
96124
X http://code.google.com/p/processing/issues/detail?id=281
97125
_ https://github.com/processing/processing/issues/320
98126
_ should map() actually constrain to the low and high values?
99-
_ or have an alternate version that does that? (boolean param at end?)
127+
_ or have an alternate version that does that? (or boolean param at end?)
100128
_ decide whether to keep:
101129
_ public float textWidth(char[] chars, int start, int length)
102130
_ add version of math functions that use doubles?
@@ -125,14 +153,6 @@ _ nasty errors when loadImage/Font/createFont/etc used outside
125153
_ decision: add error messages where possible
126154
_ idea: set frameCount to -1 when setup not run yet?
127155
_ then set frameCount to 0 when setup() starts?
128-
_ how much of com.benfry.* should go in?
129-
_ Table? StringIntPairs? JSON? MD5? Integrator? ColorIntegrator?
130-
_ decision: depends on if we can think of a good name
131-
_ check on DXFWriter, since it used to subclass P3D
132-
_ at least implement is3D?
133-
_ sleep time needs to be set *much* higher for dormant applets
134-
_ 10s should be fine--no need to keep spinning (bad for android too)
135-
_ just call interrupt() when it's time to get back to work
136156
_ need to clean up the hints in the reference/source
137157
_ sort out edge + 1 issue on stroke/fill for rectangles
138158
_ http://code.google.com/p/processing/issues/detail?id=509
@@ -171,14 +191,6 @@ _ online is there but deprecated
171191
_ doesn't test net connection to see if 'online'
172192
_ only tests whether running inside an applet viewer (not relevant)
173193
_ remove 'online' from the docs
174-
_ createGraphics() with no renderer param to point to JAVA2D
175-
_ docs: P2D and P3D are now OpenGL variations
176-
_ shader support - make decisions, Andres email, etc
177-
_ setAntiAlias() should instead just use parent.smooth
178-
_ antialias -> smoothMode(), smoothQuality(), quality()
179-
_ NEAREST, BILINEAR, BICUBIC, or 0, 2, 4? (need 8x too, so maybe numbers)
180-
_ final decision on pg.setQuality(sketchQuality())
181-
_ should probably be setQuality(parent.sketchQuality())
182194
_ add reference/docs for urlEncode() and urlDecode()
183195
_ verify (and document) public access members of PApplet
184196
_ http://code.google.com/p/processing/issues/detail?id=83
@@ -194,10 +206,6 @@ _ OpenGL offscreen requires primary surface to be OpenGL
194206
_ explain the new PGL interface
195207
_ can't really change the smoothing/options on offscreen
196208
_ is this still true?
197-
_ how to name the retina pixel stuff
198-
_ hint(ENABLE_RETINA_PIXELS) or hint(ENABLE_HIDPI_PIXELS)
199-
_ hint(ENABLE_2X_PIXELS)?
200-
_ hidpi is Apple's name as well
201209

202210

203211

todo.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,15 @@ _ remove build/windows/export from repo
3535
_ exported apps reporting as "damaged" on OS X
3636
_ https://github.com/processing/processing/issues/2095
3737

38-
3938
high
40-
_ JNA conflicts can be avoided with "-Djna.nosys=true"
41-
_ https://github.com/processing/processing/issues/2239
39+
X JNA conflicts can be avoided with "-Djna.nosys=true"
40+
X https://github.com/processing/processing/issues/2239
4241
X fix for Windows launchers
4342
X fix for Windows export
4443
X fix for Windows export 64-bit
4544
X fix for Windows command line
4645
X fix for Linux launcher
47-
_ fix for Linux export
46+
X fix for Linux export
4847
X fix for Linux command line
4948
X fix for OS X launcher
5049
X fix for OS X export
@@ -65,7 +64,7 @@ _ maybe OS X Java can't look in subfolders? (just auto-adds things)
6564

6665

6766
medium
68-
_ should be a quick fix
67+
_ display "1" is not correct in 2.1.2
6968
_ https://github.com/processing/processing/issues/2502
7069
_ import static causes exception (with fix)
7170
_ https://github.com/processing/processing/issues/8
@@ -114,6 +113,7 @@ _ add documentation for how to run mode development from Eclipse
114113
_ implementation/changes from JDF
115114
_ modes are being loaded multiple times, which can cause trouble
116115
_ add minimum version required (or max version?) to libraries/modes/etc
116+
_ no high-res display support for the PDE
117117

118118

119119
pulls

0 commit comments

Comments
 (0)