Commit Graph

85 Commits

Author SHA1 Message Date
codeanticode
5dd6e714b2 removed GL check from setPrimary(), added to Android's PApplet 2012-09-10 20:19:49 +00:00
codeanticode
1c57d0829d more detailed GL version/extensions check 2012-09-10 20:07:32 +00:00
codeanticode
dd719ac0d4 check if main renderer is PGraphicsOpenGL when creating P2D/P3D PGraphics 2012-09-10 18:49:10 +00:00
codeanticode
e67f0d653d doesn't apply perspective correction when the projection matrix is orthographic, fixes issue 1207. 2012-09-05 22:41:26 +00:00
benfry
2de31b9dcb change name for OpenGL errors constant 2012-09-04 01:17:13 +00:00
codeanticode
aa90bbc42e Using white as the default ambient material property 2012-09-03 16:35:53 +00:00
codeanticode
4bf7bc727b validate framebuffer only at init in android, new offscreen implementation that properly solves the fickering problem (commented out for now to finish later), some todo notes 2012-09-03 13:48:34 +00:00
codeanticode
45930bda63 android sync 2012-09-03 01:48:59 +00:00
benfry
662fec53e6 moving font cache inside PGraphicsOpenGL 2012-09-02 20:07:26 +00:00
codeanticode
720d1ef25c hintEnabled is a utility protected method in PGraphicsOpenGL 2012-09-02 15:59:25 +00:00
benfry
3c9ac9fe93 add annotations, update with GL changes from desktop, new image caching scheme 2012-09-02 01:15:21 +00:00
codeanticode
754eb380db Added static context variable to PGL, in order to detect surface restarts. Fixed issue 1146 2012-09-01 21:34:21 +00:00
benfry
232390c02c move PConstants around a bit, add annotations for overrides, cleaning up unapproved PShape additions 2012-09-01 18:05:24 +00:00
codeanticode
0a1c1ff2c5 android sync 2012-08-31 20:21:19 +00:00
codeanticode
309efbadd2 Takes care of issue 1156 2012-08-23 20:45:48 +00:00
codeanticode
4d3879e6fe Made all utility functions in PGL protected, added drawTexture() to PGraphicsOpenGL 2012-08-21 19:48:15 +00:00
codeanticode
d3e0785fc8 Removed extension check for shaders, VBOs and FBOs from PGraphicsOpenGL, moved to PGL in Java mode 2012-08-20 01:17:24 +00:00
codeanticode
7e7f741976 added texture wrapping to the API 2012-08-14 21:17:27 +00:00
codeanticode
6f2c17b188 throws exceptions if required extensions are not available 2012-08-14 18:25:39 +00:00
codeanticode
dd8045298f PGL update in android 2012-08-14 17:39:33 +00:00
codeanticode
7cff2660c4 PShader.set(string, PImage) to bind textures to sampler uniforms 2012-08-08 21:53:42 +00:00
codeanticode
801a8f0579 recalculate mipmaps in Texture.setNative() 2012-08-08 18:10:43 +00:00
codeanticode
fa1dcabf69 Fix issue 1166 2012-08-07 21:49:32 +00:00
codeanticode
866aae5d8e slightly reworked the logic for screen FBO in android 2012-07-29 18:22:00 +00:00
codeanticode
205b67a529 better condition to catch offscreen-within-offscreen drawing 2012-07-28 22:57:12 +00:00
codeanticode
e187335bdc force loadPixels() in PGraphicsOpenGL.initCache(), otherwise textures are not initialized properly in android 2012-07-28 22:10:42 +00:00
codeanticode
ee5169d3dd Removed unused imports 2012-07-27 15:17:42 +00:00
codeanticode
511780e6e1 on android as well 2012-07-27 15:16:05 +00:00
codeanticode
638a04ab1f android sync 2012-07-26 19:51:58 +00:00
benfry
26593bbf2f more with method naming, add XML hasChildren() method 2012-07-22 00:20:16 +00:00
benfry
bc61904227 clean things up for PShader API 2012-07-21 21:43:23 +00:00
codeanticode
6aab3afd58 add filter(PShader) function 2012-07-20 17:07:29 +00:00
codeanticode
309d95b0cb PShader updates 2012-07-18 20:27:29 +00:00
codeanticode
9c4195c3e4 completed new implementation of image cache handling 2012-07-16 19:12:13 +00:00
codeanticode
0562ca3420 flush before changing projection matrix, fixed load pixels in GL 2012-07-16 06:30:06 +00:00
codeanticode
b48f7d6429 android sync 2012-07-12 03:23:30 +00:00
codeanticode
b1630310f0 temporary workaround to handle very long beveled edge paths, prints warning. 2012-07-11 08:30:12 +00:00
codeanticode
37e387c02a Simpler code to add stroke edges to a polygon shape 2012-07-11 05:09:16 +00:00
codeanticode
d8cf549ddc P2D uses simpler orthographic projection (z between -1 and +1) and affine camera transformation 2012-07-07 23:30:23 +00:00
codeanticode
f28d246362 Added missing offset in partitionRawIndices() 2012-07-05 20:04:38 +00:00
codeanticode
370fbd6637 Making sure that all shaders can access the projection, modelview and projmodelview matrices 2012-07-03 23:08:56 +00:00
codeanticode
d41fd94172 Shader loading doesn't recreate shader objects when context changes, that's taken care by the init() method in PShader 2012-07-03 18:26:59 +00:00
codeanticode
4d69ffe686 updated android with the clip/noClip fix 2012-06-29 18:59:17 +00:00
codeanticode
65c8c60fe6 cleaning up PShader methods some more 2012-06-29 15:04:48 +00:00
codeanticode
ba57434e3c simpler API for setting uniform values in PShader 2012-06-28 21:14:22 +00:00
codeanticode
c18cfb233b using screen FBO also when quality < 2 2012-06-25 20:25:40 +00:00
codeanticode
9ad3fdd351 added check for continuous use of smooth/noSmooth 2012-06-25 14:02:10 +00:00
codeanticode
8d3c01495a resize pixels in setSize() if they are being used 2012-06-22 18:30:39 +00:00
codeanticode
c9980a27c2 try-catch block for glBlendEquation handles any exception 2012-06-22 16:30:54 +00:00
codeanticode
4571c14256 added flush to beginPGL() 2012-06-22 15:16:54 +00:00