Commit Graph

127 Commits

Author SHA1 Message Date
Ben Fry
d3feb64237 introduce ShimAWT, moving selectInput/OutputFolder to PSurface, being AWT purge 2020-01-19 16:24:16 -05:00
Ben Fry
269f626f98 incorporate https://github.com/processing/processing/pull/5881 for FBO fix on Intel HD Graphics 3000 devices 2019-10-07 18:27:24 -04:00
Ben Fry
8f994389c4 introduce MACOS constant, deprecate MACOSX 2019-10-07 18:23:34 -04:00
Jakub Valtar
d512d21fcf Move Ctrl+Left Mouse code from surfaces to PApplet 2018-10-09 09:19:36 +02:00
Jakub Valtar
eb64449f9b Make sure Ctrl+Left Mouse on MacOS is consistent
Make sure PRESS, DRAG and RELEASE report the same mouse button on MacOS.

- If CTRL was pressed during Left PRESS, report Right Button until the button is released, regardless of whether CTRL is still down.
- If CTRL was not pressed during Left PRESS, report Left Button until the button is released, regardless of CTRL state.

Fixes #5672
2018-10-07 21:55:14 +02:00
codeanticode
54fba5da9e cap framerate at 1000 in OpenGL 2018-02-13 02:13:45 -05:00
Alexander Hurst
a9cc453015 cursor() sets the cursor visible, fixes #5330 2017-12-20 15:09:16 -05:00
Ben Fry
82c772f178 Windows ignores setMinimumSize(), add workaround for #5052 2017-09-03 08:36:23 -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
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
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
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
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
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
Jakub Valtar
b93f7c2c09 pixelDensity (OpenGL): fix 1x mouse input on macOS 2017-02-19 06:00:41 +01:00
Jakub Valtar
4eb04c4b64 pixelDensity (OpenGL): fix 1x on macOS 2017-02-19 05:47:01 +01:00
Jakub Valtar
8f7e3b1ff3 pixelDensity (OpenGL): scale window and mouse input 2017-02-18 21:28:09 +01:00
Jakub Valtar
8cf56e1fdf pixelDensity (OpenGL): size sketch and graphics when density changes 2017-02-18 20:29:59 +01:00
Jakub Valtar
fc7fb7464f pixelDensity (OpenGL): make sure sketch pixel size is initialized 2017-02-18 20:28:38 +01:00
Jonathan Feinberg
1ce4ecba88 Unscrewup merge. 2017-01-29 18:00:32 -05:00
Jonathan Feinberg
8fba6ce033 Fix a number of memory leaks. 2017-01-29 17:51:16 -05:00
Jakub Valtar
345b8ca3d9 Keep Windows timer resolution high for OpenGL sketches
Otherwise java.util.Timer used by FPSAnimator uses 10 or 15 ms
resolution, which results in 60 fps sketches running at around 30 fps
and 30 fps sketches running at around 21 fps.

Fixes #4846
2017-01-22 21:44:53 +01:00
Jakub Valtar
7f93baa904 Unify mouse pressed/released events across renderers
OPENGL and FX renderers will now correctly report button which triggered
this pressed/released event (same as JAVA2D).

Previously:
- OPENGL would report currently pressed buttons in order LEFT, CENTER,
RIGHT regardless of which button triggered the event. E.g. when holding
LEFT and presing RIGHT, LEFT would be reported. When holding CENTER and
pressing LEFT, LEFT would be reported
- FX would report only first button which is down, so in RELEASE event
button would be missing

Now:
- event contains only button which triggred this event (button just
pressed or just released)
2016-12-29 15:48:15 +01:00
codeanticode
10104cc009 framerate warning 2016-11-04 09:05:36 -03:00
codeanticode
52d4880d88 do not call handleDraw() after the sketch is finished 2016-10-30 10:23:16 -03:00
codeanticode
303a4e9667 remove second dispose() call 2016-10-07 05:37:29 -04:00
Ben Fry
cedf101ccc avoid crash when closing an app window (fixes #4690) 2016-10-04 13:53:48 -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
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
codeanticode
e2033b5644 call PApplet.exit() in windowDestroyNotify(), fixes #4156 2015-12-08 15:21:47 -05:00
codeanticode
14e050c8d2 working on an implementation of of setIcon() for the OpenGL renderer 2015-10-31 19:39:41 -04:00
codeanticode
62ad09557e hide stop button in present mode according to export options 2015-10-25 12:29:42 -04:00
Ben Fry
5acbcee17e simplify screen placement when screen is too small (#3913) 2015-10-23 15:27:29 -04:00
Jakub Valtar
829eb8cac4 Turn off fixed rate scheduling in OpenGL
After some testing, it appears that fixed rate scheduling tries to catch
up later when it runs slower than desired, creating weird speedups when
the load decreases. Turning it back off.
2015-10-15 23:29:21 +02:00
codeanticode
f8aba4a359 removed use of deprecated constructor 2015-10-10 12:10:02 +01:00
codeanticode
623aacd54d implement setResizable(), GLWindow is non-resizable by default 2015-10-10 11:48:48 +01:00
codeanticode
101c3c372f set already loaded cursor, fixes #3955 2015-10-04 01:20:14 -04:00
codeanticode
3848869309 Merge pull request #3892 from JakubValtar/opengl-fullscreen
Fix fullScreen for OpenGL + Windows combo
2015-09-29 06:48:44 -03:00
Jakub Valtar
bd46264cb3 Fix fullScreen for OpenGL + Windows combo 2015-09-28 12:28:32 -04:00
Jakub Valtar
fa549e1874 Convert all documented hacky keys in OpenGL 2015-09-27 23:46:55 -04:00
Jakub Valtar
f087fd320c Async pixel reader 2015-09-24 23:51:58 -04:00
Jakub Valtar
f5946e3783 Switch animator to fixed-rate scheduling 2015-09-23 16:06:08 -04:00
codeanticode
0a9e5063ac invert mouse wheel count 2015-09-22 14:28:58 -05:00