Commit Graph

2821 Commits

Author SHA1 Message Date
Ben Fry
34f9caa137 deal with a handful of Java 9 changes and deprecations 2017-10-18 22:42:13 -04:00
Ben Fry
316c06d20a Merge pull request #5282 from jeremydouglass/patch-1
Remove "Pipe Organ" from exec javadoc
2017-10-18 16:35:18 -04:00
Ben Fry
f26cff6493 Merge pull request #5251 from Prince-Polka/master
BezierPoint
2017-10-18 15:41:29 -04:00
Ben Fry
a86e220096 fix minor spacing issue with indent 2017-10-17 23:09:17 -04:00
Ben Fry
8b9b976d67 minor type erasure edits 2017-10-17 23:08:50 -04:00
Jeremy Douglass
19d20f5915 Remove "Pipe Organ" from exec javadoc
Recent OS X releases no longer come with the "Pipe Organ" voice installed by default. As a result, the exec example fails silently with no console feedback. Removing the -v voice argument causes the example to work on current OS X -- and still work on older OS X.
2017-10-15 09:35:15 -07:00
Ben Fry
09de1fad83 fix entries() Iterator in IntDict, FloatDict, StringDict 2017-10-11 16:25:16 -04:00
Ben Fry
2dde225eae erase unnecessary types 2017-10-10 21:00:32 -04:00
Ben Fry
65b138de31 added resize() to IntDict, FloatDict, StringDict 2017-10-10 20:57:27 -04:00
Ben Fry
2327009d88 add setIndex() method 2017-10-10 20:34:40 -04:00
Ben Fry
5d4a48a814 handle version number parsing for JDK 9 (fixes #5275) 2017-09-29 23:15:17 -04:00
Prince-Polka
6a018b7a94 Update PGraphics.java 2017-09-20 17:18:50 +02:00
Prince-Polka
4dd1f29cb8 Update PGraphics.java 2017-09-08 19:16:33 +02:00
Prince-Polka
3052c1f384 Update PGraphics.java 2017-09-08 19:15:09 +02:00
Prince-Polka
2746369547 Update PGraphics.java
At row 3214 changed  

public float bezierPoint(float a, float b, float c, float d, float t) {
  float t1 = 1.0f - t;
  return a*t1*t1*t1 + 3*b*t*t1*t1 + 3*c*t*t*t1 + d*t*t*t;
}

to  

float bezierPoint (float a, float b, float c, float d, float t) {
  float t1 = t-1.0f;
  return t * ( 3*t1*(b*t1-c*t) + d*t*t ) - a*t1*t1*t1;
}
, works the same but faster
2017-09-08 19:12:59 +02:00
Ben Fry
82c772f178 Windows ignores setMinimumSize(), add workaround for #5052 2017-09-03 08:36:23 -04:00
Ben Fry
f1dd1554ee Merge pull request #5234 from kisarur/master
A fix for the window resizing problem in Windows
2017-09-03 08:26:45 -04:00
kisarur
b6b1ed8c79 removed partial fixes added earlier 2017-08-28 03:43:10 +05:30
kisarur
114d3788c1 a working fix for the window resizing to zero issue in Windows was added 2017-08-28 03:23:47 +05:30
Ben Fry
f8616cad9f Merge pull request #5184 from JakubValtar/fix-line-vert
Fix bugs in line vert shader
2017-08-22 09:47:55 -04:00
Ben Fry
b2f96d3814 todo notes and disable unused shellQuoted() method 2017-08-07 22:21:59 -04:00
kisarur
4261788a57 partial fix was applied to solve window reszing to zero height issue 2017-08-02 22:57:10 +05:30
kisarur
f5a0b637dc partial fix was applied to solve window reszing to zero height issue 2017-08-02 22:42:14 +05:30
Jakub Valtar
4bb1d9e373 Update shader preprocessing to strip version correctly
Previously the whole line was removed, now only the end of the line is
removed to handle the case when version is in a comment
2017-07-21 11:41:53 +02:00
Jakub Valtar
9ccf77ae7c Update shader version directive check to ignore comments 2017-07-21 11:29:41 +02:00
Jakub Valtar
1af19b45f3 Make modified shaders compatible back to GLSL 1.10 2017-07-21 11:27:28 +02:00
Jakub Valtar
b0b75e3c32 Add comments with links to issues 2017-07-20 17:29:22 +02:00
Jakub Valtar
97b8c06763 Update point vert shader with refactored code from line vert shader 2017-07-20 17:15:05 +02:00
Jakub Valtar
7f84b44cf0 Fix bugs in line vert shader
Fixes #5181
Fixes #5182
Fixes #5183
2017-07-20 17:12:40 +02:00
Ben Fry
cd4a71f19b Merge pull request #5082 from gohai/shell
Build out shell a bit more
2017-07-11 14:52:40 -04:00
George Bateman
404e23a9a8 Add defaultFontOrDeath to OpenGL textWidth. 2017-06-17 09:50:25 +01:00
Ben Fry
18a64d1b30 default to using native file selector on all platforms (#5122) 2017-06-12 15:44:11 -04:00
Ben Fry
d1bf8b3936 handle edge case for set(2D vector) on a 3D vector (fixes #5092) 2017-06-01 09:55:37 -04:00
gohai
911c3abdd8 Make shell pretend to be an interactive shell 2017-05-22 19:38:04 +02:00
gohai
dd2efcc4d6 Build out shell a bit more 2017-05-22 17:38:27 +02:00
Ben Fry
11758b3f5a add exec() with StringList, also start work on shell() 2017-05-09 10:25:58 -04:00
Jakub Valtar
cb229d3f92 Fix keyPressed for multiple keys
Java2D and FX2D send multiple PRESSED and only one RELEASE event (at
least on Windows). Therefore we have to keep track of what is pressed
and what not. Most keyboards do not support pressing more than ~10 keys
simultaneously, so this should not cause any performance problems.

Fixes #5049
2017-05-05 01:16:50 +02:00
Ben Fry
3210bd202e look into dock name issue, find that it is a Java bug... 2017-05-04 11:59:38 -04:00
Ben Fry
5216ca96ef Merge branch 'master' of github.com:processing/processing 2017-05-02 17:04:08 -04:00
Ben Fry
9c9f52d576 fix a couple regressions inside loadBytes() 2017-05-02 17:04:06 -04:00
Jakub Valtar
6eb3554688 Revert updatePixels() to set modified flag to true
PImage.modify flag is now used for two purposes and should be split into
two variables:
- internally by renderers to signal that pixels[] changed and need to be
drawn
- externally to signal other renderers that this image changed in some
way and they should update their cache

Reverts 3e5500c457

Fixes #5040
2017-05-02 22:40:25 +02:00
Ben Fry
511c21583b this shouldn't be public 2017-04-26 23:07:20 -04:00
Ben Fry
914fb8817c fix a dumb typo in keyPressed handling (fixes #5033) 2017-04-26 23:01:36 -04:00
Jakub Valtar
a6f50d402a Fix typos made during pixelDensity update
Fixes #5028
2017-04-25 23:49:18 +02:00
Ben Fry
6214d81b8d don't wrap null InputStream in a BufferedInputStream, also more file checks for non-existence 2017-04-25 11:59:02 -04:00
Ben Fry
fc0d36e07c keep track of number of keys pressed so that keyPressed works with multiple keys (fixes #4993) 2017-04-24 20:14:44 -04:00
Ben Fry
1c44727856 add loadBytes(URL) variant that uses content length header for array size 2017-04-24 20:01:13 -04:00
Ben Fry
ecd98b4550 tweaks for clarification 2017-04-24 19:35:30 -04:00
Ben Fry
a1820a0e14 syntax tweaks 2017-04-24 19:30:42 -04:00
Ben Fry
9dba561fc3 rewrite loadBytes(File) for better performance 2017-04-24 19:29:16 -04:00