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
codeanticode
30ce02d0ec
reset curveVertexCount when tessellating a polygon PShape
2013-10-18 16:15:32 -04:00
codeanticode
321660f115
fix #2151
2013-10-18 15:45:31 -04:00
codeanticode
bb4da2575e
removed some old code
2013-10-18 15:06:47 -04:00
codeanticode
ceb1396b72
using internal stroke arrays in line tessellation too
2013-10-18 14:59:47 -04:00
codeanticode
661f0746db
properly separating fill and stroke poly/path tessellation
2013-10-18 14:17:34 -04:00
codeanticode
386a21ab56
some fixes to the path tessellation
2013-10-18 12:08:33 -04:00
codeanticode
31b9f385f5
finished implementing new path tessellation using vertex codes
2013-10-18 11:44:20 -04:00
codeanticode
3231d63fbd
fixed handling of breaks
2013-10-17 18:55:24 -04:00
codeanticode
d0411d434d
don't use breaks array in addPolygonEdges
2013-10-17 16:37:19 -04:00
codeanticode
2636366a18
removed unnecessary references to curveVertexCount
2013-10-16 00:16:50 -04:00
codeanticode
62f07ec9ce
a couple of tweaks
2013-10-16 00:13:51 -04:00
codeanticode
d7e2a65cc0
tessellatePolygon() should be done now
2013-10-15 23:56:48 -04:00
codeanticode
626bc8f70c
removed first,last vertex and count from InGeometry, implementing vertex
...
codes
2013-10-15 23:41:42 -04:00
codeanticode
2acfefddf0
first load attributes for custom shaders
2013-10-07 19:14:33 -04:00
codeanticode
bb1c16c7fc
some more tweaks to shader loading and selection
2013-10-07 18:48:19 -04:00
Benjamin Maus
d338bdebab
Not reapplying settings after sizing, because it calls smooth() without
...
parameters.
With smooth(4) called in setup, this would lead do a complete
reinitialization of the canvas and thus crashing natively...
2013-10-07 15:32:38 +02:00
codeanticode
40198890bb
solved some issues in PShader, better handling of gl buffers when using
...
built-in shaders
2013-10-07 00:30:15 -04:00
codeanticode
d258654f85
removed unused import
2013-10-06 17:44:23 -04:00
codeanticode
b4a54cf269
use PApplet.match() to detect shader types.
2013-10-06 17:33:55 -04:00
codeanticode
ce2cb00f63
better logic of shader type detection
2013-10-06 16:20:50 -04:00
Benjamin Maus
28b53e4959
Not reinitializing the backing arrays for matrices and lights.
...
Not needed and seems to blow up some bound buffers.
2013-10-06 10:58:28 +02:00
Benjamin Maus
98108a4c0a
Reapplying settings when the renderer has been sized, but not outside actual
...
GLCanvas/NEWTWindow display context.
Calling gl things when not told to by GLCanvas leads to very bad effects,
because GLCanvas might do an internal rebuild on resiszing the component,
leading to all sorts of NullPointer and native issues.
2013-10-06 10:56:21 +02:00
Benjamin Maus
eed5103751
Changed setSize logic:
...
SetSize only sets the sized flag. All the rest is done directly before
draw. Force reallocation of lights and transformation matrices (might
get garbled during resize...). Do not perform a full init of the primary
surface but rather a light version...
2013-10-05 18:38:46 +02:00
codeanticode
c41c53f931
some debugging
2013-10-04 18:54:31 -04:00
codeanticode
5d8bd9e96e
some shader aliases
2013-10-04 00:43:58 -04:00
codeanticode
8a60de14d3
some simplifications to the shader code
2013-10-04 00:21:01 -04:00
codeanticode
eb72df7340
correctly implements SUBTRACT blend mode
2013-10-03 18:23:04 -04:00
codeanticode
312fb99508
sets the resized native font in PGraphicsOpenGL, fix #2109
2013-10-03 17:03:14 -04:00
codeanticode
0388ebbe4a
takes care of #2102 by reverting setAmbient to false if it was false
...
before calling popStyle()
2013-10-03 13:51:56 -04:00
codeanticode
2f8af18ba6
some changes for android compatibility
2013-09-19 11:35:03 -04:00
codeanticode
51947ae116
done with the PGL refactoring
2013-09-13 15:02:36 -04:00
codeanticode
b1ebdd6ed6
removed use of switch/case
2013-09-10 18:55:55 -04:00
codeanticode
53a72e4318
Added PJOGL class
2013-09-10 15:05:48 -04:00
codeanticode
764616c9e1
starting the refactoring of PGL
2013-09-08 14:07:47 -04:00
codeanticode
cae8269fbd
fixed error in flushPolys()/renderPolys()
2013-09-04 20:13:42 -04:00
codeanticode
6cf649a0ce
cleanup inner shader classes, and minor tweaks
2013-09-04 19:04:43 -04:00
codeanticode
e4afbd7151
added flush() call in copy(PImage, ...)
2013-09-04 07:02:57 -04:00
codeanticode
3441ea7fa4
GL implementations of copy() methods, fix #1924
2013-09-03 19:41:10 -04:00
codeanticode
c34696353d
fixed handling of rect parametrers in PShape
2013-09-03 15:12:39 -04:00
codeanticode
7fd1455061
fix #1990
2013-09-03 14:40:34 -04:00
codeanticode
39d2287f12
removed some commented out code
2013-09-03 10:32:18 -04:00
codeanticode
50e3631fa9
made the description of loadTexture() more accurate
2013-09-01 20:01:42 -04:00
codeanticode
8fbd467f5d
reset light count in lights()
2013-08-25 13:02:09 -04:00
codeanticode
28e2501a11
added MAX_POINT_ACCURACY constant to cap number of segments used when
...
drawing an ellipse
2013-08-20 18:41:35 -04:00
codeanticode
5a3d15da5d
divide width and height by 2f to properly take into account resolutions
...
that are not divisible by 2
2013-08-20 16:44:49 -04:00