Commit Graph

282 Commits

Author SHA1 Message Date
codeanticode
ce8eddff15 request draw in PGraphicsOpenGL only if the parent PApplet can draw,
solves #2416
2014-04-01 14:55:20 -04:00
codeanticode
d8dacf8ede don't delete opengl resources in the PGraphicsOpenGL finalizer 2014-04-01 14:16:40 -04:00
codeanticode
bc4d9b605c disable experimental depth sorting code for raw triangles, fix #2404 2014-03-30 16:02:34 -04:00
codeanticode
8f4021afc7 get the current FBO from the primary surface, fixes #2391 2014-03-12 18:41:33 -04:00
codeanticode
b409759e9c handle framebuffer set to 0 2014-03-12 18:24:42 -04:00
codeanticode
7576859457 should take care of #1278 2014-03-04 15:22:44 -05:00
codeanticode
a0e117981d fixes #2345, and also a bug in the coordinates passed to drawTexture()
in the Texture class.
2014-03-03 15:45:21 -05:00
codeanticode
27d002c9de fixes #2375 2014-03-03 14:04:29 -05:00
Ben Fry
9803d7958a remove unused var to prevent warning 2014-02-06 22:33:14 -05:00
codeanticode
fd61142a1f fix #2296 2014-01-26 09:34:27 -05:00
codeanticode
35ae97f712 fix #1844 2014-01-26 09:27:12 -05:00
codeanticode
146364f046 fix #2207 2014-01-26 09:05:15 -05:00
codeanticode
f95461c575 add offset when calculating poly normals, fix #2314 2014-01-25 19:10:48 -05:00
codeanticode
26ca041f86 testing a couple of library methods to access the contents of the
offscreen FrameBuffers
2014-01-23 15:30:06 -05:00
codeanticode
66118b56ef added checks for null framebuffers (useful to allow for "dummy"
renderers such as GLW)
2014-01-21 16:29:37 -05:00
codeanticode
adb0f431a8 making sure that backing textures are reset when surface is resized 2014-01-21 11:23:03 -05:00
codeanticode
a0731dd3d7 testing/debugging, context sharing 2014-01-21 01:02:08 -05:00
codeanticode
9110cebd0d more refactoring/testing with non-static fields in PGL 2014-01-20 16:48:19 -05:00
codeanticode
9aef0a1426 default shaders are not static, but only initialized in the primary
renderer
2014-01-20 12:40:45 -05:00
codeanticode
f2c730b58f continues the removal of static references 2014-01-20 12:14:35 -05:00
codeanticode
a8a15d112e making pgl non-static member of PGraphicsOpenGL 2014-01-19 01:56:55 -05:00
codeanticode
1cd4c57ec8 don't set pgl to null for offscreen surfaces. 2014-01-06 13:43:12 -05:00
codeanticode
df0efa540f fix #2193 2014-01-05 16:39:29 -05:00
codeanticode
2193ef87a4 some commented code to handle #2296 2014-01-05 16:01:31 -05:00
codeanticode
ce5ead73ee fix #1900 2014-01-05 15:36:07 -05:00
codeanticode
ac3248ca33 fix #2171 2014-01-05 15:20:58 -05:00
codeanticode
4331296e1d same changes related to #2259 2014-01-05 13:38:24 -05:00
codeanticode
8981790c21 set prevTexImage in setLastTexIndex, fix #2205 2014-01-04 16:09:05 -05:00
Jonathan Feinberg
8de31e2b5d Clear the global PGL on dispose(). 2013-12-25 22:53:05 -05:00
codeanticode
f76f0758e4 implementing depth sorting 2013-11-24 01:39:37 -05:00
codeanticode
18b0563cfe fix #2233 2013-11-22 15:18:18 -05:00
codeanticode
c6ca72efbb removed ALREADY_DRAWING_ERROR and NO_BEGIN_DRAW_ERROR 2013-11-20 14:16:00 -05:00
codeanticode
09de1306e5 filter shaders don't need to use the texture uniform, fixes #2204 2013-11-06 09:00:20 -05:00
codeanticode
4f186536bf move drawElements() call to PShader.draw() 2013-10-27 23:49:13 -04:00
codeanticode
15156353e8 don't call swapBuffers() in PGraphicsOpenGL.dispose() for offscreen
surfaces.
2013-10-25 18:02:36 -04:00
codeanticode
b372046e44 comments for issues #1844 and #2125, added some warnings, fixed #2034 2013-10-25 12:38:33 -04:00
codeanticode
0ff68bca2f add setters for boolean uniforms contributed by AmnonOwed, fixes #1991. 2013-10-24 23:58:45 -04:00
codeanticode
73d57f8d22 fixes #2162 2013-10-24 21:57:35 -04:00
codeanticode
e6b8c04607 allocate in setSize() 2013-10-24 15:25:50 -04:00
codeanticode
c60ba7e6d7 better handling of glsl code in different versions 2013-10-24 12:51:38 -04:00
codeanticode
1ce9c9d360 assuming npot texture support, auto mipmaps generation, etc, are part of
core gl profile when using gl3
2013-10-24 12:17:50 -04:00
codeanticode
7e1acf5710 automatic glsl 120 to 150 conversion partially working 2013-10-20 20:51:19 -04:00
codeanticode
1d7bd062b5 don't use vertex arrays anymore 2013-10-20 19:15:04 -04:00
codeanticode
930f6fd57e clean up shader get-type code 2013-10-20 17:20:20 -04:00
codeanticode
a9d26bebb4 removed line width and point size 2013-10-20 16:02:30 -04:00
codeanticode
bffa0820d0 merged pull requests from @allesblinkt (fixes #1880 and #2157) 2013-10-20 15:15:20 -04:00
codeanticode
39ab766b35 Merge branch 'pull-resize-fixes' of https://github.com/OffenesFELD/processing 2013-10-20 14:56:31 -04:00
Benjamin Maus
1bf0d435d6 Not degrading quality when calling smooth again.
This is especially crucial when quality is set using sketchQuality.
2013-10-20 14:49:21 +02:00
codeanticode
9b4060b6e9 removed some commented out code 2013-10-19 14:00:31 -04:00
codeanticode
f33ca59c5f removed shader inner-classes in PGraphicsOpenGL, now everything is in
PShader
2013-10-19 09:29:44 -04:00