Commit Graph

118 Commits

Author SHA1 Message Date
codeanticode
2ed2a3c199 takes care of log messages of size = 0 2013-05-18 08:54:02 -04:00
codeanticode
ce7e4a36d0 Fixes fps cap (issue #1742) 2013-05-07 12:07:12 -04:00
codeanticode
b3561b1dbb calling glFinish() only if the current framerate falls below 50% of the
target
2013-05-06 12:42:58 -04:00
codeanticode
a535ed855c Using glFinish() instead of glFlush() at PGL.endDraw() 2013-05-04 23:43:39 -04:00
andres
4700330a1f tweaking GLSL and FBO checks 2013-05-04 19:00:38 -04:00
codeanticode
4ca816d9d0 Updated JOGL to 2.0-b982 build 2013-05-04 17:30:57 -04:00
Ben Fry
ce298ef00b working out issues with mouse wheel (#1461) 2013-04-30 22:31:34 -04:00
codeanticode
80e74e0895 renamed some functions 2013-04-24 15:36:50 -04:00
codeanticode
f90bdf1417 Fix issue #1740 2013-04-23 19:14:28 -04:00
codeanticode
1831d33183 Made PGL object static, removed references to parent and renderer in
Texture and FrameBuffer object, fixed PGraphicsOpenGL.dispose()
2013-04-21 09:33:17 -04:00
Xerxes Rånby
9b3d6e73df Validate PApplet AWT Container after add of OpenGL canvas.
This fix a long startup delay before OpenGL init
that may happen if the OpenGL canvas stay non-visible.

Signed-off-by: Xerxes Rånby <xerxes@zafena.se>
2013-03-30 23:28:36 +01:00
Xerxes Rånby
6ed4be1f16 Fix PGLListener init extension checks to pass on OpenGL ES 2.
Signed-off-by: Xerxes Rånby <xerxes@zafena.se>
2013-03-30 22:42:39 +01:00
Xerxes Rånby
93e5e8da2d getChosenGLCapabilities may return null before GLListener init.
Store capabilities at a safe location inside PGLListener init.

Signed-off-by: Xerxes Rånby <xerxes@zafena.se>
2013-03-30 21:52:02 +01:00
codeanticode
d3d453d4e9 canDraw() in PApplet to better control GL draw requests 2013-02-23 16:45:42 -05:00
codeanticode
e1e6a19b3a Don't remove canvas from parent PApplet, fix #1648 2013-02-23 13:57:16 -05:00
codeanticode
ed0db3e4be check number of max number of samples in addition to availability of
multisampling extension to make sure that no MSAA renderbuffer is
created, fixes #1644
2013-02-21 20:46:29 -05:00
codeanticode
3005f33ea3 delete GL resources only when the Gl thread is current. Fixes #12 2013-02-20 16:14:31 -05:00
codeanticode
2432a9fed3 Added manual GLProfile shutdown to make sure that no JOGL threads are
left running.
2013-02-20 12:40:06 -05:00
codeanticode
f861e3ee64 adding separate toolkit/events to hack around the erratic mouse behavior
on OS X, fixes #1626
2013-02-18 19:17:11 -05:00
codeanticode
199041e9c7 removed animator code altogether. 2013-02-18 19:05:51 -05:00
codeanticode
63b46e96fe disabling animator 2013-02-18 18:52:54 -05:00
codeanticode
3011b0a4c5 testing event handling through AWT when toolkit is NEWT 2013-02-18 18:42:34 -05:00
codeanticode
5f95bc3908 ported last changes to android, fixed indexing bug 2013-02-18 12:26:07 -05:00
codeanticode
dc23eb6f7f don't need to copy vertex array to buffers when using indirect buffers 2013-02-18 12:05:47 -05:00
codeanticode
e6989c6be0 Fixes #1498 2013-02-17 14:35:15 -05:00
codeanticode
5c01de03ac fixed issue with transparency and PShader filters 2013-02-17 09:54:56 -05:00
codeanticode
a1f88f02b5 doesn't need to set hint[ENABLE_STROKE_PERSPECTIVE] to false, it is by
default
2013-02-13 10:20:28 -05:00
codeanticode
a4d7c1ee62 some additional comments regarding toolkits 2013-02-12 16:25:06 -05:00
codeanticode
c511aedf92 JOGL toolkit selection based on OS, currently AWT gives the best results
on Windows, and NEWT on OS X
2013-02-12 16:07:17 -05:00
codeanticode
cdc838ab0c Removed some old code 2013-02-12 15:10:42 -05:00
codeanticode
8bbfd103c8 dont force screen fbo 2013-02-12 14:57:13 -05:00
codeanticode
940d09e580 Using PGraphics.backgroundColor where appropriate 2013-02-12 14:54:00 -05:00
codeanticode
d5b5f0c445 Fixes for graphical corruption issue (#1490) 2013-02-12 14:21:23 -05:00
codeanticode
42c5d7e8a7 Fixes focus gain/lost detection with OpenGL renderers, issue #1483:
http://code.google.com/p/processing/issues/detail?id=1483
2013-02-10 09:00:34 -05:00
codeanticode
47d0022400 Fix for mouseButton not recording correctly:
http://code.google.com/p/processing/issues/detail?id=1464
2013-02-05 18:38:38 -05:00
Your Name
463455daaa made PGLListener constructor public 2013-02-04 18:17:19 -05:00
codeanticode
175f95c6e5 Minor changes in JOGL and LWJGL PGL interface 2013-02-04 14:34:59 -05:00
benfry
f5ccad12b3 preliminary implementation of wheel events (issue #1423) 2013-01-19 20:18:09 +00:00
codeanticode
4ac056f3c5 PGL.threadIsCurrent() is not static to avoid problems with subclassed renderers 2013-01-16 16:59:06 +00:00
codeanticode
d3dbfff701 PGL.getBackTextureName, PGL.getFrontTextureName are protected 2013-01-16 16:36:37 +00:00
codeanticode
ac8a2a98a3 Removed PGL.Context subclass 2013-01-16 16:02:18 +00:00
codeanticode
139637e8bb Handling coded keys in NEWT 2013-01-07 20:44:46 +00:00
codeanticode
93a8c96bc9 removed println in window listener 2012-12-21 16:45:12 +00:00
codeanticode
56d05b1041 testing focus handling 2012-12-21 16:38:39 +00:00
codeanticode
578491f82f Added NEWT window listener to catch window focus events. Fixes issue #1483 2012-12-21 16:29:51 +00:00
codeanticode
65ffc3ff4a Fixes issue #1495 2012-12-21 15:22:41 +00:00
codeanticode
e64de19d42 copy projection and modelview matrices to opengl 2012-12-19 15:55:22 +00:00
codeanticode
02c8d25a7c reworked logic in PGL to let JOGL choose the best surface for the given platform 2012-12-18 16:00:06 +00:00
codeanticode
1d8afa9838 FBO layer is enabled when sketch tries to use the front texture (prev. frame) or shader filter 2012-12-17 02:33:05 +00:00
codeanticode
983bd06d02 add temporary option to enable/disable JOGL's FBO layer 2012-12-17 01:13:05 +00:00