Commit Graph

2603 Commits

Author SHA1 Message Date
Ben Fry
762251b257 fix to prevent random(lo, hi) from returning hi (fixes #4551) 2016-07-28 19:13:12 -04:00
Ben Fry
8004c7c507 Merge pull request #4582 from JakubValtar/fix-network-locations
Fix running PDE from network locations
2016-07-28 18:52:32 -04:00
Ben Fry
db2bcb4f44 rewrite csv handling, fix parsing bugs, remove newlines option, improve performance 2016-07-25 21:52:08 -04:00
Jakub Valtar
2c1741c452 Fix running PDE from network locations
Java has problems dealing with UNC paths. See
http://wiki.eclipse.org/Eclipse/UNC_Paths#Programming_with_UNC_paths to
get an idea how bad it is. Scheme specific part should contain the whole
decoded URI except the protocol name and following colon, which should
shield us from Java parsing URL parts incorrectly.
2016-07-22 18:00:52 +02:00
codeanticode
d00bff1307 call getUniformLoc() in consumeUniforms, 2016-06-19 22:41:06 -04:00
Ben Fry
76955b3bdf Merge pull request #4524 from gohai/arm-updates
Fix GLExceptions on Raspberry Pi when using offscreen PGraphics
2016-06-06 16:39:33 -04:00
Ben Fry
7ba7e0bd31 Merge branch 'master' of github.com:processing/processing 2016-06-06 15:24:07 -05:00
gohai
adaf62ff2e Fix GLExceptions on Raspberry Pi when using offscreen PGraphics 2016-06-03 23:28:49 -04:00
Ben Fry
3aca49a983 Merge pull request #4505 from JakubValtar/loadimage-npe
Prevent NPE in loadImage() when called before setup()
2016-06-02 16:38:40 -04:00
Ben Fry
24a316a2bf clean up error message 2016-06-02 16:36:44 -04:00
Ben Fry
a433ea82a9 Merge pull request #4506 from JakubValtar/npe-createfont
Give helpful message when createFont() called before setup()
2016-06-02 16:35:32 -04:00
Ben Fry
87f4409ed6 Merge pull request #4508 from gohai/arm-updates
ARM Updates
2016-06-02 16:33:33 -04:00
Leslie Watkins
c6f11b3aaa added a check for length 0 arrays in expand() 2016-06-02 15:30:14 -04:00
inkwellsiesta
2bb3582195 fixed iterator remove() methods so they dont skip container elements 2016-06-01 16:14:46 -04:00
gohai
da02a33e68 Temporarily add warning to PSurfaceJOGL for Raspbian issue
Installing Processing on a recent Raspbian distribution won't work without changes, due to a change they made, which is incompatible with JOGL. Put in this warning until this gets fixed.

User hitting this is e.g.:
https://github.com/gohai/processing-glvideo/issues/3
2016-05-27 11:04:31 +02:00
Jakub Valtar
e48c35733e Give helpful message when createFont() called before setup()
Fixes #4486
2016-05-23 16:39:38 +02:00
Jakub Valtar
2920fb0744 Prevent NPE in loadImage() when called before setup() 2016-05-23 15:56:57 +02:00
Ben Fry
b4e85cbbd3 implement support for encoding= option in loadTable() 2016-05-12 07:41:44 -04:00
Ben Fry
f1482418aa Merge pull request #4465 from JakubValtar/async-save-update
Async save update
2016-05-11 07:57:17 -04:00
codeanticode
e7fb3ce4ff custom error message when texture map is missing, fixes #3990 2016-05-11 06:24:09 -04:00
codeanticode
c5d41191c2 makes OBJ parsing less strict, fixes #3156 2016-05-11 06:02:17 -04:00
Jakub Valtar
1653a2af3f Async Image Saver: use Files instead of filenames
- solves headaches with path equivalence
2016-05-11 10:50:01 +02:00
Jakub Valtar
688487f3ae Block when loading image which is being saved asynchronously 2016-05-11 10:35:34 +02:00
Ben Fry
167220b90a todo notes, plus recent PRs, fix last 3 javadoc errors 2016-05-10 14:24:59 -04:00
George Bateman
5767b086f6 Fix most Javadoc errors, except syntax 2016-05-10 19:13:20 +01:00
Ben Fry
171195426d add print() and write() to Table and TableRow (fixes #4396) 2016-05-08 14:31:29 -04:00
Ben Fry
5935e62b6f Merge pull request #4432 from gohai/opengl-runtime-exception
Be more verbose with drawExceptions with cause null
2016-05-06 20:05:33 -04:00
Ben Fry
12a62ae5cd Merge pull request #4416 from gohai/gles2-mipmap
Add automatic mipmap support to GLES2
2016-05-06 19:59:39 -04:00
codeanticode
f870930ed6 null buffer check 2016-05-04 21:53:09 -04:00
codeanticode
38dc5d31f0 save previous texture in tessellator only if tex cache in non-null 2016-05-04 10:50:05 -04:00
gohai
767ca29c8f Be more verbose with drawExceptions with cause null
Before:
java.lang.RuntimeException
	at processing.opengl.PSurfaceJOGL$2.run(PSurfaceJOGL.java:449)
	at java.lang.Thread.run(Thread.java:745)

After:
java.lang.RuntimeException: Waited 5000ms for: <fb397, c84a66>[count 1, qsz 0, owner <main-Display-.bcm.vc.iv_nil-1-EDT-1>] - <main-FPSAWTAnimator#00-Timer0-FPSAWTAnimator#01-Timer1>
	at processing.opengl.PSurfaceJOGL$2.run(PSurfaceJOGL.java:452)
	at java.lang.Thread.run(Thread.java:745)
2016-04-27 15:07:54 +02:00
Jakub Valtar
e2fe0bf40c Fix file path decoding
URLDecoder was being used for path decoding, even though it can't handle
RFC2396 encoding. This resulted in plus characters being removed and
possibly other weirdness.

See https://docs.oracle.com/javase/8/docs/api/java/net/URL.html
"The recommended way to manage the encoding and decoding of URLs is to
use URI, and to convert between these two classes using toURI() and
URI.toURL(). The URLEncoder and URLDecoder classes can also be used, but
only for HTML form encoding, which is not the same as the encoding
scheme defined in RFC2396."

Fixes #4417
2016-04-25 01:15:43 +02:00
gohai
c3a2564750 Add automatic mipmap support to GLES2
glGenerateMipmap is supported on GL ES 2.0 and above. Compile-tested.
2016-04-20 00:59:24 +02:00
Ben Fry
a1ebd0f7df Merge pull request #4341 from Akarshit/bugfix-blendMode
Reapplied blendMode setting.
2016-04-18 17:46:31 -04:00
Ben Fry
5ab85286e3 Merge pull request #4412 from JakubValtar/bugfix-loadimage
Make sure PImage.parent is set in loadImage()
2016-04-18 12:13:13 -04:00
Jakub Valtar
179c6052b0 Make sure PImage.parent is set in loadImage() 2016-04-17 15:02:13 +02:00
Jakub Valtar
eec809091e FX: make sure dispose() is called on exit 2016-04-17 14:59:15 +02:00
Jakub Valtar
b5e09b474a FX: window icons 2016-04-17 14:36:01 +02:00
Jakub Valtar
9739c6202c FX: cursors
Fixes #4405
2016-04-17 14:35:46 +02:00
codeanticode
205b73bf89 flushes after drawing the source texture, fixes #4404 2016-04-13 16:49:24 -04:00
Ben Fry
9c5579b233 several fixes, cleanups, and speed improvements to dictionary classes 2016-04-11 17:03:59 -04:00
codeanticode
ed7fcc7794 fixes font corruption issues, #4392 2016-04-04 23:48:35 -04:00
Jakub Valtar
dd8698427c Update app to Java 8 2016-04-02 23:17:25 +02:00
codeanticode
d0939a6552 enables stroke even when the color is same as before, fixes #4377 2016-03-30 16:59:56 -04:00
codeanticode
9438c225be Properly detect NPOT extension in GLES2 2016-03-15 10:31:48 -04:00
Ben Fry
8761cd9b65 Merge branch 'master' of github.com:processing/processing 2016-03-06 13:48:32 -05:00
Ben Fry
f2e49ea16a fix minor bug found while doing Android Wear porting 2016-03-06 13:48:26 -05:00
codeanticode
1bcce8b052 changed the w value to identify directional lights, so it conforms with
CG textbooks
2016-02-29 17:27:56 -05:00
Akarshit Wal
a38b4e89fb Reapplied blendMode 2016-02-29 21:34:17 +05:30
Casey Reas
b3da867769 Merge pull request #4304 from GABBAR1947/master
missing parameter in fullScreen() documentation #385
2016-02-22 06:34:04 -08:00