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
Paco
6edf2a5215
styling fix
...
just read how to style correctly
2017-06-20 20:41:50 -03:00
Paco
8b34e66520
make "loadXML(String)" handle "file not found"
...
when file is not found, a null pointer exception crashes processing i guess is because this line
2017-06-20 20:28:42 -03: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
gohai
9fcdb46505
Improve loadBytes performance
...
Before, loading a 54 MB file took 2.7 seconds on my Macbook Air. With this change applied, it only takes 0.4 seconds.
2017-04-24 22:26:47 +02:00
codeanticode
d2b35401b6
invert rgbaPixels, fixes #5013
2017-04-23 16:33:58 -04:00
Ben Fry
532fe906ca
deal with warnings
2017-04-22 12:03:34 -04:00
Ben Fry
fa836591b0
Merge pull request #5011 from JakubValtar/blow-up
...
Window placement and pixel density cleanup
2017-04-21 16:57:20 -04:00
Ben Fry
43d15a3365
Merge pull request #5014 from gohai/chip-p3d
...
Unblock hardware-accelerated P3D on ARM Mali devices
2017-04-20 14:36:22 -04:00
Ben Fry
a5d72162bd
Merge pull request #4911 from gohai/jogl-fixes
...
Add more Raspberry Pi related fixes to JOGL
2017-04-20 14:34:38 -04:00
gohai
e77ec838b2
Unblock hardware-accelerated P3D on ARM Mali devices
...
This works around a JOGL bug that affects ARM Mali devices, such as the PocketCHIP. (reported by @xranby)
2017-04-20 11:43:51 +02:00
Jakub Valtar
18e43a9ae0
pixelDensity (all): fix background(PImage) size check
2017-04-17 21:31:59 +02:00
Ben Fry
c611de43ae
thinking about adding getTally() to IntDict
2017-04-17 13:23:46 -04:00
Jakub Valtar
0f0731d1e2
pixelDensity (OpenGL): tidy up some some variables
2017-04-15 19:14:09 +02:00
Jakub Valtar
e457bb3337
pixelDensity (OpenGL): fix stop button on Mac
2017-04-14 19:38:33 +02:00
Jakub Valtar
6d5cc7a326
pixelDensity (OpenGL): fix running 1x on 2x screen on Mac
2017-04-14 19:15:19 +02:00
Jakub Valtar
8fa6187d49
pixelDensity (all): allow 2x if windowed or SPAN, and any screen is 2x
2017-04-14 19:13:57 +02:00
Jakub Valtar
cf5cfdb334
pixelDensity (OpenGL): fix stop button in 2x present mode
2017-04-13 20:56:12 +02:00
Jakub Valtar
0a6d38e22e
pixelDensity (OpenGL): fix present mode placement
2017-04-13 20:42:35 +02:00
Jakub Valtar
7a5eac6fdd
pixelDensity (OpenGL): fix fullscreen placement on secondary screens
2017-04-13 17:18:05 +02:00
Jakub Valtar
19e7bcf315
pixelDensity (FX): clean up placement code
2017-04-13 15:01:05 +02:00
Jakub Valtar
b0c5575d2c
pixelDensity (FX): fix fullscreen placement
2017-04-13 15:00:31 +02:00
Jakub Valtar
a601323b50
pixelDensity (OpenGL): fix 2x present mode on Windows
2017-04-12 18:57:44 +02:00
Jakub Valtar
d94987cbce
pixelDensity (OpenGL): fix 2x on Windows
2017-04-12 18:57:35 +02:00
Jakub Valtar
aadf2140ca
Synchronize input event processing
...
Some renderers (OpenGL) fire events on background threads, which can
corrupt the event queue when the sketch is not looping and multiple
threads add and remove from the queue at the same time.
This PR uses blocking queue to serialize enqueuing and lock to
synchronize dequeuing.
In the ideal case, we should be able to invoke code on the animation
thread (ala invokeLater) and always dequeue events from there even when
the sketch is not looping.
2017-04-09 18:32:53 +02:00
Ben Fry
a05a375104
set the font, even if not deriving
2017-03-17 20:41:39 -04:00
Ben Fry
764a978b3f
bug fixes to temporary file handling
2017-03-14 08:59:37 -04:00
Ben Fry
c8c4539204
don't derive the font again if the size is unchanged ( #4956 )
2017-03-12 09:59:12 -04:00
gohai
f59855bb84
Add more Raspberry Pi specific fixes to JOGL
...
This adds the following fixes on top of 2f4a52a814 (patches at https://github.com/gohai/jogl ):
* Fix GL overlay offset when overscan is enabled
* Fix the value of mouseButton (#4499 )
* Change libGLESv2 search order to work around longstanding issue in Raspbian
2017-03-05 18:50:26 +01:00
Ben Fry
a5f7c9933b
Merge pull request #4922 from processing/revert-4915-arm-opengl
...
Revert "ARM: Allow Raspberry Pi's Mesa GL driver to use up to 8 lights"
2017-02-23 17:12:24 -05:00