Commit Graph

268 Commits

Author SHA1 Message Date
codeanticode
1a20adae8c updateTessellation() removed PShapeOpenGL.getVertexCount() 2013-05-25 10:00:13 -04:00
codeanticode
36f92607c3 Removed some commented-out code 2013-05-25 02:24:11 -04:00
codeanticode
de9cbc0dbd markForTessellation shouldn't be public 2013-05-25 02:11:49 -04:00
codeanticode
cce3972900 Don't recreate VBOs in PShapeOpenGL, unless there is a new GL context 2013-05-25 02:10:28 -04:00
codeanticode
482c8ea2e9 Improved the logic that sets the size of the font textures 2013-05-23 19:10:23 -04:00
codeanticode
a2ac452e98 Merge pull request #1775 from OffenesFELD/master
Fixed: PGraphicsOpenGL would allocate humongous textures for each font instance
2013-05-23 15:31:15 -07:00
codeanticode
8ed4286657 Remove uv clamping 2013-05-23 17:37:29 -04:00
codeanticode
8a0fc976b7 Formatting, fixing some implementations in PGL 2013-05-23 16:52:14 -04:00
codeanticode
566fd7e539 Added missing GLES 2.0 functions and constants to PGL interface 2013-05-23 11:46:08 -04:00
codeanticode
c5017babaa Fixes issues #1805 and #1806 2013-05-22 14:48:01 -04:00
codeanticode
dea8e9dd16 Smaller displacement for lines (issue #1790) 2013-05-22 11:04:30 -04:00
codeanticode
113883293a clean up code in PShader 2013-05-18 20:14:16 -04:00
codeanticode
7c82286fe8 Fixes issue #1771 2013-05-18 19:45:34 -04:00
codeanticode
8394c632fc more clear messages for incorrect shader type 2013-05-18 08:54:47 -04:00
codeanticode
2ed2a3c199 takes care of log messages of size = 0 2013-05-18 08:54:02 -04:00
codeanticode
2d3db38cb8 Address issue #1758 2013-05-18 06:49:54 -04:00
codeanticode
7a7b49af6b Fix issue #1760 2013-05-17 23:21:31 -04:00
codeanticode
8f32e1f5ab Fix issue #1761 2013-05-17 21:20:51 -04:00
Benjamin Maus
bdbc77a6cb Fixed: When using the PGraphicsOpenGL renderer Processing would allocate a texture with the maximum allowed width (e.g. 8192x512 pixels for a 10px font) for each font. This lead to severe GPU memory problems, especially when using multiple fonts. Merge doubled code. 2013-05-17 23:38:25 +02: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
codeanticode
1af0cc5c31 Fix issue #1737 2013-05-04 19:57:05 -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
codeanticode
8a514e355d Commented out GL debugging messages 2013-05-04 12:24:41 -04:00
Ben Fry
ce298ef00b working out issues with mouse wheel (#1461) 2013-04-30 22:31:34 -04:00
Ben Fry
c7702c9b61 more API cleanups for consistency 2013-04-28 14:17:29 -04:00
codeanticode
2f2f2454e6 renamed release() as dispose() in all GL classes for consistency with
PGraphics.dispose()
2013-04-24 16:02:04 -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
codeanticode
fd20e6da02 caps/joins always added in retained mode 2013-04-18 18:13:33 -04:00
codeanticode
72e3b8aaf3 Check for closing edges in tesselateEdges3D() 2013-04-18 16:01:06 -04:00
codeanticode
93876fb593 finished implementing the clamping checks 2013-04-17 18:22:01 -04:00
codeanticode
25de76426e clamp test for triangle fans 2013-04-17 17:49:58 -04:00
codeanticode
18ebfeff49 reworking logic for 2D clamping 2013-04-17 17:35:57 -04:00
codeanticode
7f9b71ddd0 Fixes issue #1732 2013-04-17 12:29:54 -04:00
codeanticode
b77bb4d9bc unclamp endpoints of 2D line segment if they became degenerate. 2013-04-13 13:14:29 -04:00
codeanticode
4f58e4ea00 more work in P2D to minimize blurriness issues 2013-04-12 19:15:27 -04:00
codeanticode
e18631cada clamping transformed coordinates to integers in 2D immediate mode 2013-04-11 18:34:56 -04:00
codeanticode
902fbeaae8 DISABLE_OPTIMIZED_STROKE hint only works in 3D 2013-04-10 18:37:27 -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
1eedcab149 Fix #1671 2013-03-25 09:27:37 -04:00
codeanticode
6ed2b23a9c Fixes issue #1659 2013-03-25 09:15:28 -04:00
codeanticode
cd33fb908e Fixes #1661 2013-02-25 17:13:38 -05: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